Install
openclaw skills install @iliaal/compound-eng-nodejs-backendNode.js backend patterns: layered architecture, TypeScript, validation, error handling, security, observability, logging, metrics, deployment. Use when building REST APIs, REST endpoints, middleware, Express/Fastify/Hono/NestJS/Koa servers, tRPC procedures, Bun servers, or server-side TypeScript.
openclaw skills install @iliaal/compound-eng-nodejs-backendVerify before implementing: For framework-specific APIs (Express 5, Fastify 5, Node.js 22+ built-ins), look up current docs via Context7 (query-docs) before writing code. Training data may lag current releases.
src/
├── routes/ # HTTP: parse request, call service, format response
├── middleware/ # Auth, validation, rate limiting, logging
├── services/ # Business logic (no HTTP types)
├── repositories/ # Data access only (queries, ORM)
├── config/ # Env, DB pool, constants
└── types/ # Shared TypeScript interfaces
import type { } for type-only imports -- eliminates runtime overheadinterface for object shapes (2-5x faster type resolution than intersections)unknown over any -- forces explicit narrowingz.infer<typeof Schema> as single source of truth -- never duplicate types and schemasas assertions -- use type guards insteaddeclare module 'pkg' { const v: unknown; export default v; } in types/ambient.d.tsas any, non-null assertions on untrusted data, // @ts-ignore), treat it as a design smell and find the typed solutiontsc --noEmit passes with zero errorsnpm test passes with zero failuresas any, @ts-ignore) in new codeRead the relevant reference before implementing or reviewing the matching behavior:
Existing specialized references, when the corresponding topic applies: