--- head: - - meta - property: og:title content: Middleware - - meta - name: description content: A list of modern modules and middleware for building backend apps. - - meta - property: og:description content: A list of modern modules and middleware for building backend apps. --- # 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](https://github.com/lukeed/sirv) - An optimized middleware & CLI application for serving static files ## Template engine - [Eta](https://eta.js.org/) - Embedded JS template engine for Node, Deno, and the browser. Lighweight, fast, and pluggable. Written in TypeScript - [Edge.js](https://github.com/edge-js/edge) - Node.js templating engine with fresh air - [micromustache](https://github.com/userpixel/micromustache) - An extremely fast and small sub-implementation of the {{mustache}} template engine for JavaScript - [Squirelly](https://github.com/squirrellyjs/squirrelly) - Semi-embedded JS template engine that supports helpers, filters, partials, and template inheritance. 4KB minzipped, written in TypeScript - [sprightly](https://github.com/obadakhalili/sprightly) - A very light-weight JS template engine ## Logger - [@tinyhttp/logger](https://github.com/tinyhttp/logger) - Simple HTTP logger for tinyhttp - [Pino HTTP](https://github.com/pinojs/pino-http) - high-speed HTTP logger for Node.js - [chrona](https://github.com/xambassador/chrona) - Simple HTTP request logger middleware for express.js inspired from koa-logger, written in typescript. ## Session - [micro-session](https://github.com/meyer9/micro-session) - Session middleware for micro - [next-session](https://github.com/hoangvvo/next-session) - Simple promise-based session middleware for Next.js, micro, Express, and more - [iron-session](https://github.com/vvo/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](https://github.com/tinyhttp/malibu) - Framework-agnostic CSRF middleware for modern Node.js. ## Body parser - [milliparsec](https://github.com/tinyhttp/milliparsec) - Tiniest body parser in the universe. Built for modern Node.js. ## Cookies - [cookie-parser](https://github.com/tinyhttp/cookie-parser) - Cookie parsing middleware for Node.js. ## Metrics - [ping](https://github.com/tinyhttp/ping) - Response time checker middleware. ## CORS - [cors](https://github.com/tinyhttp/cors) - CORS middleware for modern Node.js. ## Swagger - [swagger](https://github.com/tinyhttp/swagger) - Swagger integration for tinyhttp. ## Misc - [unless](https://github.com/tinyhttp/unless) - Unless middleware for tinyhttp.