Express
The most widely used web framework for Node.js, providing routing and middleware on top of node:http.
In more detail
Its req and res objects are the node:http ones with extra helper methods added. A huge ecosystem of middleware packages exists for it.
Related terms
- Fastify — A fast, low-overhead web framework for building HTTP APIs with Node.js.
- 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.
- Node.js — A program that runs JavaScript outside the web browser, used mainly to build servers, command-line tools and back-end services.
- 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.
- node:http — The built-in Node.js module for writing HTTP/1.1 servers and clients, which web frameworks such as Express and Fastify build on.
- module augmentation — Adding types to another package from your own code with declare module "name" { } and declaration merging.
Taught in
- End-to-End Type Safety: Shared Schemas & DTOs — Production Full-Stack Engineering
- Structured Logging & Correlation IDs: Context Stitching — Production Full-Stack Engineering
- Native HTTP Server: Request & Response Lifecycles — Node.js Internals & Backend Services
- Core Utilities: Partial, Required, Readonly, Pick And Omit — Production TypeScript
- Declaration Files, Ambient Namespaces And Module Augmentation — Production TypeScript