Skip to content

Add api-platform project type #54

@Wolfe-Jam

Description

@Wolfe-Jam

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions