Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Free Next.js subscription pricing page template for SaaS products, online services and more.
Chargebee Nextjs Static is a free, MIT-licensed Next.js and TypeScript boilerplate that generates a static subscription pricing page wired to Chargebee Checkout for SaaS products and online services.
Chargebee Nextjs Static (also labeled the Next.js Subscription Pricing Page Starter) is a free, open-source starter template that outputs a deployable Next.js site featuring a subscription pricing page. It takes a Chargebee site ID (provided as the NEXT_PUBLIC_CHARGEBEE_SITE_ID environment variable) and plan prices defined in utils/chargebee.ts, and produces a static page with Chargebee Checkout embedded for managing subscriptions. The template runs on Next.js with TypeScript, is maintained by bharathvaj-ganesan, and a live demo is hosted at chargebee-nextjs-static.vercel.app.
@ prefix for cleaner project structure.To get started, click the "Deploy with Vercel" button in the README to clone the repository and deploy it. Next, set the NEXT_PUBLIC_CHARGEBEE_SITE_ID environment variable to your Chargebee site ID and edit the item prices in utils/chargebee.ts. For local development, run yarn and then yarn dev, and open http://localhost:3000 to view the page.
The template is free and open source under the MIT License. You can use and modify it without charge; using Chargebee's checkout service itself may require a separate Chargebee account.
Vercel's nextjs-subscription-payments, which inspired this template and is built around Stripe for subscription payments.
Yes. The template is released under the MIT License, so it is free to use, modify, and distribute. No payment is required to download or deploy the code itself.
Edit the item prices in the utils/chargebee.ts file. That file defines the plans that are displayed on the pricing page, and your Chargebee site ID is set through the NEXT_PUBLIC_CHARGEBEE_SITE_ID environment variable.
It uses Twind, a Tailwind-in-JS solution, rather than the standard Tailwind CSS build. Twind turns Tailwind utility classes into the generated CSS at runtime, which keeps the bundle small.
Yes. The README includes a "Deploy with Vercel" button that clones the repository and deploys it directly to Vercel. You can then add your Chargebee environment variables in the Vercel dashboard.
The demo is hosted at chargebee-nextjs-static.vercel.app and shows the default pricing page.
