A Next.js 16 SaaS starter kit in TypeScript with React 19, PostgreSQL, Better Auth, Drizzle ORM, Tailwind CSS and shadcn/ui, for developers who want accounts, teams and billing already built. It includes workspaces with owner, admin and member roles, onboarding, Stripe subscriptions, an admin panel, per-workspace API keys and a REST API.
by Light CloudSaaS


Every integration is switched on in src/lib/config.ts only when all of its variables are set, so a deploy with just DATABASE_URL and AUTH_SECRET works end to end. Better Auth's organization, admin and Stripe plugins handle workspaces, roles and subscriptions, and src/lib/permissions.ts keeps the app's own role checks in step with them. The first change is usually replacing the Projects example: add a table in src/lib/db/schema.ts, run npm run db:generate and copy the pattern of src/lib/projects.ts and the routes in src/app/api/v1. On Light Cloud the deploy runs npm run build and then npm start on PORT, with DATABASE_URL and a generated AUTH_SECRET set, and every push to your copy redeploys.
Yes. Stripe Checkout, the customer portal and a webhook at /api/auth/stripe/webhook switch on when STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET, STRIPE_PRICE_PRO and STRIPE_PRICE_BUSINESS are all set. Subscriptions belong to the workspace, and only owners can upgrade.
Yes. With only DATABASE_URL and AUTH_SECRET, sign-up, teams, projects, the admin panel and the API all work. Everyone stays on the Free plan and emails are printed to the server log.
Edit src/lib/plans.ts, which drives the pricing page, the project and member limits and Stripe Checkout. The prices there are for display only; Stripe charges what the price ids say.
On a paid Light Cloud plan, the Deploy button copies the repo into your GitHub account, creates the database, sets DATABASE_URL and generates AUTH_SECRET. Migrations run when the app starts, and each push to your copy redeploys.
Yes. It is a standard Next.js app with no Light Cloud code: any Node.js 22.12 host that can reach PostgreSQL runs it with npm ci, npm run build and npm start, once DATABASE_URL and AUTH_SECRET are set.