Works with: Next.js 14+ · App Router · Pages Router · Prisma · Drizzle

ONE COMMAND.
FULL INTEGRATIONS.

Stop spending days wiring auth, payments, email, and storage. CNIPPET_STACK installs production-ready integrations directly into your existing Next.js app — with diff previews, automatic backups, and zero greenfield lock-in.

shell

$ npx cnippet-stack init better-auth

# → auth wired in under 5 minutes

3.1K weekly installs8 recipes shipped100% backup rate
// EVERYTHING MERGES INTO ONE APP
BETTER-AUTHAUTH
PRISMADATABASE
RAZORPAYPAYMENTS
RATE-LIMITINGRATE LIMIT
RESENDEMAIL
UPLOADTHINGSTORAGE
Cnippet logo
CNIPPET_STACK
Animated BeamAnimated BeamAnimated BeamAnimated BeamAnimated BeamAnimated Beam
// SECTION: HOW_IT_WORKS
002

How it works — install with confidence

Every install follows the same four steps, in the same order, whether you run it yourself or an agent does.

01

Analyze

We scan package.json, tsconfig, and your folder structure — Next.js version, router type, ORM, and package manager, detected before you answer a single question.

02

Configure

Only the questions we can't answer from code. Every prompt is data-driven from the recipe manifest, not hardcoded.

03

Preview

See a full diff of every file we'll change before anything writes. Run --dry-run to inspect without touching a single byte.

04

Deploy

Files written, deps installed, env vars generated. We print the manual steps — OAuth setup, migrations — with links to the guide.

// SECTION: WHY_ITS_SAFE
003

Every install is safe by construction

No assumptions about your project, no unreviewed writes — built to be driven by you or your coding agent.

Preview before write

See a full diff of every file we'll change before anything writes. Run --dry-run to inspect without touching a single byte.

AST injection, not regex

We use ts-morph for JSX/TS changes and marker-based appends for schema files. No blind overwrites. Every change is surgical.

Auto-backup

Every touched file is backed up to .cnippet/backup/<timestamp>/ before anything changes. You are always one git checkout away from reverting.

// SECTION: RECIPE_CATALOG
004

Plug-and-play integrations

9 recipes shipped — 5 free, 4 pro. Every recipe is a typed manifest declaring exactly which files it writes and which env/deps it needs, enforced before a single file touches your repo.

View all recipes →
Flagship — 5 min to live auth
better-authfree

Auth, sessions, and OAuth wired in — the recipe most projects start with.

FreeNo account needed
biomeprismaresenduploadthing
ProOne license, all-access
rate-limitingstripestripe-billingrazorpay
recipes/better-auth/manifest.ts

export default defineRecipe({

name: "better-auth",

requires: {

env: ["BETTER_AUTH_SECRET"],

deps: ["better-auth"],

},

})

cnippet-stack doctor better-auth
env vars present
prisma schema matches manifest
route conflicts
middleware wired
4/4 checks passed
// SECTION: PRICING_TIERS
005

Pay once. Every pro recipe.

A license unlocks all pro recipes — payments, billing, and everything we ship next. Free recipes never need an account.

live installs: 0.0k / week
FREE_RECIPES
01
₹0/ forever

All free recipes: auth, email, storage. No account needed.

Core auth & storage recipes
Unlimited CLI installs
Doctor + dry-run checks
Community support
Pro recipes
Multi-seat licensing
SOLO
02
₹7,999/ one-time

For individual developers. All free + pro recipes, one seat.

All free recipes included
All pro recipes, current + future
One-time payment — no subscription
1 seat
License managed from dashboard
Team seats
TEAM
RECOMMENDED03
₹24,999/ one-time

For teams up to 5. All free + pro recipes, shared across the team.

All free recipes included
All pro recipes, current + future
One-time payment — no subscription
5 seats
License managed from dashboard
Priority support for the whole team
* Payments processed by Razorpay. No subscription. No vendor lock-in.
// STACK: PLAYS_WELL_WITH
006
NEXT.JS
PRISMA
TAILWIND CSS
SHADCN/UI
BETTER AUTH
RAZORPAY
RESEND
UPSTASH
POSTGRESQL
ZOD
NEXT.JS
PRISMA
TAILWIND CSS
SHADCN/UI
BETTER AUTH
RAZORPAY
RESEND
UPSTASH
POSTGRESQL
ZOD
// SECTION: GET_STARTED

Ready to ship auth
in 5 minutes?

Run the command in your existing Next.js project. Free recipes are unlocked immediately — a single license unlocks every pro recipe.

$ npx cnippet-stack init better-auth

5 files written

doctor: 8/8 passed

done in 1.2s