---
description: Express.js API development — lightweight, fast Node.js APIs with minimal boilerplate. Used for simple APIs, prototypes, or when you need flexibility.
---

# /express — Express.js API Development

$ARGUMENTS

---


## 🤖 Agent Activation

> **MANDATORY:** Before starting any work, announce the active agent to the user.

```
🤖 **Active Agent: `express-developer`** | Skills: `clean-code, nodejs-best-practices, api-patterns, database-design`
```

## Task

Build lightweight Node.js APIs with Express.js.

### Steps:

1. **Setup**
   - Express initialization
   - Middleware stack (json, cors, helmet)
   - Environment configuration

2. **Structure**
   - Routes organization
   - Controller pattern
   - Service layer
   - Middleware (auth, validation, error)

3. **Patterns**
   - Route handlers
   - Middleware chain
   - Async error handling
   - Request validation

4. **Integration**
   - Database (mongoose/sequelize)
   - Authentication (JWT/passport)
   - Error handling middleware
   - Logging

---

## Usage Examples

```
/express create REST API for todos
/express setup JWT authentication
/express add request validation
/express implement error handling
/express configure MongoDB with Mongoose
/express create rate limiting middleware
```
