Menu

#DevtoFastify

57 posts

Feed·
20 of 57 posts
Production deployment — Fastify with TypeScript (part 18/18)
📰
0Read More

Production deployment — Fastify with TypeScript (part 18/18)

DEV Community: fastify·Antonio Tripodi·6 days ago
#58yQ5MF4
#devtofastify#devto#dev#node#health

Shipping a Fastify API to production: graceful shutdown, liveness and readiness checks, and a multi-stage Dockerfile that actually builds the TypeScript.

15s
Empty Route Parameters Broke the Middleware Assumption in @fastify/express
📰
0Read More

Empty Route Parameters Broke the Middleware Assumption in @fastify/express

DEV Community: fastify·StarkMan·7 days ago
#HY4adVfW
#devtofastify#devto#dev#route#express

CVE-2026-135279 explains how empty route parameters bypassed Express middleware inside Fastify applications.

15s
Authentication and authorization — Fastify with TypeScript (part 12/18)
📰
0Read More

Authentication and authorization — Fastify with TypeScript (part 12/18)

DEV Community: fastify·Antonio Tripodi·9 days ago
#kipOcEY4
#devtofastify#devto#dev#fastify#user

JWT authentication with @fastify/jwt, role-based access control (RBAC), and secure password hashing with Argon2 — fully typed.

15s
Testing — Fastify with TypeScript (part 15/18)
🖼️
0Read More

Testing — Fastify with TypeScript (part 15/18)

DEV Community: fastify·Antonio Tripodi·9 days ago
#9n0IyysU
#devtofastify#devto#dev#test#assert

Testing Fastify with inject() and Node's built-in test runner: routes, services, plugins, a real PostgreSQL, plus lint, coverage and CI.

15s
Building an end-to-end encrypted chat app with libsodium
📰
0Read More

Building an end-to-end encrypted chat app with libsodium

DEV Community: fastify·Mike Vu·11 days ago
#zfD1sQ0w
#devtofastify#devto#dev#server#chat

The key design behind an E2EE chat: per-chat keys sealed to each member, signed message chains, and the general limits of detecting a cheating server.

15s
Your first server (app.ts, server.ts, config.ts) — Fastify with TypeScript (part 4/18)
📰
0Read More

Your first server (app.ts, server.ts, config.ts) — Fastify with TypeScript (part 4/18)

DEV Community: fastify·Antonio Tripodi·11 days ago
#E2HVKdCX
#devtofastify#devto#dev#config#type

Why separating app.ts from server.ts is the recommended Fastify convention, and how to load typed configuration from environment variables.

15s
TypeScript generics in routes — Fastify with TypeScript (part 6/18)
📰
0Read More

TypeScript generics in routes — Fastify with TypeScript (part 6/18)

DEV Community: fastify·Antonio Tripodi·11 days ago
#UV8cyGCe
#devtofastify#devto#dev#user#string

How to use Fastify's route generics to type Body, Params, Querystring, and Reply in your routes, without manual casts.

15s
Validation with schemas (TypeBox) — Fastify with TypeScript (part 7/18)
📰
0Read More

Validation with schemas (TypeBox) — Fastify with TypeScript (part 7/18)

DEV Community: fastify·Antonio Tripodi·11 days ago
#sOte69rl
#devtofastify#devto#dev#type#schema

Validate requests and serialize responses with TypeBox and the Fastify type provider, deriving both JSON Schema and TypeScript types from a single source of truth.

15s