Loading scaffold…
Loading scaffold…
Embed widget + agent inbox + AI suggested replies — yours to fork into Shopify support, sales chat, internal IT desk. The code is yours. Forever.
Visitor widget on the left, agent inbox on the right. Type as the visitor — the message lands in the inbox. Apply AI suggestions, tag, snooze, close. Real-time round-trip.
Live mock — same UX you ship after pasting PROMPT.md into Claude Code.
Same e-commerce support UX. Different ownership model. Four things that compound once your ticket volume grows.
| Comparison axis | Gorgias | Need for Build scaffold |
|---|---|---|
| Pricing | $10–360 per month + per-ticket overage. Surprise bills on Black Friday. | Free forever. Pay only your own hosting and Anthropic API calls. |
| Data ownership | Their cloud holds your order history mirror. | Your Supabase project. Direct Shopify webhooks. Your data, your retention. |
| Privacy | Their compliance posture covers your customers. | RLS-scoped per workspace. PII only goes through your infra. |
| Extensibility | Their macros, their automations, their AI flavor. | Full Next.js + Realtime. Custom AI tone, custom routing, custom integrations — today. |
Every file the scaffold ships, with size and one-line description. Download once, build forever.
CLAUDE.md6.8 KBProject config for Claude Code — tech stack, commands, code style, critical rules. Under 100 lines, read first.
ARCHITECTURE.md14.1 KBDrizzle schema for conversations, messages, contacts, agents, tags. Widget iframe protocol, Anthropic suggestion flow, ticket lifecycle.
PRD.md8.0 KB13 features (F1–F13): widget customization, agent inbox, AI suggestions, internal notes, tags, SLA tracking.
SECURITY.md11.5 KBSTRIDE threat model, OWASP 2025 Top 10 checklist, GDPR data inventory, security headers config.
MARKETING.md9.9 KBPositioning vs. category leader, persona, GTM phases, channel strategy, growth loops.
PROMPT.md12.3 KB7 sequential steps: foundation → DB schema + RLS + Realtime + pgcrypto → auth + onboarding → widget iframe + loader.js + visitor sessions → agent inbox + Realtime CDC → Shopify integration → AI suggested replies + tags + SLA + CSAT + billing + polish.
ARCHITECTURE_CROSSCHECK.md27.7 KBSecond-opinion architecture review: GPT + Gemini independently critique the plan, consolidated into confirmations, corrections, and concrete diffs.
api-guide.html7.5 KBZero-jargon visual guide (opens in your browser): create accounts, get API keys, fill .env, push to GitHub, deploy on Vercel.
lib/mock/index.ts4.2 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 + Anthropic Haiku + iframe widget. Brandable per workspace.
Agent inbox SSR-fast. Public widget served as a tiny iframe-embedded route.
Visitor ↔ agent message stream. Postgres CDC pushes to both ends without polling.
Conversations, messages, contacts, tickets — indexed for inbox filters (open, mine, snoozed).
Suggested replies stream while agent reads. Tone match to past replies in same conversation.
Agent dashboard actions: assign, snooze, close, tag, internal note.
Brandable widget colors via runtime CSS vars. Agent UI fixed dark theme.
Start from e-com support, end up shipping sales chat, onboarding bot, internal IT desk.
widget → store front + order lookup · suggested replies grounded on shipping policy · auto-resolve "where is my order"
widget → high-intent pages only · route to AE via round-robin · auto-create lead in your CRM
widget → in-app · scripted flow first, agent handoff fallback · own the playbook code
widget → SCIM-only auth · ticket types: bug/request/access · escalation policy + your SLA
widget → gated by user tag · routes to dedicated agent · all transcripts in your warehouse
Every directory, every route, every migration. What you'll see right after `unzip`.
customer-support-widget/
├── 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
│ ├── (agent)/
│ │ ├── inbox/page.tsx
│ │ ├── conversations/[id]/page.tsx
│ │ ├── contacts/{,[id]}/page.tsx
│ │ ├── tags/page.tsx
│ │ └── settings/{widget,team,ai}/page.tsx
│ ├── (widget)/embed/[workspaceId]/
│ │ └── page.tsx
│ └── api/
│ ├── trpc/[trpc]/route.ts
│ ├── widget/{init,messages}/route.ts
│ └── ai/suggest/route.ts
├── components/
│ ├── widget/{launcher,panel,message-bubble,typing}.tsx
│ ├── inbox/{list,filters,assignee-picker}.tsx
│ ├── ai/{suggestion-tray,context-badge}.tsx
│ └── ui/
├── server/api/routers/{conversation,message,contact,agent,tag,ai}.ts
└── public/widget-loader.js
├── 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 →Slack-inspired
Channels + DM + threads + realtime presence. Fork into customer chat, community platform, internal team tool.
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 →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 →