A tiny, fast CLI that generates App-Router API handler files — route.ts,
controller.ts and per-method handlers — from a single resource name.
Stop copy-pasting boilerplate.
Opinionated, safe, and built to extend. Everything you need for a clean API endpoint, nothing you don't.
Pick a name and your methods — --get --post --put --delete — and get every file wired up instantly.
user-profile, userProfile, user_profile all normalise to UserProfile across every file.
All-or-nothing writes. Existing files are never silently overwritten — pass --force when you mean it.
Templates compile into the binary. No config, no runtime files, no surprises — just a single executable.
Run next --update to pull the latest release for your platform and swap the binary in place.
Prebuilt binaries for macOS (Intel & Apple Silicon), Linux (x86_64, ARM64, musl) and Windows.
Grab a prebuilt binary — no Rust toolchain required. Pick your platform.
The binary is named next — if you use the Next.js CLI, rename it
(e.g. next-scaffold). Already installed? Update with next --update.
next api create <name> [methods] [-l <path>] [--force] [--dry-run]
next api create User next api create user-profile --get -l ./api/users next api create order --post --put --force next api create order --dry-run Beyond API handlers — next is growing into a scaffolder for the rest of your app.
One command to scaffold a fully typed React Context, its Provider, and a
ready-to-use useX() hook — wired together, with the boilerplate
and types written for you.
# planned next ui create context Theme --provider created: ThemeContext.tsx created: ThemeProvider.tsx created: useTheme.ts ✓ typed context + provider + hook, ready to wrap your tree.
Scaffold typed useX hooks with sensible boilerplate and tests.
Generate a barrel that nests multiple providers into one clean tree.
next db, next page and friends — same flat, safe workflow.
Have an idea or want to help shape it? Open an issue on GitHub ↗