Problem
faf init detects projects with api/ directories and Edge Functions as static-site because they have index.html files. This is wrong for platforms like FAF-Voice — a multi-provider voice AI platform with Vercel Edge Functions, WebSocket connections, and serverless API endpoints.
Solution
New project type: api-platform
Detection: Projects with an api/ directory AND either vercel.json, wrangler.toml, or index.html are classified as api-platform instead of static-site.
Slot mapping: Same as fullstack — enables frontend, backend, universal, and human context slots.
Use Cases
- Vercel Edge Function platforms
- Cloudflare Workers API platforms
- Serverless API platforms with HTML frontends
- Multi-provider AI platforms (voice, text, multimodal)
Real-world example
FAF-Voice v2.0.0 — 4 frontier AIs (Grok, OpenAI, Claude, Gemini) sharing eternal memory via MCPaaS. Has api/ with 4 Edge Functions + index.html + vercel.json. Should be api-platform, not static-site.
Status
Implemented in commit 0ee02b5. 390 tests passing.
Problem
faf initdetects projects withapi/directories and Edge Functions asstatic-sitebecause they haveindex.htmlfiles. This is wrong for platforms like FAF-Voice — a multi-provider voice AI platform with Vercel Edge Functions, WebSocket connections, and serverless API endpoints.Solution
New project type:
api-platformDetection: Projects with an
api/directory AND eithervercel.json,wrangler.toml, orindex.htmlare classified asapi-platforminstead ofstatic-site.Slot mapping: Same as
fullstack— enables frontend, backend, universal, and human context slots.Use Cases
Real-world example
FAF-Voice v2.0.0 — 4 frontier AIs (Grok, OpenAI, Claude, Gemini) sharing eternal memory via MCPaaS. Has
api/with 4 Edge Functions +index.html+vercel.json. Should beapi-platform, notstatic-site.Status
Implemented in commit
0ee02b5. 390 tests passing.