• Pricing
  • Blog
Log inBook a demo

Fixed Template

Fixed pricing with boolean features. Monthly/yearly subscriptions with checkout, billing portal, and feature flags.

Templates
Live DemoSource
Fixed Template

Next.js SaaS template for flat monthly or yearly subscriptions with boolean feature flags. Two plans (Pro and Max) with checkout, customer portal, and per-plan feature access checks.

No metered or seat-based billing — the starting point when your product sells plans, not usage.

Stack: Next.js 16, Better Auth, Drizzle ORM, PostgreSQL, Commet SDK

Quick Start

commet create my-app -t fixed
cd my-app
pnpm install
pnpm dev

What's Included

  • Two plans with monthly and yearly prices
  • Five boolean features with per-plan access control
  • Checkout flow with plan selection
  • Customer billing portal (manage subscription, invoices)
  • Auth with automatic customer creation on signup
  • Feature flag checks on the dashboard
  • Pricing page with plan comparison

Key Files

  • lib/auth/auth.ts — Better Auth + Commet plugin (portal, subscriptions, features)
  • lib/payments/commet.ts — Checkout session creation and subscription checks
  • app/pricing/page.tsx — Dynamic pricing page from Commet plans API
  • app/(dashboard)/dashboard/page.tsx — Feature access dashboard
  • app/api/commet/portal/route.ts — Customer portal redirect

Learn More

  • Consumption Models
  • Configure Features
  • Customer Portal

Run commet create my-app -t fixed to start from this template, or browse the source on GitHub.

Subscription billing built for developers and agents

Get startedBook a demo

Accept global payments, handle usage-based pricing, subscriptions, and seats — without building your own infrastructure.

Status unavailable

Frameworks

  • Next.js
  • Remix
  • Nuxt
  • SvelteKit
  • Astro
  • Express
  • Hono
  • Django
  • FastAPI

Resources

  • Documentation
  • Guides
  • Blog
  • Templates
  • Changelog
  • Glossary
  • Billing for AI models

Company

  • Solutions
  • About
  • Open Source

Compare

  • Stripe Billing
  • Orb
  • Chargebee
  • Lago
  • Autumn
  • Yuno

AI

  • Commet Agents
  • MCP Server
  • Skills
  • Claude Code
  • Codex
  • Cursor
Follow us
© 2026 Commet Co.TermsPrivacy PolicyCookie Policy