nodejs-backend-patterns
यह क्या करती है
यह गाइड Node.js का इस्तेमाल करके इंटरनेट सेवाएँ (backends) बनाने में मदद करती है। इसमें सिखाया गया है कि कोड को कैसे व्यवस्थित करें, errors कैसे संभालें, एक्सेस को सुरक्षित कैसे रखें और databases से कैसे जुड़ें।
कब इस्तेमाल करें
- ✓ऐसी वेबसाइट या ऐप बनाना जिसे server की ज़रूरत हो।
- ✓दूसरे प्रोग्रामों के इस्तेमाल के लिए API बनाना।
- ✓ऐसे सिस्टम बनाना जिनमें real-time communication चाहिए।
Skill का लिंक
https://github.com/wshobson/agents/blob/main/plugins/javascript-typescript/skills/nodejs-backend-patterns/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मैं अपने ऑनलाइन स्टोर के लिए एक सुरक्षित Node.js server कैसे बनाऊँ?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
इसमें कोड व्यवस्थित करने के patterns और best practices समझाए गए हैं। इसमें आने वाली requests को संभालना, संभावित errors को हैंडल करना, और यह सुनिश्चित करना शामिल है कि केवल अधिकृत यूज़र ही कुछ हिस्सों तक पहुँच सकें।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Node.js Backend Patterns
Comprehensive guidance for building scalable, maintainable, and production-ready Node.js backend applications with modern frameworks, architectural patterns, and best practices.
When to Use This Skill
- Building REST APIs or GraphQL servers
- Creating microservices with Node.js
- Implementing authentication and authorization
- Designing scalable backend architectures
- Setting up middleware and error handling
- Integrating databases (SQL and NoSQL)
- Building real-time applications with WebSockets
- Implementing background job processing
Detailed patterns and worked examples
Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.
Best Practices
- Use TypeScript: Type safety prevents runtime errors
- Implement proper error handling: Use custom error classes
- Validate input: Use libraries like Zod or Joi
- Use environment variables: Never hardcode secrets
- Implement logging: Use structured logging (Pino, Winston)
- Add rate limiting: Prevent abuse
- Use HTTPS: Always in production
- Implement CORS properly: Don't use
*in production - Use dependency injection: Easier testing and maintenance
- Write tests: Unit, integration, and E2E tests
- Handle graceful shutdown: Clean up resources
- Use connection pooling: For databases
- Implement health checks: For monitoring
- Use compression: Reduce response size
- Monitor performance: Use APM tools
Testing Patterns
See javascript-testing-patterns skill for comprehensive testing guidance.
अक्सर पूछे जाने वाले सवाल
'Middleware' क्या है?
Middleware एक तरह के 'पहरेदार' या 'प्रोसेसर' होते हैं, जो server तक पहुँचने वाली requests को आपके मुख्य function तक जाने से पहले जाँचते या बदलते हैं।
TypeScript क्यों इस्तेमाल करें?
TypeScript प्रोग्राम चलने से पहले data types की जाँच करके आम गलतियों को रोकने में मदद करता है, जिससे कोड ज़्यादा भरोसेमंद बनता है।
'Best practices' क्या हैं?
ये किसी काम को करने के सबसे अच्छे और जाने-माने तरीके हैं, जिनसे कोड सुरक्षित, समझने में आसान और भविष्य में संभालने लायक बनता है।
जानकारी
लेखक का मूल विवरण
Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices. Use when creating Node.js servers, REST APIs, GraphQL backends, or microservices architectures.
repo: wshobson/agents
लोकप्रियता
- GitHub स्टार
- 41k
- रैंकिंग में स्थान
- #6714
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
screen-reader-testing
41kआपके एजेंट को screen readers का इस्तेमाल करके वेबसाइटों की जांच करने देता है, ताकि यह पक्का हो सके कि वे accessible हैं।
wcag-audit-patterns
41kआपके एजेंट को वेबसाइटों का accessibility audit करने और WCAG guidelines के हिसाब से समस्याएं ठीक करने में मदद करता है।
multi-reviewer-patterns
41kआपके एजेंट को कई code reviews को एक साथ चलाने देता है। यह एक जैसे findings हटाता है और सारी रिपोर्ट को एक जगह जोड़ता है।
parallel-debugging
41kआपके एजेंट को parallel जांच के साथ जटिल समस्याओं को debug करने और root cause analysis में मदद करता है।
मिलती-जुलती skills
api-connector-builder
280kयह आपके एजेंट को मौजूदा pattern के हिसाब से नए API connections बनाने देता है। जब बिना कोई नया तरीका बनाए एक और integration जोड़ना हो, तब इसका इस्तेमाल करें।
api-design
280kयह आपके एजेंट को best practices के हिसाब से REST APIs डिज़ाइन करने में मदद करता है। यह तय करने में काम आता है कि APIs आपस में कैसे बात करें, errors कैसे दिखें, और data को कैसे व्यवस्थित करें।
backend-patterns
280kआपके एजेंट को server-side architecture patterns और database optimization में मदद करता है। server पर चलने वाला code बनाने या review करने के लिए उपयोगी है।