Creating robust Node.js backends requires understanding complex architectural patterns and best practices. This skill provides comprehensive guidance for building scalable, secure backend services with modern frameworks.
تنزيل ZIP المهارة
رفع في Claude
اذهب إلى Settings → Capabilities → Skills → Upload skill
فعّل وابدأ الاستخدام
اختبرها
استخدام "nodejs-backend-patterns". How do I set up rate limiting for my Express API?
النتيجة المتوقعة:
Use express-rate-limit with Redis for distributed rate limiting. Configure separate limits for general API endpoints and authentication endpoints. Example: apiLimiter allows 100 requests per 15 minutes, while authLimiter allows 5 requests per 15 minutes with stricter enforcement.
استخدام "nodejs-backend-patterns". What is the proper way to handle errors in Express?
النتيجة المتوقعة:
Create custom error classes extending Error for different error types (ValidationError, NotFoundError, UnauthorizedError). Implement a global error handler middleware that logs errors and returns appropriate HTTP status codes without exposing internal details in production.
التدقيق الأمني
آمنThis is an educational/documentation skill providing Node.js backend development guidance through markdown code examples. All static analysis findings are false positives - the detected patterns are instructional code samples in markdown format, not executable skill logic. No actual security risks detected.
درجة الجودة
ماذا يمكنك بناءه
API Development
Build REST or GraphQL APIs with proper middleware, validation, and error handling for production applications.
Microservices Architecture
Design scalable microservices with dependency injection, proper logging, and inter-service communication patterns.
Learning Modern Node.js
Learn industry-standard patterns for authentication, database access, caching, and error handling in Node.js applications.
جرّب هذه الموجهات
Help me create a basic Express.js server with security middleware, request logging, and error handling. Include TypeScript types and proper configuration.
Design a JWT-based authentication system with login, registration, and token refresh endpoints. Include password hashing with bcrypt and proper error handling.
Create a repository pattern implementation for PostgreSQL with connection pooling, parameterized queries, and transaction support for an order management system.
Design a complete microservice architecture with Fastify, including dependency injection, health checks, metrics endpoints, and graceful shutdown handling.
أفضل الممارسات
- Always use TypeScript for type safety and better IDE support
- Validate all user input with libraries like Zod before processing
- Use environment variables for configuration and never commit secrets to version control
تجنب
- Using wildcard CORS origins in production environments
- Storing sensitive data like passwords or tokens in plain text
- Blocking the event loop with synchronous operations or complex calculations
الأسئلة المتكررة
Should I use Express or Fastify for my project?
How do I handle database migrations in Node.js?
What is the recommended project structure for Node.js APIs?
How should I implement authentication in Node.js?
What logging approach should I use in production?
How do I ensure my Node.js API can handle high traffic?
تفاصيل المطور
المؤلف
sickn33الترخيص
MIT
المستودع
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/nodejs-backend-patternsمرجع
main
بنية الملفات