api-amqp
Typed amqplib publisher/consumer helpers for RabbitMQ — JSON encoding, exchange/queue assertion, and ack/nack handling.
api-auth
Framework-agnostic JWT sign/verify helpers with Bearer-header and cookie token extraction.
api-auth-express
Express middleware for @rtorcato/api-auth — JWT authentication with Bearer-header and cookie support.
api-auth-hono
Hono middleware for @rtorcato/api-auth — JWT authentication with Bearer-header and cookie support.
api-config
Load and validate environment variables with dotenv + zod for Node API projects.
api-cors-express
Express CORS middleware with sane defaults (credentials, standard methods, preflight).
api-errors
Framework-agnostic HTTP error classes for Node.js APIs.
api-errors-express
Express middleware for @rtorcato/api-errors (error handler + not-found handler).
api-errors-hono
Hono middleware for @rtorcato/api-errors (error handler + not-found handler).
api-express-utils
Small Express utility helpers: client IP extraction and route logging.
api-graceful-shutdown
Framework-agnostic graceful shutdown for Node API servers — SIGTERM/SIGINT drain with ordered cleanup hooks and a hard timeout.
api-health
Framework-agnostic liveness/readiness health-check registry for Node API projects.
api-health-express
Express liveness/readiness probe handlers for @rtorcato/api-health.
api-health-hono
Hono liveness/readiness probe handlers for @rtorcato/api-health.
api-http
Typed HTTP client over native fetch — base URL, default headers, timeout, and errors normalized to @rtorcato/api-errors.
api-logger
Framework-agnostic pino logger factory for Node API projects.
api-mcp
Tiny result helpers for @modelcontextprotocol/sdk MCP servers.
api-openapi
Framework-agnostic OpenAPI 3.1 helpers — generate Scalar docs HTML from a spec object.
api-openapi-express
Express router that serves Scalar API docs from an OpenAPI spec object.
api-openapi-hono
Hono adapter for schema-first OpenAPI docs — wires @hono/zod-openapi and serves the Scalar API reference UI.
api-rate-limit
Framework-agnostic sliding-window rate limiter for Node API projects, with a pluggable store (in-memory or Redis).
api-rate-limit-express
Express middleware for @rtorcato/api-rate-limit (sliding-window rate limiter).
api-rate-limit-hono
Hono middleware for @rtorcato/api-rate-limit (sliding-window rate limiter).
api-rate-limit-redis
Redis-backed store for @rtorcato/api-rate-limit — sliding-window limits shared across instances.
api-response
Consistent success-response envelope and zod schema helper for Node API projects.
api-security-express
Express security-headers middleware — a thin helmet wrapper with API-friendly defaults.
api-testing
Test helpers for API projects: supertest re-export, JWT auth fixtures, and response assertion matchers.
api-timeout
Framework-agnostic per-request timeout for Node API projects — race a promise against a deadline and reject with a ServiceUnavailableError.
api-timeout-express
Express middleware for @rtorcato/api-timeout — fail a request with 503 if it isn't answered within a deadline.
api-timeout-hono
Hono middleware for @rtorcato/api-timeout — fail a request with 503 if it isn't answered within a deadline.
api-ts-rest-express
Mount a ts-rest contract on Express and serve its OpenAPI docs (Scalar) — wires @ts-rest/express + @ts-rest/open-api into api-common.
api-upload
Promise-based S3 file upload for Express via multer-s3 — public/private ACL, cache-control, deterministic keys, typed errors.
api-upload-hono
Promise-based S3 file upload for Hono — parses multipart via c.req.parseBody() and PUTs to S3; public/private ACL, cache-control, deterministic keys, typed errors.
api-validation
Zod request validation helpers with pretty error formatting for Node API projects.
api-webhooks
Framework-agnostic webhook signature verification (HMAC) for Node API projects.
api-webhooks-express
Express webhook middleware for @rtorcato/api-webhooks — raw-body capture + HMAC signature verification.
api-webhooks-hono
Hono webhook middleware for @rtorcato/api-webhooks — HMAC signature verification over the raw body.