A modern, production-ready Next.js starter template that gets you up and running in minutes, not hours.
I built this template because I was tired of setting up the same configuration over and over again for every new project. After countless hours of tweaking, testing, and refining, I've assembled what I believe is a solid foundation for building modern web applications with Next.js.
This isn't just another boilerplateβit's a carefully curated collection of tools and patterns that I use in production. Every dependency has been chosen for a reason, and every configuration decision has been made with scalability and developer experience in mind.
- Next.js 15.3.2 with App Router - The latest and greatest from the Vercel team
- React 19 with React Compiler - Experience the future of React development
- TypeScript with strict mode - Catch errors before they reach production
- next-intl - Full i18n support out of the box
- English & Arabic locales pre-configured (easily extensible)
- RTL support - Proper right-to-left layout handling for Arabic
- Type-safe translations - Never misspell a translation key again
- Tailwind CSS v4 - The latest version with modern features
- shadcn/ui (New York style) - Beautiful, accessible components
- Dark mode - System-aware theme switching with next-themes
- Custom design tokens - Comprehensive spacing, typography, and color scales
- OKLCH color space - Better color consistency across themes
- Path aliases - Clean imports with
@/prefix - ESLint - Comprehensive linting with Canonical, SonarJS, and Next.js rules
- Icon support - Iconify, Lucide React, and unplugin-icons for flexible icon usage
- Font optimization - Geist Sans, Geist Mono, and Roboto with automatic optimization
- Strict TypeScript - Maximum type safety
- Comprehensive ESLint rules - Catch issues before they become problems
- React Compiler - Automatic optimization of your React code
Make sure you have one of these package managers installed:
-
Clone the repository
git clone https://github.com/yourusername/hyper-next.git cd hyper-next -
Install dependencies
pnpm install # or npm install # or yarn install
-
Run the development server
pnpm dev # or npm run dev -
Open your browser
Navigate to http://localhost:3000 and you should see your app running.
hyper-next/
βββ src/
β βββ app/
β β βββ [locale]/ # Locale-based routing
β β βββ components/ # Page-specific components
β β βββ layout.tsx # Root layout with i18n
β β βββ page.tsx # Home page
β βββ components/
β β βββ ui/ # shadcn/ui components
β βββ i18n/ # Internationalization config
β βββ lib/ # Utility functions
β βββ providers/ # React context providers
β βββ styles/ # Global styles
β βββ middleware.ts # Next.js middleware
βββ messages/ # Translation files
β βββ en.json
β βββ ar.json
βββ public/ # Static assets
βββ ...config files
-
Add the locale to
src/i18n/routing.ts:export const routing = defineRouting({ defaultLocale: "en", locales: ["en", "ar", "fr"], // Add your locale here });
-
Create a translation file in
messages/:// messages/fr.json { "HomePage": { "title": "Bienvenue", "about": "Γ propos" } }
The theme system uses CSS variables defined in src/styles/globals.css. You can customize colors, spacing, typography, and more by modifying the :root and .dark selectors.
This template is configured for shadcn/ui. To add a new component:
npx shadcn@latest add [component-name]The configuration is already set up in components.json, so components will be added to the correct location automatically.
pnpm dev- Start the development serverpnpm build- Build for production (includes type checking)pnpm start- Start the production serverpnpm lint- Run ESLintpnpm lint:fix- Run ESLint and fix auto-fixable issues
next@15.3.2- React frameworkreact@19.0.0- UI librarytypescript@5.8.3- Type safety
next-intl@4.3.0- i18n solution
tailwindcss@4.1.11- Utility-first CSSnext-themes@0.4.6- Theme management
@radix-ui/*- Headless UI primitiveslucide-react- Icon libraryclass-variance-authority- Component variants
eslint- Code linting@iconify/react- Icon systemunplugin-icons- Icon bundler
next.config.js- Next.js configuration with i18n and icon pluginstsconfig.json- TypeScript configuration with path aliaseseslint.config.mjs- ESLint rules and pluginscomponents.json- shadcn/ui configurationtailwind.config.js- Tailwind CSS configuration (if using v3, v4 uses CSS)
This template targets modern browsers that support:
- ES2017+ JavaScript features
- CSS Grid and Flexbox
- CSS Custom Properties (variables)
I'm always open to suggestions and improvements! If you have ideas for features, find bugs, or want to contribute, please feel free to:
- Open an issue to discuss your idea
- Fork the repository
- Create a feature branch
- Submit a pull request
This project is open source and available under the MIT License.
This template wouldn't exist without the amazing work of:
- The Next.js team at Vercel
- The shadcn/ui community
- The maintainers of all the wonderful open-source packages used here
Built with care and attention to detail. If this template helps you build something amazing, I'd love to hear about it! π