Scaffolding CLI tool for Surf applications, integrating Vite + React + Express or Next.js with @surf-ai/sdk. Current stable version is 1.0.4. Release cadence is ad-hoc as part of the Surf monorepo. Key differentiators: provides ready-to-use templates pre-configured with backend and frontend, supports both Vite and Next.js, enforces SURF_API_KEY at runtime not build time, and requires BASE_PATH to be set even if empty.
npm install create-surf-appVerified import paths — ran on the pinned version, not inferred.
Scaffold a new Surf app with default Vite template, then run development servers.
Set BASE_PATH= in frontend/.env (Vite template) or .env (Next.js template); it can be empty.
Set SURF_API_KEY in your production environment; CI can omit it if only building.
Ensure frontend/.env has BASE_PATH and PORT, backend/.env has SURF_API_KEY and BACKEND_PORT.
Add SURF_API_KEY=your_key_here to backend/.env (Vite) or .env (Next.js).
Add BASE_PATH= to frontend/.env (Vite) or .env (Next.js). It can be an empty string.