Chargebee Subscription SaaS Starter is a Boilerplate template built on the T3 Stack that gives you a production-ready SaaS foundation with Chargebee billing, authentication, and a full testing setup.
What is Chargebee Subscription SaaS Starter?
Chargebee Subscription SaaS Starter is a full-stack starter template for building subscription-based SaaS products on Next.js. It integrates User Subscriptions via Chargebee, authentication, and testing into one cohesive codebase. The stack is driven by Prisma ORM and deploys to Vercel. It is licensed under the MIT License and is inspired by Vercel's Next.js Subscription Payments template. The repository includes a live demo at https://chargebee-saas-stack.vercel.app/.
Key Features
- T3 Stack typesafety — Full-stack TypeScript with the T3 Stack, ensuring end-to-end type safety across the app.
- Prisma ORM — Database access is driven by Prisma, with PlanetScale listed among the repository topics for the database layer.
- Chargebee subscriptions — User subscriptions and billing are integrated with Chargebee, a subscription management platform.
- Out-of-the-box authentication — The template includes authentication based on NextAuth, as noted in the repository topics and the feature list.
- tRPC — Typesafe APIs are built with tRPC, a core part of the T3 Stack and present in the repository topics.
- Tailwind CSS styling — Styling uses Tailwind.css with the Tailwind Prettier-Plugin for consistent code formatting.
- Automatic deployment to Vercel — The template is designed to deploy automatically to Vercel.
- Linting and formatting — ESLint is configured for linting and Prettier for code formatting.
- Testing setup — The template integrates testing as part of its core goal, per the description.
Who is it for?
- SaaS founders — Launch a subscription-based SaaS product quickly with Chargebee billing and authentication already wired up.
- Next.js developers — Get a type-safe full-stack starter that follows T3 Stack conventions for building production apps.
- Teams using Chargebee — If you already use Chargebee for subscription management, this template provides a ready-made integration layer.
- Indie hackers — Deploy a MVP to Vercel with minimal setup, using the automatic deployment pipeline.
What can you do with it?
- Build a subscription SaaS MVP: Use the starter to scaffold a new product with subscriptions, auth, and a database, then customize the business logic.
- Integrate Chargebee billing: The template handles the Chargebee subscription workflow, so you can focus on your app features.
- Learn the T3 Stack: Study a concrete example of how Prisma, tRPC, NextAuth, and Tailwind work together in a real template.
Alternatives
- Vercel's Next.js Subscription Payments — A starter template for subscription payments that inspired this project; it uses Stripe instead of Chargebee.
FAQ
What is the T3 Stack?
The T3 Stack is a TypeScript-first stack that combines Next.js, tRPC, Prisma, and NextAuth for building type-safe full-stack applications. This template is built on the T3 Stack.
Does this template include authentication?
Yes, it includes "Out of the box Authentication" using NextAuth, as indicated in the repository topics and feature list.
How do I deploy this template?
The template is designed for automatic deployment to Vercel. You can connect your repository to Vercel and it will deploy automatically.
Is the template free to use?
The project is licensed under the MIT License, so it is free to use and modify.
What database does it use?
The template uses Prisma ORM for database access. The repository topics also mention PlanetScale, which is commonly used with Prisma.
