AsyncLocalStorage Correlation Logging
Tag every log line with a request correlation id using AsyncLocalStorage, letting deeply nested async code log without passing context.
Tag every log line with a request correlation id using AsyncLocalStorage, letting deeply nested async code log without passing context.
Parse multipart request bodies with Busboy in streaming mode, enforcing file count, size, and type limits before any bytes hit disk.
Evolve a Drizzle PostgreSQL schema with generated SQL migrations, reviewing column additions as nullable first, then backfilling safely.
Type-safe joins with the Drizzle query builder against PostgreSQL, mapping result rows to inferred shapes and parameterizing every input.
Centralize Express error handling in TypeScript with a typed AppError hierarchy, status mapping, and an exhaustively narrowed middleware.
Apply distributed rate limiting in Express with express-rate-limit backed by a Redis store, keying by user identity and API token.
Protect Fastify routes with the JWT plugin via preHandler guards, verifying tokens once and exposing typed claims to handlers.
Register a Zod type provider in Fastify so route schemas drive validation, serialization, and generated OpenAPI docs from one source.
Apply multi-document Firestore mutations atomically with admin SDK batched writes, checking batch size limits and ordering dependencies.
Propagate per-call deadlines through gRPC clients with timeout headers, cancellation signals, and DEADLINE_EXCEEDED error classification.
Publish and consume Kafka topics with KafkaJS: keyed partitioning for order, consumer groups with manual commit, and graceful shutdown.
Build fully typed SQL with Kysely, from typed table definitions through dynamic where clauses to exactly shaped result row types.
React to collection changes with a typed MongoDB change stream, filtering operations, resuming by token after restart, and cleaning up on close.
Instrument a Node service with OpenTelemetry tracing spans, nesting child spans across async boundaries and exporting OTLP batches.
Route Pino logs to multiple transports in parallel, sending errors to a dedicated sink while pretty console output stays development-only.
Use Prisma interactive transactions with serialization failure detection, bounded retry loops, and rollback on invariant violations.
Serialize critical sections across instances with a Redis lock using SET NX with expiry, token-checked release, and lease renewal.
Spin up disposable PostgreSQL containers for integration tests with Testcontainers, waiting for readiness and reusing one container per suite.
Read an existing TypeScript file with ts-morph, walk exported interfaces, and emit a generated barrel of constant type maps at build time.
Keep TypeORM queries injection-safe with parameter placeholders, typed find options, and a guard against unsafe raw SQL fragments.
Isolate a module under test with Vitest vi.mock hoisting, typed mock functions, and restore between tests so suites stay order-independent.
Ship Winston logs to Elasticsearch with bulk indexing, retry on rejection, and index rotation mapping that keeps queries fast over time.
Flatten process.env into a strongly typed nested config with Zod, supporting defaults, optional sections, and fail-fast startup checks.
Implement JWT authentication in a Node.js Express server with TypeScript, including token signing, verification middleware, refresh token rotation, and.
Build a type-safe CLI tool in Node.js using Commander.js with subcommands, option parsing, help generation, and TypeScript. Includes chalk-colored output.
Fetch remote data in Node.js with TypeScript using generic HTTP wrappers, retry logic with exponential backoff, response parsing with Zod, and.