Home / Projects / Huddle

Live

Huddle

Slack-style team chat

Started Aug 2026

About Huddle

Huddle is a team collaboration app with workspaces, channels, direct messages, threads, reactions, file sharing, search and notifications. The web app is a React/Vite single-page app; the API is Express and TypeScript with PostgreSQL, Redis, Socket.IO and private S3-compatible object storage.

The prompt that started itBuild a Slack clone end to end: workspaces, channels, threads, files and search, all in realtime.

The problem it solves

Team conversations end up scattered across email threads, DMs and group chats, so context gets lost. Huddle keeps them in workspaces and channels, with threads, files and search in one place.

Tech stack

  • React
  • Vite
  • TypeScript
  • Express
  • PostgreSQL
  • Redis
  • Socket.IO

What it does

Workspaces and roles

Create or join multiple workspaces. Owners, admins and members have different powers, and email invites are accepted or declined in-app.

Channels and DMs

Public and private channels, direct messages and group DMs, with topics, archiving, posting policies, per-channel notification levels and unread counts.

Realtime messaging

Send, edit, delete, pin and react live over Socket.IO, with typing indicators, presence and read receipts.

Threads

Reply in a thread, follow or unfollow it, cross-post to the channel, and catch up on everything on a global Threads page.

Files and links

Attachments upload straight to a private S3 bucket and are read back through short-lived signed URLs. Links unfurl safely with SSRF protections.

Search and notifications

Full-text message search built on PostgreSQL, plus mentions, replies, reactions and reminders delivered as live notifications.

Calendar and planner

An in-app calendar with day, week and month views, RSVPs and repeating events, alongside a task planner with due-date reminders.

Whiteboards and apps

Persistent Excalidraw whiteboards shared into channels, and a developer Apps API with OAuth install flow, scoped bot tokens, webhooks and custom slash commands.

How it's built

Frontend
React 19, Vite, TypeScript, React Router, Zustand, Tailwind CSS, Radix UI, TipTap, Excalidraw
Backend
Node 22, Express, TypeScript, Socket.IO, Zod validation, Helmet, JWT, pino
Data
PostgreSQL through Prisma, Redis for presence, rate limiting and the Socket.IO adapter
Storage and mail
Private S3-compatible bucket with presigned uploads, SMTP for sign-in codes and invites
Dev tooling
Docker Compose with PostgreSQL, Redis, MinIO and Mailpit, plus backend tests and a smoke-test script

Decisions worth knowing

  • Passwordless sign-in with email one-time codes, and workspace-scoped JWTs so deep links and multiple tabs work.
  • A modular monolith: every feature is a vertical module of routes, controller, service and validation, so controllers never touch the database.
  • Threads are just messages with a parent, and DMs are channels of a different type, so both reuse the same code path.
  • Uploads go to a private bucket only. Nothing is public, and every read is signed and expires.
  • Messages are soft-deleted, and history uses stable cursor pagination with a virtualised list to keep long channels fast.

Where it stands

  • Core chat, threads, files, search, notifications, calendar, planner and whiteboards are built.
  • Apps API has app registration, OAuth install and message posting; event delivery and a workflow builder are not started.
  • Live at huddle.kodeit.live. Metrics, an accessibility audit and a browser end-to-end suite are still on the backlog.

Links

Related projects