Middleware
As a rule, when you develop web applications, a web framework is not enough. Below is a list of modern modules and middleware for building backend apps.
Static server
- sirv - An optimized middleware & CLI application for serving static files
Template engine
- Eta - Embedded JS template engine for Node, Deno, and the browser. Lighweight, fast, and pluggable. Written in TypeScript
- Edge.js - Node.js templating engine with fresh air
- micromustache - An extremely fast and small sub-implementation of the template engine for JavaScript
- Squirelly - Semi-embedded JS template engine that supports helpers, filters, partials, and template inheritance. 4KB minzipped, written in TypeScript
- sprightly - A very light-weight JS template engine
Logger
- @tinyhttp/logger - Simple HTTP logger for tinyhttp
- Pino HTTP - high-speed HTTP logger for Node.js
- chrona - Simple HTTP request logger middleware for express.js inspired from koa-logger, written in typescript.
Session
- micro-session - Session middleware for micro
- next-session - Simple promise-based session middleware for Next.js, micro, Express, and more
- iron-session - Next.js stateless session utility using signed and encrypted cookies to store data. Also works with Express, and Node.js HTTP servers.
CSRF
- malibu - Framework-agnostic CSRF middleware for modern Node.js.
Body parser
- milliparsec - Tiniest body parser in the universe. Built for modern Node.js.
Cookies
- cookie-parser - Cookie parsing middleware for Node.js.
Metrics
- ping - Response time checker middleware.
CORS
- cors - CORS middleware for modern Node.js.
Swagger
- swagger - Swagger integration for tinyhttp.
Misc
- unless - Unless middleware for tinyhttp.