
After building several Next.js apps, I got tired of repeating the same "invisible" setup work every time.
So I spent ~50 hours creating a clean, opinionated boilerplate that lets me (and hopefully you) go from zero to a production-ready app in ~30 minutes.
The biggest surprise: The flashy features (UI, pages, etc.) were quick. The real time sink was the integration layer:
- Auth callbacks with NextAuth
- Proper RBAC + granular permission checks
- i18n routing edge cases (especially with App Router + parallel routes)
- Metadata/SEO setup that actually works across locales
- Docker + testing + linting + CI-friendly structure
What's included:
- Next.js 15 (App Router) + TypeScript
- NextAuth with social + credentials
- Role-based access control with permission middleware
- Full i18n support (routing, metadata, loading)
- Dockerized development & production setup
- Testing (Jest + Playwright), ESLint, Prettier, Husky
- Clean folder structure that's easy to scale
GitHub: https://github.com/salmanshahriar/Nextjs-Elite-Boilerplate
Live demo: https://nextjs-elite-boilerplate.vercel.app/
I’d love honest feedback:
- What’s missing that you usually need in a starter?
- Does the RBAC/permission system feel flexible enough?
- Any pain points with i18n in Next.js that I might have missed?
If it saves you time, a star would be appreciated, but feedback is way more valuable.