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.
In more detail
Frameworks trade some control and speed for convenience and conventions. Choosing one decides much of how an application is structured.
Related terms
- Express — The most widely used web framework for Node.js, providing routing and middleware on top of node:http.
- Fastify — A fast, low-overhead web framework for building HTTP APIs with Node.js.
- NestJS — A TypeScript framework for structured Node.js server applications, organised into modules, controllers and dependency injection.
- routing — Choosing which piece of code handles a request, based on its method and path, such as GET /users/42.
- 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.
Taught in
- Native HTTP Server: Request & Response Lifecycles — Node.js Internals & Backend Services
- Production Hardening: Graceful Shutdown & Docker — Node.js Internals & Backend Services