npm.io
0.4.0 • Published 2d agoCLI

create-izri-saas

Licence
Version
0.4.0
Deps
3
Size
608 kB
Vulns
0
Weekly
0

create-izri-saas

Production-grade Next.js 16 SaaS boilerplate. Auth, billing, teams, blog, testing, Docker — one CLI command.

npx create-izri-saas my-saas
cd my-saas
pnpm install
pnpm dev

Features

  • Better Auth — Email/password, OAuth (Google, GitHub), magic links, 2FA, organization management with workspace switching.
  • Multi-Provider Billing — Stripe checkout, webhook sync, customer portal. Stubs for Polar and Creem.
  • Multi-Tenancy — Workspaces with member invites, admin/member roles, team management.
  • MDX Blog — next-mdx-remote, remark-gfm, rehype-highlight, JSON-LD structured data, Open Graph metadata.
  • Testing-First — 10 Vitest unit tests + 13 Playwright E2E tests (auth, landing, blog, billing). GitHub Actions CI.
  • Docker + CLI — Multi-stage Dockerfile, docker-compose with Postgres healthcheck, Vercel-ready.
  • Dashboard — Admin panel, settings page, billing portal, team management UI.

Stack

Layer Choice
Framework Next.js 16 (App Router, Turbopack, React 19)
Language TypeScript 5.8 (strict mode)
Styling Tailwind v4 (CSS-first, oklch, dark mode)
Auth Better Auth (orgs, 2FA, magic links, OAuth)
Database Drizzle ORM + PostgreSQL (postgres-js)
Billing Stripe 17 (checkout, webhooks, portal)
Testing Vitest (unit) + Playwright (E2E)
Infra Docker (multi-stage) + docker-compose

Quick Start

npx create-izri-saas my-saas --no-install
cd my-saas
pnpm install
cp apps/web/.env.example apps/web/.env.local
pnpm dev
Options
Flag Description
--no-git Skip git init
--no-install Skip pnpm install
--db postgres Database provider (default: postgres)

Project Structure

my-saas/
├── apps/
│   └── web/          # Next.js 16 app (30 routes)
├── packages/
│   ├── ai/           # AI utilities
│   ├── auth/         # Better Auth config & plugins
│   ├── billing/      # Stripe integration
│   ├── create-saas/  # Scaffolder package
│   ├── email/        # Email templates
│   └── ui/           # Shared UI components (Radix + Tailwind)
├── tooling/
│   ├── config/       # ESLint config
│   └── typescript/   # Shared tsconfigs
├── docker-compose.yml
├── Dockerfile
└── turbo.json

Routes

  • / — Landing page
  • /login, /register, /auth/* — Authentication
  • /dashboard — User dashboard
  • /settings — Account settings
  • /admin — Admin panel
  • /blog, /blog/[slug] — MDX blog
  • /billing, /billing/portal — Subscription management
  • /api/* — API routes (auth, billing, webhooks)
  • /manifest.webmanifest, /robots.txt, /sitemap.xml — SEO

Requirements

  • Node.js >= 20
  • pnpm >= 10
  • PostgreSQL (or Docker for local dev)

Pricing

$19 one-time — 6 months free updates. Use on unlimited projects.

Buy on Gumroad

License

Personal & commercial use allowed. Resale or redistribution of the boilerplate as-is is prohibited.