@devpreflight/nextlaunch
v1.0.0
Published
NextLaunch Pro - Official CLI & Full-Stack SaaS Scaffolder for Next.js 16, React 19, Flat UI Kit, Prisma, Stripe & Polar Multi-Billing
Downloads
186
Maintainers
Readme
NextLaunch Pro 🚀
Enterprise-Grade Next.js 16 & React 19 Full-Stack SaaS Boilerplate
Built by DevPreFlight — ship monetized SaaS applications in hours with plug-and-play Stripe & Polar Merchant of Record payments, zero-friction session authentication, multi-tenant team workspaces, Prisma ORM, and the full 60+ DevPreFlight Flat UI Component Kit.
⚡ Tech Stack & Highlights
- Framework: Next.js 16 (App Router + Turbopack) & React 19
- Billing & Commerce (Dual-Engine):
- Zero-Friction Auth & Sessions:
- Built-in Prisma Cookie Sessions (Zero 3rd-party setup required)
- Plug-and-play Supabase SSR helper (OAuth Google/GitHub & Magic Links)
- Instant 1-Click Demo Login fast-track for rapid previewing
- Database & ORM: Prisma with PostgreSQL, SQLite, MySQL support + Automated Seeder (
npm run db:seed) - Design System: DevPreFlight Flat UI Kit (60+ WCAG AAA accessible components in
src/components/preflight-ui/) - AI-Native: Included
SKILL.md,.cursorrules, andCLAUDE.mdfor AI agent pair programming
📁 Repository Structure
nextlaunch/
├── src/
│ ├── app/
│ │ ├── (auth)/ # Zero-friction Login, Registration & Demo fast-track
│ │ ├── (marketing)/ # High-converting Landing page & Pricing matrix
│ │ ├── (dashboard)/[workspaceId]/
│ │ │ ├── overview # SaaS KPI stats, MRR, sparklines
│ │ │ ├── analytics # Funnel & acquisition channel metrics
│ │ │ ├── team # Multi-tenant seats, member invitations, RBAC
│ │ │ ├── billing # Multi-provider subscription portal & invoice history
│ │ │ ├── ai-studio # Multi-LLM Copilot Studio with token credit metering
│ │ │ ├── ui-showcase # Interactive live DevPreFlight Flat UI Gallery
│ │ │ └── settings # Workspace settings & API key management
│ │ ├── actions/ # React Server Actions (auth, billing, impersonation)
│ │ └── api/webhooks/
│ │ ├── stripe/ # Stripe Webhook verification endpoint
│ │ └── polar/ # Polar Webhook verification endpoint
│ ├── components/
│ │ ├── preflight-ui/ # 💎 THE DEVPREFLIGHT FLAT UI KIT (Standalone design system)
│ │ │ ├── primitives/ # Buttons, Inputs, Toggles, Dropdowns, Radios, Tooltips
│ │ │ ├── feedback/ # Modals, Drawers, Alerts, Toasts, Popovers
│ │ │ ├── commerce/ # Pricing Tables, Paywall Gates, Invoicing Receipts
│ │ │ └── README.md # Standalone UI Kit documentation & porting guide
│ │ ├── dashboard/ # App-specific widgets (Workspace Switcher, Impersonate Banner)
│ │ ├── marketing/ # Landing page sections
│ │ └── layout/ # Navigation bars & footers
│ ├── services/ # Decoupled business logic (Auth, Billing, Workspace, AI)
│ └── lib/
│ ├── payments/ # Unified Payment Adapters (Stripe, Polar, Midtrans)
│ ├── supabase/ # Supabase SSR client & server helpers
│ ├── db.ts # Prisma singleton client
│ └── auth.ts # Session access guards & RBAC helpers
├── prisma/
│ ├── schema.prisma # Relational schema (User, Workspace, Member, Subscription)
│ └── seed.ts # Instant database seeder (Owner, Members, Subscriptions)
└── .agents/skills/ # AI Agent coding recipes🚀 Quick Start (In 3 Minutes)
1. Install Dependencies
npm install2. Configure Environment Variables
Copy .env.example to .env.local:
cp .env.example .env.local3. Initialize & Seed Database
npx prisma generate
npx prisma db push
npm run db:seed4. Start Development Server
npm run devOpen http://localhost:3000 in your browser.
💳 Local Webhook Testing
Testing Stripe Webhooks Locally:
- Install Stripe CLI.
- Forward events:
stripe listen --forward-to localhost:3000/api/webhooks/stripe - Copy the signing secret (
whsec_...) into.env.localasSTRIPE_WEBHOOK_SECRET.
Testing Polar Webhooks Locally:
- Point your webhook URL to
http://localhost:3000/api/webhooks/polarvia tunnel or Polar Sandbox. - Set
POLAR_WEBHOOK_SECRETin.env.local.
📜 License
Commercial License — DevPreFlight. Build unlimited personal and client commercial projects.
