An open-source npm package I built and published. One command scaffolds a production-ready Next.js, Fastify and Supabase monorepo, pre-wired to deploy the web app to Vercel and the API to Railway.

One command to a working monorepo: npx nextjs-fastify-supabase-vercel-railway-monorepo my-app
Fastify 5 API with JWT and refresh-token rotation, role-based access control and scoped, hashed API keys
Supabase with Row Level Security on every table, Storage uploads and HMAC-signed webhooks
Next.js App Router frontend with auth flows, protected routes, TanStack Query, Zustand, Tailwind CSS and Radix UI
Turborepo and pnpm workspaces sharing Zod schemas and TypeScript types between the API and the web app
Built-in generators for new API features, pages and components, plus Vitest, Swagger docs and GitHub Actions deploys

Published to npm under the MIT license. The CLI copies a Turborepo template with three packages: a Fastify 5 REST API organised into feature folders (schema, repository, service, controller and route, each with tests), a Next.js App Router web app, and a shared package of Zod schemas and TypeScript types. Strict TypeScript runs across every package, Turborepo pipelines handle dev, build, test, lint and type-check, and GitHub Actions ship the web app to Vercel and the API to Railway through a multi-stage Dockerfile.