Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
An open source production-ready Next.js boilerplate: frontend-first, API-driven, with BetterAuth, RBAC, i18n, shadcn/ui, and Tailwind v4.

A full-stack Next.js TypeScript template focused on functionality over UI, featuring Zustand, TanStack Query, and ESLint 9 support.
Next Elite is an open-source, production-ready Next.js boilerplate (MIT-licensed) that scaffolds a frontend-first SaaS app with BetterAuth, RBAC, i18n, and a shadcn/ui design system out of the box.
Next Elite is a frontend-first Next.js 16 boilerplate for teams that consume existing REST, GraphQL, or BFF backends instead of managing their own database. It runs on Node.js 22 with TypeScript 6, and ships a complete SaaS starter: login and registration pages, role-based dashboards, a marketing page, and a UI component page. The project is maintained by Salman Shahriar in the GitHub repository salmanshahriar/Next-Elite and currently has 104 stars. It includes 40+ custom and reusable UI components built on shadcn/ui, plus a preconfigured project structure under src/features/.
/api/auth/* route handlers; admin emails are set through AUTH_ADMIN_EMAILS or NEXT_PUBLIC_AUTH_ADMIN_EMAILS.user and admin roles with server-side guards requireUser() and requirePermission(), plus parallel route slots @admin and @user for role-based layouts.@tailwindcss/postcss and tw-animate-css, with Radix UI and CVA-based components and a light/dark theme toggle.QueryClientProvider in src/app/providers.tsx with sensible staleTime, gcTime, and retry defaults for REST, GraphQL, or BFF calls.instrumentation.ts and a /api/health endpoint for load balancer and container health checks.[email protected] / [email protected], password 12345678) to explore RBAC and dashboard slots immediately.The rendering model is server-first: pages are Server Components, auth and role checks run server-side, and live data is fetched on the client. When a user opens a page, requireUser() or requirePermission() reads the BetterAuth session and redirects to /login or /unauthorized if access is missing; the server sends HTML with translations from the messages/ folder, and TanStack Query hooks such as useQuery fetch API data in the browser. Local setup is four steps: clone the repo, run npm install, copy .env.example to .env, and run npm run dev on port 6767.
Next Elite is free and open source under the MIT license.
Yes, Next Elite is free and open source under the MIT license. You can clone the repository, use the template, and deploy it commercially without licensing fees.
Next Elite uses BetterAuth with email/password and Google OAuth. Admin emails are configured through AUTH_ADMIN_EMAILS or NEXT_PUBLIC_AUTH_ADMIN_EMAILS, and the auth routes live under /api/auth/*.
It supports six locales: English, বাংলা, العربية (RTL), Français, Español, and 简体中文. Locale is selected via a cookie with no URL prefix, and translation keys are type-checked.
No. Next Elite is frontend-first and designed to consume existing REST, GraphQL, or BFF backends. It does not include a database layer, so it is best suited for projects that already have an API.
When NEXT_PUBLIC_DEMO_MODE=true, the login screen shows a quick-fill panel with [email protected] and [email protected], both with password 12345678. For production, set the flag to false or delete the src/features/auth/demo/ module.
