Full-Stack SaaS
Next.js 15 + Prisma + Polar SaaS
Autonomous B2B SaaS starter with 122 PR rules, Polar billing, and AEO optimization.
★ 342 GitHub stars
npx brevio init --blueprint=nextjs-b2b-saasNext.js 15 (App Router)TypeScriptPrisma ORMTailwind CSSPolar.sh
Initial Roadmap & Feature Tasks (3)
TASK-001 · Setup Auth & Tenant Context MiddlewareP0 · GUARDRAIL
Acceptance Criteria: Multi-tenant tenantId header injected on all protected /api routes.
TASK-002 · Polar Subscription Webhook HandlerP0 · FEATURE
Acceptance Criteria: Idempotent webhook endpoint granting plan entitlements with signature check.
TASK-003 · Generate /llms.txt and /skill.mdP1 · FEATURE
Acceptance Criteria: Machine-readable documentation index generated at build time.
CONSTITUTION.md
Immutable Floors# Engineering Constitution — Next.js B2B SaaS 1. Zero Secrets in commits or client-visible code (enforced by push secret scan). 2. All pull requests pass the 122 PR-checkable AST rules (R1–R19). 3. Database mutations must use Prisma transactions with strict multi-tenant filtering. 4. Core landing pages must maintain /llms.txt and Scorecard AEO score >= 85. 5. Mobile viewport tap targets >= 44px, LCP <= 1.8s.
CLAUDE.md
Coding Guidance# Assistant Guidelines — Next.js B2B SaaS - Enforce TypeScript strict mode without 'any' assertions. - Use Next.js Server Components by default; reserve 'use client' for interactive leaf nodes. - Validate API input payloads using Zod schemas. - Write hermetic unit tests with Vitest before creating PRs.
Ready to materialize this project?
Run the single-line init command to generate your workspace.