Mern stack
Stack decisions for MERN apps (Next.js, pnpm monorepo). Reference before scaffolding or architecture work.From its SKILL.md
npx -y skills add edfenton/claude-skills --skill mern-stackAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.5 KB, 280 tokens by cl100k_base, as published. Nobody here has run it
Locked decisions
| Layer | Decision |
|---|---|
| Monorepo | pnpm workspaces |
| Frontend | Next.js (app router), TypeScript required |
| API | Next.js route handlers (app/api/) by default |
| Database | MongoDB + Mongoose |
| Validation | Zod (shared schemas in packages/shared) |
| Environments | local → non-prod → prod |
| Secrets | .env.local for dev; AWS for production |
| Containers | Not required unless deployment target forces it |
Project layout
apps/web/ # Next.js app
app/api/ # API route handlers
src/server/ # Server-only code
packages/shared/ # Zod schemas, types, utilities
.github/workflows/ # CI/CD
(root configs) # eslint, prettier, tsconfig
When to add a separate API service
Only justified if:
- Long-running jobs exceed serverless timeouts
- WebSocket/persistent connections required
- Shared API serves multiple non-Next.js clients
- Compliance requires API isolation
Default: keep API in Next.js route handlers.
Reference
For versions, env setup, and deployment patterns, see reference/mern-stack-reference.md
What ships with it: 1 file
8.2 KB alongside SKILL.md
reference/
- mern-stack-reference.md8.2 KB