Loading scaffold…
Loading scaffold…
Channels + DM + threads + realtime presence — yours to fork into a customer chat, a community, an internal helpdesk. The code is yours. Forever.
Switch channels, send a message, type @ for mentions or / for slash commands. Hover any message to react. Realtime presence + threads — no backend, all client state.
Live mock — same UX you ship after pasting PROMPT.md into Claude Code.
Same chat UX. Different ownership model. Read the four things that change everything once you go past the free plan.
| Comparison axis | Slack | Need for Build scaffold |
|---|---|---|
| Pricing | $7.25–12.50 per user, per month. Retention paywall on the free plan. | Free forever. Pay only your own hosting. Full message history kept forever. |
| Data ownership | Salesforce's servers. Export is your only escape. | Your Supabase project, your S3 file uploads. Data never leaves your infra. |
| Privacy | Their compliance posture. AI training opt-outs by plan. | RLS-scoped per workspace. No AI training. Only your team has access. |
| Extensibility | The bots they approve in their app directory. Slow API rate limits. | Full Next.js + Realtime source. Bot, hook, slash-command — ship it today. |
Every file the scaffold ships, with size and one-line description. Download once, build forever.
CLAUDE.md4.8 KBProject config for Claude Code — tech stack, commands, code style, critical rules. Under 100 lines, read first.
ARCHITECTURE.md10.1 KBDrizzle schema for workspaces, channels, members, messages, threads, reactions, presence. RLS policies, Realtime channel topology, push delivery flow.
PRD.md8.0 KB12 features (F1–F12) including @-mentions, /commands, file uploads, search, threads. MVP/P1/P2 split.
SECURITY.md14.6 KBSTRIDE on real-time message tampering, OWASP 2025, GDPR data inventory, content moderation hooks, retention controls.
MARKETING.md9.9 KBPositioning vs. category leader, persona, GTM phases, channel strategy, growth loops.
PROMPT.md9.5 KB8 sequential steps: foundation → DB schema + RLS → auth + onboarding + workspaces → channels + DMs → messages + Realtime CDC → threads + presence + typing → @mentions + web-push → search + uploads + slash commands + billing + polish.
ARCHITECTURE_CROSSCHECK.md22.0 KBSecond-opinion architecture review: GPT + Gemini independently critique the plan, consolidated into confirmations, corrections, and concrete diffs.
api-guide.html7.6 KBZero-jargon visual guide (opens in your browser): create accounts, get API keys, fill .env, push to GitHub, deploy on Vercel.
lib/mock/index.ts2.8 KBTyped mock dataset — click through the full UI with realistic data before connecting real services.
assets/manifest.json0.3 KBMachine-readable package inventory with generation timestamps.
Supabase Realtime, Drizzle, web-push — no third-party message broker.
Server Components for channel lists, client islands for the chat surface only.
Phoenix Channels handle millions of WebSocket connections. Postgres CDC streams new messages instantly.
Type-safe message + channel queries. Cursor pagination on indexed timestamp columns.
tRPC for in-app actions, REST handlers for slash-command webhooks and bot integrations.
Native browser notifications without push provider lock-in. Self-hosted VAPID.
Themeable workspace colors. High-contrast tokens for unread badges and presence dots.
Start from team chat, end up shipping a community, helpdesk, or live event app.
channels → 1-public + agent inbox · presence → "support online" badge on website · embed widget
channels → public + role-gated · DM → DMs disabled or moderated · add threads-as-forum mode · own the moderation
channels → SCIM-synced from IdP · no public sign-up · own audit log + retention policy
channels → 1 per event · presence → attendee count · auto-archive 24h after event ends
channels → 1 per customer account · invite Slack-Connect-style · all transcripts in your warehouse
Every directory, every route, every migration. What you'll see right after `unzip`.
team-chat/
├── CLAUDE.md
├── PROMPT.md
├── README.md
├── ARCHITECTURE.md
├── PRD.md
├── SECURITY.md
├── MARKETING.md
├── design-tokens.css
├── logo.svg
├── .env.example
├── next.config.ts
├── tailwind.config.ts
├── drizzle.config.ts
├── tsconfig.json
├── package.json
├── app/
│ ├── layout.tsx
│ ├── (auth)/login/page.tsx
│ ├── [workspace]/
│ │ ├── layout.tsx
│ │ ├── (channels)/[channelId]/page.tsx
│ │ ├── (dms)/dm/[memberId]/page.tsx
│ │ ├── threads/[threadId]/page.tsx
│ │ ├── search/page.tsx
│ │ └── settings/{members,channels,integrations}/page.tsx
│ └── api/{trpc/[trpc],webhooks/[provider],push/subscribe}/route.ts
├── components/
│ ├── chat/
│ │ ├── message-list.tsx
│ │ ├── message-composer.tsx
│ │ ├── mention-autocomplete.tsx
│ │ └── slash-commands.tsx
│ ├── presence/{indicator,who-is-here}.tsx
│ ├── threads/thread-pane.tsx
│ └── ui/
├── server/api/routers/{workspace,channel,message,thread,reaction,presence}.ts
├── lib/
│ ├── env.ts
│ ├── supabase/{client,server,admin}.ts
│ ├── auth/helpers.ts
│ └── rate-limit.ts
├── hooks/
├── types/
├── middleware.ts
├── tests/e2e/
└── supabase/migrations/
├── 0001_initial.sql
├── 0002_rls_policies.sql
└── 0003_indexes.sqlEach one ships the same way: paste PROMPT.md into Claude Code and ship.
Notion-inspired
Notion-style workspace, code-owned. Fork into wiki, KB, CRM, recipe vault, project hub.
View scaffold →Cal.com-inspired
Cal.com-style scheduling, code-owned. Self-host multi-host bookings + Stripe payments. Fork into consultations, classes, restaurant reservations.
View scaffold →Linktree-inspired
Personalized bio page + click tracking + UTM + theme presets. Fork into creator landing, portfolio, event page, app smart-link.
View scaffold →Gorgias-inspired
Gorgias-style e-com helpdesk, code-owned. Widget + agent inbox + Shopify order context + AI replies. Fork into support, sales chat, onboarding bot.
View scaffold →Mailchimp-inspired
List management + drag-drop editor + automation triggers. Fork into newsletter, drip campaigns, transactional service.
View scaffold →Zapier-inspired
Zapier-style automation builder, code-owned. Trigger nodes + action nodes + run history. Fork into approval flows, lead routing, sync jobs.
View scaffold →Loom-inspired
Loom-style async video, code-owned. Record + chunked upload + share link + viewer analytics. Fork into tutorial vault, sales demos, internal training.
View scaffold →Hubspot-inspired
Contacts + deals + pipeline stages + email tracking + activity log. Fork into B2B CRM, partner pipeline, investor relations.
View scaffold →Patagon.ai-inspired
WhatsApp AI lead qualification, code-owned. Conversational qualifier + Meta CAPI + Google Calendar + CRM sync. Fork into automotive, real-estate, education, healthcare funnels.
View scaffold →