node-backend
/node-backend
Build and upgrade Node.js HTTP services with typed validation, lifecycle ownership and production behavior. Use when implementing Hono, Fastify, NestJS or another established Node server; use node-modern for runtime I/O details and preserve the chosen framework.
- Author
- wrongstack ↗
- Repository
- wrongstack ↗
- Licence
- MIT
- Last repository change
- 27.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 3
No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Build and upgrade Node.js HTTP services with typed validation, lifecycle ownership and production behavior. Use when implementing Hono, Fastify, NestJS or another established Node server; use node-modern for runtime I/O details and preserve the chosen framework.
Original author description
Build and upgrade Node.js HTTP services with typed validation, lifecycle ownership and production behavior. Use when implementing Hono, Fastify, NestJS or another established Node server; use node-modern for runtime I/O details and preserve the chosen framework.
How it works
- Selection card
- Overview
- Rules
- Core Patterns & Pitfalls
- Workflow
- Before returning
- Sources
- Skills in scope
SKILL.md preview
--- name: node-backend description: "Build and upgrade Node.js HTTP services with typed validation, lifecycle ownership and production behavior. Use when implementing Hono, Fastify, NestJS or another established Node server; use node-modern for runtime I/O details and preserve the chosen framework." trigger: "Build and upgrade Node.js HTTP services with typed validation, lifecycle ownership and production behavior. Use when implementing Hono, Fastify, NestJS or another established Node server; use node-modern for runtime I/O details and preserve the chosen framework." version: 1.0.2 required-capabilities: [filesystem.read] required-tools: [] optional-capabilities: [filesystem.write, execution.shell, verification.run, web.research] metadata: routing-group: backend domain: "backend" --- # Node Backend ## Selection card - Task: Implement Node server endpoints and shutdown. - Start: Locate the endpoint, schema, authentication boundary and caller. - Finish: apply the acceptance checks below; report observed results and unresolved constraints. ## Overview Production Node.js HTTP services (Hono, Fastify, NestJS) rely on boundary schema validation, request-scoped context isolation (`AsyncLocalStorage` / framework request context), bounded body/concurrency limits, and coordinated graceful shutdown across HTTP listeners, database pools, and background consumers. Checked 2026-10-23: Hono 4.13.13, Fastify 5.12.7 and NestJS 12.2.0. Latest stable Node target is 26.12.1 (LTS 24.22.1); verify framework/plugins/adapter requirements together. ## Rules 1. Inspect framework lifecycle, plugin/dependency injection order and actual runtime adapter. 2. Validate input and serialize public output at the route boundary; do not expose database rows or internal exceptions wholesale. 3. Bound request bodies, external calls (`AbortSignal.timeout`) and expensive work according to application limits. 4. Keep per-request auth/context isolated and authorize each operation/object at the server boundary. 5. Make startup, readiness (`/readyz` vs `/healthz`) and graceful shutdown (`SIGTERM` / `SIGINT`) include owned pools/listeners/jobs. 6. Verify framework error/cancellation semantics; returning an error-shaped object without setting the HTTP status may still produce a `200 OK` response. ## Core Patterns & Pitfalls - **Graceful Drain Sequence**: On `SIGTERM`/`SIGINT`, mark readiness unhealthy, stop accepting new connections (`server.close()`), wait for in-flight requests with a bounded deadline, and only then close database/Redis pools (`db.end()`, `redis.quit()`). - **Schema-Driven Serialization**: Use Fastify response schemas, Hono validator middleware (`@hono/zod-validator`), or NestJS DTO pipes/interceptors so internal model fields (password hashes, internal flags) cannot leak into JSON responses. - **Anti-pattern — Unhandled Floating Promises in Route Handlers**: Firing unawaited promises inside a request handler without error boundaries or lifecycle tracking risks unhandled rejections and dropped work during container drain. ## Workflow 1. Trace route → service → persistence/external operation and existing conventions. 2. Resolve latest stable targets and supported plugins before migration. 3. Implement the feature with explicit contracts and lifecycle cleanup. 4. Test valid/invalid/unauthorized input, dependency failure and stop/restart. 5. Run configured type/lint/tests and a production server health/user-path check. ## Before returning - [ ] Node runtime target and framework/plugin versions verified against lockfile - [ ] Route inputs validated and outputs serialized through explicit DTO/schema contracts - [ ] Request body size, outbound request timeouts, and object-level auth enforced - [ ] Graceful shutdown drains in-flight requests before closing DB/queue pools - [ ] Error responses verified to return intended HTTP status codes and safe payloads ## Sources Versioned facts checked 2026-10-23; refresh authoritative sources before new installs/upgrades. [Hono](https://hono.dev/docs/), [Fastify](https://fastify.dev/docs/latest/), [NestJS](https://docs.nestjs.com/). ## Skills in scope - node-modern — event-loop non-blocking I/O, streams, `AbortSignal` cancellation, and worker threads. - api-design — HTTP status semantics, idempotency keys, pagination, and RFC 9457 Problem Details error contracts. - database-development — implement database access, models and queries with explicit consistency, transactions and bounded results. - authentication-sessions — implement application sign-in, sessions and identity integration with explicit account/tenant authorization. - queues-jobs — implement reliable asynchronous jobs and message consumers with explicit delivery, retry and shutdown semantics.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · wrongstack/wrongstack | 100 | MIT |
| OrcaQubits/agentic-commerce-skills-plugins | 100 | MIT |
| OrcaQubits/agentic-commerce-skills-plugins | 100 | MIT |
| OrcaQubits/agentic-commerce-skills-plugins | 100 | MIT |
| OrcaQubits/agentic-commerce-skills-plugins | 100 | MIT |
Database snapshot: 13.11.2026 · package version 3536e3525940 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100nodejs-backend
Guides Node.js backend services built on Fastify, NestJS, Hono or Express. Use when writing, reviewing or hardening a Node.js HTTP service or moving one off Express, or a service leaks stack traces, drops in-flight requests on deploy, logs the wrong user, or blocks the event loop. - 90node-typescript-backend
Build production Node.js/TypeScript backends (Fastify, NestJS, Express): structure, validation, async, errors, config, testing, performance. Use when writing or reviewing Node/TS services or APIs. - 100nestjs
NestJS enterprise Node.js framework. Covers modules, controllers, services, guards, and dependency injection. Use when building scalable Node.js applications. USE WHEN: user mentions "NestJS", "nest", "@nestjs", "@Module", "@Controller", "@Injectable", asks about "dependency… - 90node-patterns
Use when writing Node.js/TypeScript backend code — Express, Fastify, or NestJS services, APIs, workers. Builder playbook: project layout, async discipline, typed config, error taxonomy, DI boundaries, testing shape. Complements typescript-reviewer (this prevents, the reviewer catches). - 100fastify
Fastify high-performance Node.js framework. Covers routing, plugins, validation, and serialization. Use when building fast Node.js APIs. USE WHEN: user mentions "Fastify", "fastify", "TypeBox", "schema validation", asks about "fast Node.js framework", "high-throughput API",… - 100nodejs-backend-expert
Expert Node.js backends (Express/Fastify/Hono): routing, middleware, validation, auth, async, and production hardening. Trigger keywords: Node.js, Express, Fastify, Hono, REST, middleware, JWT, session, zod, async, streams, unhandled rejection, graceful shutdown, backend,…