Fastify
A fast, low-overhead web framework for building HTTP APIs with Node.js.
In more detail
Like Express it is built around routes and hooks that run before and after handlers. It can validate requests and serialize responses using JSON schemas.
Example
apps/api in the course monorepo is a Fastify app.Related terms
- Express — The most widely used web framework for Node.js, providing routing and middleware on top of node:http.
- Node.js — A program that runs JavaScript outside the web browser, used mainly to build servers, command-line tools and back-end services.
- middleware — Code that sits between an incoming request and the handler that answers it, doing a shared job such as logging, authentication or rate limiting.
- web framework — A library that provides the structure for building web applications, such as routing, middleware and request parsing, so you do not write them yourself.
- module augmentation — Adding types to another package from your own code with declare module "name" { } and declaration merging.
Taught in
- Monorepo Architecture: Workspaces & Turborepo — Production Full-Stack Engineering
- Containerization Architecture: Multi-Stage Dockerfiles — Production Full-Stack Engineering
- Native HTTP Server: Request & Response Lifecycles — Node.js Internals & Backend Services
- Declaration Files, Ambient Namespaces And Module Augmentation — Production TypeScript