
Nuxt Server
This is your reference for building server-side features in Nuxt 4 with Nitro. It covers the file-based routing system for API endpoints, all the request/response utilities you'll actually use (getRouterParam, readBody, setCookie), and patterns for integrating databases like Cloudflare D1 with Drizzle ORM. The middleware examples show how to handle auth across routes, and there are practical snippets for CRUD operations and error handling. Load the database patterns reference when you're setting up migrations or complex queries, and the WebSocket reference if you need real-time features. It's comprehensive without being overwhelming, just the patterns you need to ship backend logic quickly.
- skills.sh installs
- 415
- GitHub stars
- 248
- last updated
- Aug 21, 2026
Install
$ npx -y skills add secondsky/claude-skills --skill nuxt-server --agent claude-codeInstalls into .claude/skills of the current project.
Files
Nuxt 4 Server Development
Server routes, API patterns, and backend development with Nitro.
Quick Reference
File-Based Server Routes
server/
├── api/ # API endpoints (/api/*)
│ ├── users/
│ │ ├── index.get.ts → GET /api/users
│ │ ├── index.post.ts → POST /api/users
│ │ ├── [id].get.ts → GET /api/users/:id
│ │ ├── [id].put.ts → PUT /api/users/:id
│ │ └── [id].delete.ts → DELETE /api/users/:id
│ └── health.get.ts → GET /api/health
├── routes/ # Non-API routes
│ └── sitemap.xml.get.ts → GET /sitemap.xml
├── middleware/ # Server middleware
│ └── auth.ts # Runs on every request
├── plugins/ # Nitro plugins
│ └── database.ts # Initialize database
└── utils/ # Server utilities
└── db.ts # Database helpers
HTTP Method Suffixes
| Suffix | HTTP Method |
|---|---|
.get.ts | GET |
.post.ts | POST |
.put.ts | PUT |
.patch.ts | PATCH |
.delete.ts | DELETE |
.ts | All methods |
When to Load References
Sponsors
Details
- Repository
- github.com/secondsky/claude-skills
- Categories
- Frontend Development, Backend & APIs, Databases
- First seen
- Jun 3, 2026
More from secondsky/claude-skills
All 146- Turborepo414
- Mobile Offline Support412
- Recommendation System412
- Api Versioning Strategy410
- Claude Code Bash Patterns408
- Claude Hook Writer408
- Logging Best Practices408
- Cloudflare Manager407
- Plan Interview406
- Ml Pipeline Automation402
- Nuxt Core401
- Nuxt Data400
- Microservices Patterns398
- Multi Ai Consultant397
- Graphql Implementation393
- Mcp Management393
- Model Deployment393
- Jest Generator391
- Cloudflare Agents389
- Cloudflare Mcp Server388
- Thesys Generative Ui384
- Access Control Rbac381
- Maz Ui380
- React Best Practices380