Fresh Next.js app

A generated Next.js app-router project; validates JSX type-checking, Next.js type augmentations, and config resolution across a typical framework setup.

tsz is 1.3x faster 282 lines 7 KB

Timing

tsz
85.13ms
tsgo
111.06ms

README

Fresh Next.js app benchmark

This fixture is generated by scripts/bench/generate-next-app-fixture.mjs.

Each benchmark run recreates the app, installs current npm versions, and type-checks the generated Next.js project with:

tsz --noEmit -p tsconfig.json
tsgo --noEmit -p tsconfig.json

The app intentionally imports and uses common type-heavy dependencies:

  • zod
  • @tanstack/react-query
  • react-hook-form
  • type-fest
  • ts-pattern
  • superjson
  • date-fns
  • clsx
  • zustand
  • valibot

The generated source mixes App Router pages, server actions, schema inference, discriminated unions, form helpers, query typing, store typing, and JSON-safe utility types so the benchmark reflects a modern application rather than a tiny startup file.