π¦ A versatile Next.js starter template with TypeScript, ESLint, Prettier, and Husky. Preconfigured for seamless setup with essential tools.
- π Next.js with App Router
- βοΈ React 19
- π¦ TypeScript: Adds type safety to the code
- βοΈ ESLint: Configured for code quality checks
- π Prettier: Code formatting and sorting imports
- βοΈ Knip: Detects unused files, dependencies, and exports
- π§© Zod: Type-safe schema validation
- πΆ Husky: Manages Git hooks that run automatically during commits and pushes
- π Lint Staged: Automatically run code formatting and linters on pre-committed files
- π Commitlint: Enforces conventional commit messages
- βοΈ Commitizen: Simplifies the process of writing consistent commit messages
- π Next.js Metadata: Preconfigured
metadata,robots,manifest, andsitemapfor SEO - π¨ Turbopack: Blazing fast bundler and compiler for Next.js
- π Bundle Analyzer: Analyze the size of your Next.js build
- π Absolute Import and Path Alias: Import components using the
@/prefix - π» VSCode: Includes settings and recommended extensions
Make sure you have the following installed:
Note: If using npm, Yarn, or pnpm, adjust the package commands accordingly, including Husky commit hooks.
You can start a new project using this repository as a template in three ways:
-
Use This Repository as Template
-
Using
create-next-appnpx create-next-app -e https://github.com/hanskym/nextjs-starter my-project-name --use-bun # npm | pnpm | yarn -
Using Git Clone
git clone https://github.com/hanskym/nextjs-starter my-project-name
bun installbun preparebun devOpen http://localhost:3000 in your browser to view your Next.js application. You can start editing the page by modifying src/app/page.tsx, and the changes will update in real time.
