
Backend Patterns
A solid reference for structuring Node.js and Next.js backends with patterns you'll actually use. It covers the repository and service layer separation, middleware chains for auth and validation, N+1 query prevention with batch fetching, and Redis caching strategies. The examples are TypeScript throughout, which keeps things type-safe when you're wiring up Supabase queries or building API routes. Especially useful when you're past the prototype stage and need to organize business logic away from your data access layer, or when you're debugging why your API is suddenly slow and realize you're running 50 database queries in a loop.
- skills.sh installs
- 7.2K
- GitHub stars
- 300.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add affaan-m/ecc --skill backend-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Files
Backend Development Patterns
Backend architecture patterns and best practices for scalable server-side applications.
When to Activate
- Designing REST or GraphQL API endpoints
- Implementing repository, service, or controller layers
- Optimizing database queries (N+1, indexing, connection pooling)
- Adding caching (Redis, in-memory, HTTP cache headers)
- Setting up background jobs or async processing
- Structuring error handling and validation for APIs
- Building middleware (auth, logging, rate limiting)
API Design Patterns
RESTful API Structure
// PASS: Resource-based URLs
GET /api/markets # List resources
GET /api/markets/:id # Get single resource
POST /api/markets # Create resource
PUT /api/markets/:id # Replace resource
PATCH /api/markets/:id # Update resource
DELETE /api/markets/:id # Delete resource
// PASS: Query parameters for filtering, sorting, pagination
GET /api/markets?status=active&sort=volume&limit=20&offset=0
Repository Pattern
Sponsors
Details
- Repository
- github.com/affaan-m/ecc
- Categories
- Frontend Development, Backend & APIs, Code Review & Quality, Design & UI/UX, Databases
- First seen
- Jul 14, 2026
More from affaan-m/ecc
All 263- Frontend Patterns7.1K
- Coding Standards7K
- Market Research6.9K
- Python Patterns6.7K
- Api Design6.6K
- Laravel Security6.6K
- Frontend Slides6.5K
- Codebase Onboarding6.4K
- Frontend Design Direction6.4K
- E2e Testing6.4K
- Liquid Glass Design6.4K
- Tdd Workflow6.4K
- Database Migrations6.4K
- Android Clean Architecture6.4K
- Prompt Optimizer6.3K
- Golang Patterns6.3K
- Postgres Patterns6.3K
- Verification Loop6.3K
- Article Writing6.3K
- Django Patterns6.2K
- Cpp Coding Standards6.2K
- Golang Testing6.2K
- Deep Research6.2K
- Java Coding Standards6.2K