Nextjs Starter - A complete SaaS starter template

Open-source Next.js boilerplate for launching SaaS apps with a clean Tailwind UI, App Router support, and a production-ready setup including auth, database, testing, and SEO basics.

Nextjs Starter screenshot
layers-2 App Router Ready

Works with both App Router and Page Router to fit new or legacy projects.

lock-open Auth Included

Preconfigured Clerk authentication with sign in, sign up, and passwordless options.

database Database Setup

Uses Drizzle ORM with local PGlite and supports Postgres, MySQL, and SQLite.

circle-check-3 Testing Tooling

Includes Vitest, Testing Library, and Playwright for unit, integration, and E2E tests.

search-content SEO Defaults

Ships with metadata, Open Graph, JSON-LD, sitemap, and robots.txt preconfigured.

book-wrench DX First

Provides ESLint, Prettier, Commitlint, and VSCode settings for consistent workflow.

circle-info-sparkle Overview

Launch a production-ready SaaS starter template with built-in tooling

This is an open-source starter template for shipping a Next.js app faster, aimed at developers who want a solid baseline before adding their own product UI and features. It gives you a structured project that works with both the App Router and the Pages Router, so it can fit new builds or incremental migrations. The stack is TypeScript-first and integrates Tailwind CSS for styling. Beyond the UI layer, it includes a ready-to-use authentication flow and a database setup so you can prototype real app behavior early. It also comes with a testing toolchain and sensible SEO defaults to help you ship with confidence.

What's included

  • App Router and Pages Router project structure
  • Sign up and sign in pages wired to an authentication provider
  • Password reset flow (forgot/reset password screens)
  • Database layer using Drizzle ORM with a local database option
  • SEO-ready head metadata setup with Open Graph and JSON-LD support
  • Sitemap.xml and robots.txt generation
  • Storybook configuration for building and reviewing UI components in isolation

Ideal for

  • SaaS starter projects that need auth and persistence on day one
  • Product prototypes where you want a real login flow quickly
  • Teams standardizing a Next.js codebase and dev workflow
  • Apps that require automated testing from unit to E2E
  • Multi-language apps using an i18n-ready foundation

Tech & compatibility

The template targets Next.js 16+ and TypeScript, and it’s designed to be flexible: keep the pieces you need and remove what you don’t. Authentication is pre-integrated via Clerk, and the data layer uses Drizzle ORM with support for common SQL databases (including PostgreSQL, MySQL, and SQLite), plus a local-first setup for development. For quality gates, it includes Vitest and Playwright, and provides linting/formatting plus commit-message tooling to keep a team workflow consistent.

Requirements

  • Node.js 22+ is recommended in the documentation, and the repository specifies Node >= 20 in package settings.
Repository stats
lock-open 3 open issues
star 12.9k stars
eye 58 watching
code-fork 2.4k forks
code-commit 1.7k commits
history 4 days ago
Stack
Highlights
circle-check-3 High resolution
circle-check-3 Well documented
circle-check-3 Responsive
circle-check-3 One-click deployment
circle-check-3 100 Lighthouse scores
circle-check-3 SEO-friendly
x logo-facebook logo-linkedin

Astro Boilerplate

star 910

An Astro starter template built with TypeScript and Tailwind CSS

Cookie

star 104

A beautiful Jekyll landing website & blog

NextJS Landing Page Starter

star 2.1k

SaaS landing page starter template