Existing Store Patterns¶
Quick reference for how the existing 6 stores work, to inform FAGS/PAGS design decisions.
Store family¶
| Store | Domain | Content | GitHub Org | Doppler | R2 Bucket |
|---|---|---|---|---|---|
| FAS | freeappstore.online | PWA apps | freeappstore-online | fas |
fas-apps |
| PAS | proappstore.online | Paid apps | proappstore-online | pas |
— |
| FGS | freegamestore.online | PWA games | freegamestore-online | fgs |
fgs-games |
| PGS | progamestore.online | Paid games | progamestore-online | pgs |
— |
| FWS | freewebstore.online | One-page sites | freewebstore-online | fws |
fws-templates |
| PWS | prowebstore.online | CMS sites | prowebstore-online | pws |
pws-media |
| FAGS | freeagentstore.online | Browser AI tools | FreeAgentStore | fags |
fags-agents |
| PAGS | proagentstore.online | Server AI agents | ProAgentStore | pags |
pags-agents |
Standard infrastructure per store¶
Each store has:
- Platform monorepo —
<org>/platformon GitHub packages/sdk— NPM package for app developerspackages/cli— NPM package with CLI binarypackages/compliance— Static analysis checkspackages/backend— API Worker- Host Worker —
*.<domain>→ D1 route lookup → R2 serve - Store site — static HTML built from
registry.json - Admin Worker — provisioning (GitHub repo + R2 route + DNS + registry)
- Publisher Worker — self-service publish portal
- VibeCode Agent — AI builder (Durable Object + SSE)
- VibeCode UI (Create) — React SPA for AI builder
Provision flow (same across all stores)¶
fas publish / fgs publish / fags publish
↓
1. Create GitHub repo in org
2. Insert R2 hosting route in D1
3. Create custom domain (CF)
4. Create DNS CNAME
5. Add to registry.json
Free vs Pro patterns¶
Pattern A: Superset (FAS→PAS, FGS→PGS)¶
- Same product architecture
- Pro adds: D1 per app, R2 storage, Workers AI, cron, custom domains, uncapped rooms
- Pro adds: Stripe Connect, creator payouts, license keys
- Pro SDK extends Free SDK
Pattern B: Different product (FWS→PWS)¶
- Different architectures sharing brand + auth
- FWS: single-page HTML, AI writes directly
- PWS: knowledge-graph CMS, AI edits typed data
- Share: agent loop, AI providers, auth, SSE streaming
FAGS→PAGS follows Pattern B¶
- FAGS: browser-only AI tools (static on R2, models run client-side)
- PAGS: server-powered agents (Workers + D1 + DO + Workers AI)
- Share: auth, design system, brand, CLI patterns, compliance framework
Key rules (from stores CLAUDE.md)¶
- Vendor, don't depend — each store copies shared code, no cross-store npm deps
- One repo per store named
platform - Only provision via admin/publisher API — never manual
gh repo create - Push to main = auto-deploy — no manual deploy commands
- Doppler is source of truth for secrets
- Same design system across all stores (fonts, spacing, dark mode; only accent color varies)