Next.js 16 · BetterAuth · Polar · Drizzle ORM

Stop rebuilding auth
every single time.

Every SaaS needs auth, payments, email, and an admin panel. You've wired them up before. You know it takes two weeks. You know it's never the fun part.

AppName ships with all of it — production-ready, documented, and already talking to each other. Clone it and build what actually matters.

~14 daysof setup work saved
7 servicespre-integrated & working
1 afternoonfrom clone to first sale

Sound familiar?

You've been here before.

Every developer who has started a SaaS has lost the first two weeks not building their product — but building the scaffolding around it. This boilerplate eliminates that entirely.

Day 3 debugging OAuth redirect URIs and still getting 400 errors

Google and GitHub OAuth working from the first npm run dev

Reading Stripe docs for the fourth time, still lost on webhooks

Polar checkout, webhook handler, and billing portal — already wired up

Stripe requires a registered business. You're an indie developer.

Polar accepts personal accounts globally. No business registration needed.

Hand-rolled email verification that breaks in every edge case

Verification, password reset, and subscription emails with React templates

Session checks copy-pasted across every page, half of them wrong

Layout-level auth guards on every route. One place to change, all pages protected.

No idea which users are on what plan or why they churned

Admin panel with user list, plan status, ban controls, and role management

Prisma binary adding 30MB to your serverless deployment bundle

Drizzle ORM — zero binary, tiny bundle, plain SQL migrations you can actually read

Writing the same billing cancel / resubscribe logic from memory again

Full subscription lifecycle handled: checkout, cancel, revoke, resubscribe, portal

Your idea was exciting. Two weeks of infrastructure later — not so much.

Start writing product features on day one. The scaffolding is already there.

What's included

Everything wired together

Not a collection of starter templates stitched together. Every service is integrated, tested, and talking to the others.

Authentication — done right

Email + password, Google, and GitHub OAuth. Email verification, password reset, and role-based access control. Built on BetterAuth — free, self-hosted, and you own every user record.

Payments that work globally

Polar subscription billing — no business registration required. Checkout, webhooks, customer portal, cancel, and resubscribe flows all pre-built. Polar handles VAT and taxes worldwide.

Database without the overhead

Drizzle ORM on Neon serverless Postgres. Type-safe queries, zero binary overhead, and migrations as plain SQL files. Scales to zero when idle — no surprise bills.

Transactional email out of the box

Resend integration with four React Email templates: verification, password reset, subscription confirmation, and cancellation. Preview templates in the browser during development.

Admin panel included

Paginated user list with plan status, ban and unban controls, and role management. Protected by role-based layout guard. No third-party admin tool required.

SEO-ready blog

Write posts in MDX. Frontmatter metadata, auto-generated sitemap, OpenGraph per post, and syntax highlighting. Blog posts start ranking from day one.

SEO & metadata

Root metadata with title template, per-page overrides, robots.txt, sitemap.xml with all blog posts, and a generated OpenGraph image. Nothing left to wire up.

Landing page & dark mode

Hero, Features, Pricing, FAQ, and CTA sections — all using shadcn/ui on Tailwind v4. System-default dark mode included. Fully responsive from mobile to wide desktop.

FAQ

Frequently asked questions

Questions buyers ask before purchasing. If yours is not here, reach out.

Ready to ship?

Your next project starts
on day one.

Stop burning the first two weeks on infrastructure you've built before. Buy the boilerplate, rename AppName to your product, and start writing features.

One-time purchase. No subscription.
Use on unlimited projects, forever.