Frontend
Next.js App Router, global marketing pages, dashboard screens, docs hub, auth callbacks, API route handlers.
This guide is for engineers implementing the control plane, Supabase backend, node telemetry, customer APIs, and pilot deployment workflow.
| Task | Command or endpoint |
|---|---|
| Local setup | npm install && npm run dev |
| Build | npm run build |
| Schema order | docs/supabase-schema.sql → docs/rls-policies.sql → docs/seed-demo.sql |
| Health check | GET /api/health |
| Readiness check | GET /api/readiness/check |
| OpenAI-compatible gateway | GET /api/v1/models · POST /api/v1/chat/completions · POST /api/v1/embeddings |
Next.js App Router, global marketing pages, dashboard screens, docs hub, auth callbacks, API route handlers.
Postgres tables, RLS policies, OAuth, magic links, tenant membership, node telemetry, usage events, audit events.
Linux TypeScript collector starter that reports GPU, power, latency, temperature, and heartbeat metrics.
Explainable routing stubs that score nodes by latency, health, available power, region policy, runtime health, and tenant quota.
OpenAI-compatible API surfaces for /v1/models, /v1/chat/completions, and /v1/embeddings.
Incidents, SLA, failover, billing-control, compliance evidence, runtime marketplace, and admin/audit screens.
Extract the ZIP and run npm install.
Copy .env.example to .env.local and add Supabase URL, anon key, service role key, and NEXT_PUBLIC_SITE_URL.
Run docs/supabase-schema.sql, then docs/rls-policies.sql, then optionally docs/seed-demo.sql in Supabase SQL editor.
Configure Google and GitHub OAuth providers in Supabase Auth and add /auth/callback redirect URLs.
Run npm run dev and verify /api/health, /login, /operator, /docs, and /api/readiness/check.
Deploy to Vercel, add the same environment variables, and re-check OAuth redirects on the production domain.
/api/auth/oauth · /api/auth/signin · /api/auth/signout · /auth/callback
/api/nodes/register · /api/node-keys/create · /api/node-keys/list · /api/node-keys/rotate · /api/node-keys/revoke
/api/telemetry/ingest · /api/ops/snapshot · /api/usage/summary
/api/v1/models · /api/v1/chat/completions · /api/v1/embeddings
/api/router/simulate · /api/failover/simulate · /api/sla/simulate · /api/sla/v7-policy
/api/readiness/check
Replace mock runtime responses with a real vLLM/Ollama/TGI proxy, generate Supabase types from your live database, enforce customer API quotas, add invitation acceptance, and package the node agent as a signed Linux release.