LaunchFst Documentation
Complete guide to the LaunchFst Next.js SaaS boilerplate. Ship your product in days, not months.
LaunchFst Documentation
Welcome to LaunchFst — a production-ready Next.js SaaS boilerplate with everything wired up so you can focus on building your product.
Quick Start
git clone https://github.com/your-org/launchfst.git my-app
cd my-app
pnpm install
cp .env.example .env.local
# Set DATABASE_URL in .env.local
pnpm db:push
pnpm devSee Installation for the full setup guide with all environment variables.
What's Inside
| Feature | Details |
|---|---|
| Authentication | NextAuth v5 JWT — credentials, Google, GitHub. Zero DB queries on navigation. bcryptjs, password reset, RBAC. |
| Payments | LemonSqueezy, Polar, and Stripe. Switch providers with one env var. Webhook-synced subscriptions. |
| Teams | Multi-tenant organizations with OWNER/ADMIN/MEMBER roles, email invitations, ownership transfer. |
| Dashboard | Analytics, billing, profile settings, notification center, org switcher, command palette. |
| Design System | 6 theme presets, 5 landing templates, 33+ block variants, 20+ Magic UI components. All config-driven. |
| Feature Add-ons | 13 optional features: AI Chat, Analytics, File Uploads, Error Monitoring, Rate Limiting, and more. |
| Docs & Blog | Fumadocs MDX — in-app documentation and blog with syntax highlighting, search, and dark mode. |
| Resend or Nodemailer. 6 React Email templates: welcome, password reset, invitations, receipts. | |
| SuperAdmin | Platform overview, user management, org management, contact submissions, newsletter, feedback. |
Tech Stack
| Layer | Technology | Version |
|---|---|---|
| Framework | Next.js App Router + Turbopack | 16.2.1 |
| Language | TypeScript (strict mode) | 5.x |
| Styling | Tailwind CSS v4 + shadcn/ui (New York) | v4 |
| Auth | NextAuth v5 JWT (no PrismaAdapter) | 5.0.0-beta.30 |
| Database | Prisma + PostgreSQL | 7.x |
| Data Fetching | TanStack Query v5 | 5.x |
| Payments | LemonSqueezy + Polar + Stripe | — |
| Resend / Nodemailer + React Email | — | |
| Animations | Framer Motion + Magic UI | 12.x |
| Charts | Recharts | 3.x |
| Validation | Zod | 4.x |
| Icons | Lucide React | — |
| Docs | Fumadocs MDX | 16.x |
| Package Manager | pnpm | — |
Feature Flags
Toggle features without changing code. Set any of these in .env.local:
| Flag | Default | Controls |
|---|---|---|
NEXT_PUBLIC_ENABLE_BLOG | true | /blog page + nav link |
NEXT_PUBLIC_ENABLE_DOCS | true | /docs pages + nav link |
NEXT_PUBLIC_ENABLE_CONTACT | true | /contact page |
NEXT_PUBLIC_ENABLE_NEWSLETTER | true | Newsletter section on landing |
NEXT_PUBLIC_ENABLE_ORGANIZATIONS | true | Org system in dashboard |
NEXT_PUBLIC_ENABLE_WAITLIST | true | Waitlist section on landing |
NEXT_PUBLIC_ENABLE_FEEDBACK | true | Floating feedback widget |
NEXT_PUBLIC_ENABLE_CHANGELOG | true | /changelog page |
NEXT_PUBLIC_ENABLE_SEARCH | true | Cmd+K command palette |
NEXT_PUBLIC_COMING_SOON | false | Redirect all routes to coming soon |
NEXT_PUBLIC_DEMO_MODE | false | Demo data + restricted interactions |
Database Models
12 Prisma models out of the box:
User · Account · Organization · OrganizationMember · OrgInvitation · UploadedFile · ContactSubmission · NewsletterSubscriber · WaitlistEntry · Feedback · Notification · UsageRecord
Navigation
- Installation — Setup, environment variables, scripts
- Configuration — site.ts, features.ts, pricing.ts, navigation.ts
- Authentication — Providers, JWT strategy, helpers, password reset
- Payments — LemonSqueezy, Polar, Stripe setup guides
- Dashboard — Pages, navigation, notifications, how to add pages
- Organizations — Teams, invitations, roles, ownership
- Roles — USER, ADMIN, SUPERADMIN — access levels and RBAC
- SuperAdmin — Platform management panel
- Email — Templates, providers, DNS setup
- Data Fetching — Prisma (server) + TanStack Query (client)
- Deployment — Vercel, Docker, Railway
- Security — Hashing, JWT, webhook verification, rate limiting
- Design System — Themes, templates, headers, Magic UI
- Themes — 6 color presets with OKLCH CSS variables
- Blocks — 33+ landing page block variants
- Backgrounds — 6 hero background presets