Articles: Node.js
Articles and code samples in Node.js: design patterns, architecture and guides with working code.
- TypeScript for React and Node developers – from types to a type-safe API Tutorial · 26 min read
A hands-on TypeScript 7 guide built around one project – a dumpling shop's order dashboard in React plus a Node script. Types vs interfaces, discriminated unions, narrowing, generics, utility types, a strict tsconfig and validating API…
- Swagger and OpenAPI in practice – docs from code in NestJS and Express, a typed client and contract hygiene Tutorial · 21 min read
We document the pierogi shop API with OpenAPI – in NestJS with @nestjs/swagger (CLI plugin, response DTOs, an API key in Swagger UI, URI versioning, export without a database), in Express from Zod schemas with zod-to-openapi and…
- Login and registration in React – forms, tokens, protected routes and session refresh Tutorial · 31 min read
A complete authentication frontend in React 19 – login and registration forms with validation, an access token in memory and a refresh token in an httpOnly cookie, session restore, protected routes, retrying requests after a 401, password…
- NestJS 11 in practice – modules, DI, validation, Mongoose, queues and hexagonal architecture Tutorial · 24 min read
We move the pierogi shop's order API to NestJS 11 – modules and dependency injection, controllers and DTOs with class-validator, pipes, guards, interceptors and exception filters, Zod-validated configuration, Mongoose 9, ports and…
- REST API with Express 5 and TypeScript – from an empty folder to production Tutorial · 23 min read
We build the order API of a pierogi shop with Express 5 and TypeScript – Zod-validated configuration, routing, request validation, centralized error handling, async handlers, pino logs, CORS, Helmet, rate limiting, tests with supertest…
- Amazon SQS in practice – standard and FIFO queues, long polling, DLQ, idempotency, SNS fan-out and Lambda (Node.js, C#, Python) Tutorial · 26 min read
We move the pierogi shop's order handling to an Amazon SQS queue – a producer and consumer with AWS SDK v3, long polling, visibility timeout and heartbeats, a dead-letter queue (DLQ), idempotent processing with DynamoDB, batch sends, SNS…
- Amazon SES in practice – domain verification (DKIM, SPF, DMARC), leaving the sandbox, sending via API and SMTP, templates, bounces and deliverability (Node.js, C#, Python) Tutorial · 25 min read
We send the pierogi shop's e-mails with Amazon SES – a domain identity with Easy DKIM, a custom MAIL FROM domain for SPF, rolling out DMARC, leaving the sandbox, sending via the v2 API with AWS SDK v3 (text, templates, attachments) and…
- AWS S3 in practice – browser uploads, presigned URLs, multipart, CloudFront and costs (Node.js, C#, Python) Tutorial · 26 min read
We store pierogi photos and invoices in Amazon S3 with the AWS SDK for JavaScript v3 – a bucket with safe defaults, a least-privilege IAM policy, browser uploads via presigned POST, downloads via short-lived links and streaming, multipart…
- Backend login and registration – passwords, sessions, JWT, refresh token rotation and OAuth Tutorial · 37 min read
We build authentication for the pierogi shop API in Express 5 (plus a NestJS variant) – argon2id password hashing, short-lived JWTs and rotated refresh tokens in httpOnly cookies with reuse detection, e-mail verification, password reset,…
- AI in Node.js and TypeScript: the Anthropic SDK, Vercel AI SDK and LangChain.js in practice Article · 13 min read
A map of the AI ecosystem for Node.js – when the provider SDK is enough, when to use the Vercel AI SDK and when LangChain.js – plus streaming to the browser, tools, agents and structured data with Zod, with production notes.