Quick Start
User Interaction Flow
Configuration Levels
Common Uses
| Use Case | Description |
|---|---|
| Logging | Track all requests/responses |
| Validation | Check inputs before processing |
| Transformation | Modify data in transit |
| Caching | Cache frequent responses |
API Reference
HooksConfig
Hooks configuration (middleware pattern)
Best Practices
Keep middleware focused
Keep middleware focused
Each middleware should do one thing well.
Order matters
Order matters
Middleware runs in order - put validation first.
Always call next()
Always call next()
Forgetting next() breaks the chain.
Related
Hooks
Lifecycle hooks
Guardrails
Input validation

