Open source · MIT

Howdy.

Christophers-Next-MUI-Template

An opinionated Next.js 16 starter with Material UI 9, NextAuth, Prisma + Postgres, and a full test pyramid. Fork it, set three env vars, and ship.

Built on the latest.

Every dependency on its current major. Type-safe end to end, security-pinned, audited at every PR.

Next.js 16React 19TypeScript strictMaterial UI 9Prisma + Postgres 7NextAuth.js 4

Next.js

16

App Router, Turbopack, server actions, RSC streaming.

React

19

Server Components, hooks-only, no class components.

TypeScript

strict

Strict mode, end-to-end inference, ES2022 target.

Material UI

9

Custom theme, Emotion + AppRouterCacheProvider, Geist wired.

Prisma + Postgres

7

Type-safe ORM, driver-adapter, schema migrations.

NextAuth.js

4

Credentials provider, JWT sessions, bcryptjs hashing.

Everything you need.

No yak-shaving. No half-finished examples. Just a starter that already passes its own tests.

Auth out of the box

NextAuth.js Credentials provider with bcryptjs, JWT sessions, and a protected dashboard route ready to go.

Type-safe end-to-end

Zod 4 schemas shared between client and server, react-hook-form with zodResolver, TypeScript 6 strict mode.

Tests already wired

Jest 30 + React Testing Library co-located with components, plus Playwright 1.59 for full E2E coverage.

CI gates every PR

Lint, type-check, unit tests, and Playwright run on push. Pre-commit hooks keep main clean.

Prisma + PostgreSQL

Prisma 7 with a singleton client, env-validated connection strings, and migrations ready for Railway.

Zero-config starter

Next.js 16 App Router on Turbopack, Geist fonts, MUI 9 dark theme, and Vercel-ready out of the box.

Ready in one command.

Clone the repo, copy .env.local.example, run yarn dev. That's it.