
Every SaaS project I started had the same first two weeks: set up authentication, wire up Stripe,...
Every SaaS project I started had the same first two weeks: set up authentication, wire up Stripe, build an admin panel, configure emails, create a blog. By the third time around, I decided to just package everything into one starter and open-source it.
A production-ready Next.js boilerplate for SaaS applications. It ships with the boring-but-necessary stuff already done so you can focus on the thing that actually makes your product different.
GitHub: github.com/habibjutt/nextjs_boilerplate Live demo: nextjssaas.netlify.app
All powered by Better Auth, which I picked over NextAuth because it handles edge cases around session management more reliably in my experience.
| Layer | Tech |
|---|---|
| Framework | Next.js 16 (App Router) |
| Language | TypeScript |
| Database | PostgreSQL + Prisma ORM |
| Styling | Tailwind CSS |
| UI | shadcn/ui + Radix |
| Auth | Better Auth |
| Payments | Stripe |
| React Email + Resend |
git clone https://github.com/habibjutt/nextjs_boilerplate.git
cd nextjs_boilerplate
npm install
cp .env.example .env
# Fill in your env vars (Stripe keys, database URL, etc.)
npx prisma migrate dev
npm run dev
The .env.example file has comments explaining each variable. Most features can be toggled on or off through environment variables - for example, you can disable email verification or two-factor auth with a single flag.
I built this primarily for myself, but figured it might save other people some time too. It's MIT licensed with no premium tier or gated features.
If you try it out, I'd appreciate feedback. And if you find it useful, a GitHub star helps with visibility.
Contributions are welcome - whether it's bug fixes, new features, or just pointing out something that could be better.
Links:
gemmaI ported the whole Gemma-4 family — E2B, E4B, 12B, 31B, and the 26B-A4B MoE — to run on...
communityHey DEV, I'm Tobore. Let's actually connect. I've been on here for a while now, mostly writing and...
ai(yep, kinda clickbait, just for the funsies 😊) At the beginning of the year, I relaunched my...
aiMy laptop was sitting idle with the fan at full tilt. Nothing was running that I knew of. The culprit...
githubactionsI Built a Thing! TL;DR — Google Gemini-based Pull Request reviews and Issue Triaging for...
aiI've been hearing the word "harness" thrown around a lot lately. I assumed it just meant "the IDE" or...
Workflows from the Neura Market marketplace related to this DeepSeek resource