Skip to content
/ nextjs-starter Public template

πŸ“¦ A versatile Next.js starter template with TypeScript, ESLint, Prettier, and Husky. Preconfigured for seamless setup with essential tools.

Notifications You must be signed in to change notification settings

hanskym/nextjs-starter

Repository files navigation

Next.js Starter

πŸ“¦ A versatile Next.js starter template with TypeScript, ESLint, Prettier, and Husky. Preconfigured for seamless setup with essential tools.

Features

  • πŸš€ 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, and sitemap for 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

Prerequisites

Make sure you have the following installed:

Note: If using npm, Yarn, or pnpm, adjust the package commands accordingly, including Husky commit hooks.

Getting Started

1. Start a New Project

You can start a new project using this repository as a template in three ways:

  1. Use This Repository as Template

    use-this-template-button

  2. Using create-next-app

    npx create-next-app -e https://github.com/hanskym/nextjs-starter my-project-name --use-bun # npm | pnpm | yarn
  3. Using Git Clone

    git clone https://github.com/hanskym/nextjs-starter my-project-name

2. Install Dependencies

bun install

3. Prepare Husky

bun prepare

4. Run the Development Server

bun dev

Open 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.

About

πŸ“¦ A versatile Next.js starter template with TypeScript, ESLint, Prettier, and Husky. Preconfigured for seamless setup with essential tools.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •