Next.js & npm
Prerequisites
Section titled “Prerequisites”- Node.js 18+ installed
- An existing Next.js project (or create one with
npx create-next-app@latest) - Claudette installed and running
Configuration
Section titled “Configuration”Create a .claudette.json in your project root:
{ "scripts": { "setup": "npm install" }, "instructions": "This is a Next.js 15 app using the App Router. Use TypeScript strict mode. Use server components by default."}Add to Claudette
Section titled “Add to Claudette”- Open Claudette and click + Add Repo
- Select your Next.js project directory
- Create a new workspace —
npm installruns automatically
Example Prompts
Section titled “Example Prompts”“Create a dashboard page at
/dashboardwith a responsive grid layout showing user stats”
“Add a server action for the contact form that validates input and sends an email”
“Set up NextAuth.js with GitHub OAuth provider”
- Adjust the
instructionsto match your project’s conventions (Pages Router vs App Router, CSS framework, etc.) - If you use pnpm or yarn, change the setup script accordingly:
pnpm installoryarn install