--- name: reference_chat_web_consumer description: chat-web is the reference consumer app that drives IIOS feature work metadata: type: reference --- **chat-web** (separate repo, `~/Documents/insignia-work/chat-web`) is the reference app on IIOS — a 1:1 + group chat UI (Vite + React + TanStack Router/Query + socket.io-client + supabase-js). It's frontend-only; IIOS provides identity, threads, messages, realtime, reactions, mentions, media, notifications. Feature work usually spans **both repos**: a generic primitive/port in iios + the app UI in chat-web. The layer split we follow: **service** owns storage/auth/governance, the **SDK layer** (`chat-web/src/lib/*`, mirrors `@insignia/iios-kernel-client`) owns client plumbing (e.g. `uploadMedia`/`mediaUrl`, `registerPush`), the **app** owns rendering. chat-web uses real Supabase login (`VITE_SUPABASE_URL` + anon key in its `.env`); identity = email. Run it with `pnpm dev`. Commit both repos with git email `maaz@insigniaconsultancy.com`. Related: [[project_recent_features]].