---
title: "Express.js: the reference web framework for Node.js"
description: "Express.js (May 2010) by TJ Holowaychuk: minimal web framework for Node.js, composable middleware, routing, inspired by Sinatra. MIT licence."
url: "https://www.noze.it/en/insights/express-js/"
lang: "en"
alternate: "https://www.noze.it/insights/express-js/"
published: "2010-06-15"
author: "noze S.r.l."
keywords: "Open Source, Web, Express.js, Node.js, TJ Holowaychuk, JavaScript, Backend"
---

# Express.js: the reference web framework for Node.js

Express.js (May 2010) by TJ Holowaychuk: minimal web framework for Node.js, composable middleware, routing, inspired by Sinatra. MIT licence.

15 June 2010

## Node.js needs a framework

**Node.js** (Ryan Dahl, 2009) offers a server-side JavaScript runtime with event loop and non-blocking I/O, but the HTTP API is low-level. Writing REST APIs requires handling routing, body parsing, cookies, middleware. A minimal framework encapsulating common patterns is needed.

## The release

**Express.js** is released on **22 May 2010** by **TJ Holowaychuk** (prolific author of JavaScript tools, also Mocha, Koa, Stylus). Inspired by Ruby’s **Sinatra**, it is a minimal framework for Node. **MIT** licence.

```
const express = require('express');
const app = express();

app.get('/users/:id', (req, res) => {
  res.json({ id: req.params.id, name: 'Ada' });
});

app.listen(3000);
```

## Features

- **Routing** — `app.get()`, `app.post()`, routes with parameters and regex
- **Middleware** — `app.use()` composable pipeline for cross-cutting concerns
- **Request/Response helpers** — `res.json()`, `res.send()`, `req.params`, `req.query`, `req.body`
- **Template engines** — Pug (formerly Jade), EJS, Handlebars supported
- **Static files** — `express.static()` for assets
- **Error handling** — 4-argument middleware

## Middleware ecosystem

The Express ecosystem is huge:

- **body-parser** — parse JSON/URL-encoded bodies (integrated in Express 4.16+)
- **cors** — Cross-Origin Resource Sharing
- **helmet** — security headers
- **morgan** — HTTP request logger
- **multer** — multipart/form-data upload
- **express-session** — session management
- **passport** — authentication, 500+ strategies (OAuth, JWT, local)
- **express-rate-limit** — rate limiting

## Impact

Express is defining the **middleware pipeline** pattern set to influence later frameworks. Together with Node.js and MongoDB it forms the emerging axis of full-JavaScript web stacks.

## In the Italian context

Express is rapidly becoming the standard choice for Node.js APIs in Italian JS teams — agencies, startups and public bodies.

Update — 2024

Version history: **2.x** (2011, restructuring), **3.x** (2012, `res.redirect()`, routes array), **4.0** (April 2014, fully modular middleware, Connect dependency removed), **5.0** (GA October 2024, Node.js 18+, native async/await). Middleware ecosystem: body-parser (bundled in 4.16+), cors, helmet, morgan, multer, express-session, passport. Alternatives emerge: **Koa** (2013, same TJ, async/await), **Fastify** (2016, JSON Schema, faster), **NestJS** (2017, TypeScript on Express/Fastify with DI and decorators). Express remains the de facto standard for most Node codebases.

---

_References: Express.js (22 May 2010). TJ Holowaychuk. MIT licence. Inspired by Sinatra (Ruby)._
