Launch your SaaS in days, not months.
Templ8 is a production-ready Next.js starter kit with authentication, subscription billing, a serverless Postgres database, role-based administration, dark mode, multi-language internationalisation and automated testing. Buy it once, own the source.
Questions before you buy? Email hello@mahfoudh.dev.
What’s included
Everything below is in the repository you get access to.
Next.js App Router
Next.js 16 with Turbopack-powered dev and build, React 19, Server Components and Server Actions.
Authentication
Better Auth with email and password (scrypt-hashed), Google and GitHub OAuth, email verification, password reset, and role-based access control across user, moderator and admin roles.
Subscription billing
Stripe Checkout and the customer billing portal, with pre-configured Free, Pro and Enterprise tiers and an idempotent webhook handler covering trials, dunning and cancellation.
Database and ORM
PostgreSQL over @neondatabase/serverless, with a type-safe Drizzle schema and automated migrations.
Internationalisation
next-intl with English, French and Arabic, including native right-to-left layout.
UI and dark mode
Tailwind CSS v4 and shadcn/ui components in the new-york style, with light, dark and system theme switching via next-themes.
Route protection
An auth gate in proxy.ts plus requireSession() and requireRole() guards in server layouts, with rate limiting on sign-in, registration, password reset and feedback.
Admin portal
A protected dashboard for admin and moderator roles with user metrics, directory search, role management and suspension controls.
Tests and quality gates
Vitest unit and integration tests, Playwright end-to-end specs, and Husky pre-commit and pre-push hooks running tsc, ESLint and the test suites.
The stack
No proprietary abstractions. If you know these tools, you already know the codebase.
- Next.js 16
- React 19
- TypeScript
- Better Auth
- Stripe
- Drizzle ORM
- Neon PostgreSQL
- Tailwind CSS v4
- shadcn/ui
- next-intl
- next-themes
- Resend + React Email
- Vitest
- Playwright
- Husky
What’s not included
Worth knowing before you pay, not after.
Third-party accounts and hosting
You bring your own Neon (or Postgres), Stripe, Resend and OAuth credentials, and your own hosting. Templ8 is the code, not the services it talks to.
Guaranteed support or updates
Updates are provided at the author's discretion. The licence does not entitle you to support, maintenance, future versions or any particular update schedule unless stated at the point of sale.
Exhaustive test coverage
The Vitest and Playwright suites cover the critical paths. They are a foundation to build on, not exhaustive coverage.
Production-grade rate limiting
Rate limiting keeps its counters in process memory. That is fine for a single server, but on serverless each instance counts separately — swap in Upstash Redis or similar before you rely on it.
Legal advice
The kit ships a commercial licence template as a starting point. Fill in your jurisdiction and support email, and have a lawyer in your jurisdiction review it before you sell anything built on it.
Resale rights
You cannot resell, republish or redistribute Templ8 itself, or use it to build a competing starter kit or template.
Pricing
One-time payment. No subscription, no seat counting, no renewal.
Single Application
One product, built by you or your team.
$79
USD · one-time payment · taxes calculated at checkout
- Use Templ8 as the basis for one (1) End Product
- That End Product may be commercial, public, and charge its own users
- Use by a single developer, or by developers within one organisation working on that End Product
- Full source code, via a private GitHub repository invitation
- Perpetual licence — the version you receive stays yours
Unlimited Applications
Unlimited products, including client work.
$149
USD · one-time payment · taxes calculated at checkout
- Use Templ8 as the basis for an unlimited number of End Products
- Includes End Products built for clients
- Use by any number of developers within your organisation
- Full source code, via a private GitHub repository invitation
- Perpetual licence — the version you receive stays yours
Both licences exclude
- No reselling, sublicensing, renting or redistributing Templ8 itself
- No publishing it to a public repository, package registry or template marketplace
- No using it to build a competing starter kit, boilerplate or template
- A separate licence is required for each entity
Full detail in the licence terms.
How delivery works
Templ8 is delivered as a private GitHub repository, not a zip file.
You buy through Paddle
Paddle.com Market Ltd is the merchant of record and processes payments. Checkout opens in an overlay on this page and Paddle emails you a receipt.
You send your GitHub username
After payment, reply to your Paddle receipt or email support with the GitHub username that should receive access. The invitation cannot be sent without it.
You get a repository invitation
The invitation to the private repository is sent within 24 hours of receiving your GitHub username. GitHub emails you directly; accept it and clone the repository.
You keep the code
The licence is perpetual. If repository access ever ends, any copy you have already cloned remains licensed to you under the tier you bought.
Delivery is manual, so it is not instant. If your invitation has not arrived in the window above, email hello@mahfoudh.dev and it will be sorted out.
Questions
- Can I use Templ8 for client work?
- Yes, on the Unlimited Applications licence. It covers an unlimited number of End Products, including products you build for clients, and use by any number of developers within your organisation. The Single Application licence covers one End Product only.
- Can I resell or republish the code?
- No. You may not resell, sublicense, rent, lend or redistribute Templ8 itself, publish it to a public repository or template marketplace, or use it to build a competing starter kit, boilerplate or template. You own the code you write on top of it.
- Is the licence perpetual?
- Yes. It is a perpetual, worldwide, non-exclusive, non-transferable licence, limited by the tier you buy. The version you receive stays yours. It is a one-time payment, not a subscription.
- Do I get updates?
- Updates, if any, are provided at the author's discretion and are covered by the same licence. There is no guaranteed update schedule.
- What do I need to run it?
- Node.js and pnpm, a Postgres database (Neon is pre-configured), and API credentials for the services you switch on — Stripe for billing, Resend for transactional email, and Google or GitHub if you want social sign-in.
- Who handles the payment?
- Paddle.com Market Ltd is the merchant of record and processes payments, including sales tax and VAT where it applies. Your receipt and invoice come from Paddle.
- What if I want a refund?
- You can request a refund within 14 days of purchase, subject to the conditions on the refunds page. Refunds are processed by Paddle, as merchant of record. Please read that page before buying: access is a private GitHub repository sent within 24 hours of receiving your GitHub username, and once you have cloned it the copy cannot be taken back.
Anything else, email hello@mahfoudh.dev.