A complete Next.js 16 starter template configured with TypeScript, Chakra UI, ESLint, Prettier, Husky, and Cypress.
Perfect for developers who want to build fast, scalable, and modern web applications using the latest Next.js features.
This project is a Next.js boilerplate built with TypeScript, Chakra UI, ESLint, Prettier, Husky, and Cypress — designed to help you start new projects quickly and with the best development experience.
It includes:
- ⚙️ A clean, scalable architecture;
- 🎨 Theming support (light/dark) with Chakra UI;
- 🧪 E2E and component testing with Cypress;
- ✅ Automated linting, formatting, and pre-commit checks;
- 🚀 SEO-friendly configuration out of the box.
Get this starter project and maximize your experience as a developer!
- Node.js 22.x or later
- macOS, Windows (including WSL), and Linux supported
- ⚛️ Full Next.js setup (SSR, SSG, API routes, and more)
- 🎨 Styling with Chakra UI
- 🌓 Dark and light theme configuration
- 🛠 TypeScript support
- 📝 Linting and formatting via ESLint + Prettier
- ✅ Pre-commit hooks with Husky + lint-staged
- 🧪 E2E and component testing via Cypress
- ✨ Absolute imports (
~) - 📁 Minimal and organized folder structure
- 🔍 SEO-friendly configuration
- ⚡ Ready for production deployment
yarn create next-js-boilerplate
# OR
npx create-next-js-boilerplateyarn husky-install
# OR
npm run husky-installyarn dev
# OR
npm run devOpen http://localhost:3000 with your browser to see the result.
Edit pages/index.tsx — the page updates automatically as you save.
git clone https://github.com/AstrOOnauta/next-js-boilerplate.gityarn
# OR
npm installyarn husky-install
# OR
npm run husky-installyarn dev
# OR
npm run devOpen http://localhost:3000 and start building!
| Command | Description |
|---|---|
dev |
Runs the app on localhost:3000 |
build |
Creates the production build |
start |
Runs a production server |
prettier |
Formats all files |
lint |
Runs ESLint |
lint-staged |
Lints only staged files |
husky-install |
Initializes Husky |
type-check |
Runs TypeScript checks |
cypress:open |
Opens Cypress UI |
cypress:run |
Runs Cypress tests in CLI |
- Save hours of setup time — everything is pre-configured
- Enforce code quality and consistency automatically
- Start coding immediately with TypeScript + Chakra UI
- Perfect for MVPs, startups, or production-grade apps
- Compatible with macOS, Windows, and Linux
Contributions are welcome!
Feel free to open an issue or submit a pull request to improve this Next.js boilerplate.
This project is licensed under the ISC License.
nextjs boilerplate, next.js starter template, next.js 16, typescript, chakra-ui, eslint, prettier, husky, lint-staged, cypress, react starter, frontend boilerplate, create next app
Thanks for stopping by! 😁
