Modern social apps are often slow, locked behind mandatory registration walls, or driven by complex algorithms. With Txat (txat.eu), I wanted to bring back the speed and spontaneity of classic real-time chat rooms while building on a clean, modern stack.

Architecture Overview

To support instant messaging across both browsers and mobile devices without exposing raw chat protocols to the public internet, the infrastructure is structured into isolated Docker layers:

  • Clients: A web interface built with React + Vite, paired with a cross-platform mobile app built in Flutter and Dart (with push notifications via FCM and APNs).
  • Edge & Routing: Cloudflare handles WAF and DDoS protection at the edge, forwarding requests to Traefik v3 for TLS termination and reverse proxying.
  • Stateless Go Services: WebSocket connections (/ws), REST endpoints (/api), and push workers are handled by stateless Go services.
  • Isolated IRC Layer: Behind the Go gateways sits a two-node InspIRCd setup connected via S2S Spanning Tree over TLS inside an internal Docker network (irc-internal). Keeping the IRC daemon completely isolated from external ports prevents direct flood or bot attacks while leveraging proven channel-routing performance.
  • Data & Storage: PostgreSQL 17 acts as the primary database, Redis 7 (Pub/Sub and Streams) coordinates node state and message backlogs across gateway instances, and MinIO handles object storage.
  • Observability: Internal metrics and logs are collected via Prometheus, Loki, and Grafana + Tempo.

Safety & Moderation

Running open, real-time communities requires active moderation from day one. The REST API integrates automated content scanning pipelines (Perspective API and PhotoDNA) alongside age verification workflows to keep regional and topic-based rooms clean and compliant.

You can try the live web platform directly at txat.eu or check out the Android app on Google Play. Feedback on the architecture or onboarding flow is always welcome!