Skip to content
shubhookPublic

About

Temporary group chat. Built for the conversation, not to record it.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Huddle

Live chat that does not last. You start a workspace, share a link, and messages show up as they are sent. When the owner ends it, or it reaches its expiry, the workspace and every message in it are deleted for good.

I built this to learn WebSockets. The rest of the app exists so that socket has somewhere real to live.

Huddle landing and live chat demo

Live: chatonhuddle.vercel.app. Web on Vercel, API on Coolify, Postgres on Supabase. How that is wired: deploy.

Features

  • Email and password accounts, optional GitHub OAuth, or join by link as a guest with only a name
  • Workspaces that end after 1 hour, 24 hours, 7 days, or when the owner ends them. Ending deletes everything
  • Channels the owner can end on their own, and invite links that expire with the workspace
  • Message history over REST, live chat over WebSocket
  • Acks, reconnect with backoff, and a session that can actually be revoked
  • Redis pub/sub when you run more than one API process. Without it, each process talks only to its own sockets

Not built: presence, typing, and DMs in the UI. The REST DM endpoints exist. The socket answers not_supported.

Stack

Layer Choice
Runtime Bun + TypeScript
API Express 5
Realtime ws on the same HTTP server
Database PostgreSQL via Prisma
Frontend React 19 + Tailwind v4
Local infra Docker Compose (Postgres, Redis, optional API image)

Quick start

You need Bun and Docker (for Postgres).

git clone https://github.com/shubhook/huddle.git
cd huddle
bun install
cp apps/server/.env.example apps/server/.env
# set JWT_SECRET to 32+ random characters: openssl rand -base64 48
docker compose up postgres -d
bun run db:generate
bun run db:migrate
bun run dev

Open http://localhost:3008. The API is http://localhost:3000.

Full env, Compose, GitHub OAuth, and the smoke check live in the setup guide.

Repo layout

apps/server        HTTP API + WebSocket
apps/web           React client (hash routes, port 3008)
packages/protocol  socket frame schemas shared by the API and the client
docs/              setup and how each piece works

Documentation

Package notes: apps/server, apps/web.

Status

Work in progress. The socket has validation, acks, reconnect, heartbeats, and Redis fan-out. Next is presence and DMs over the socket.

About

Temporary group chat. Built for the conversation, not to record it.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages