69,573
stars
+0
25,397
forks
1,697
watchers
2,743
prs
4,088
issues
166
releases
206
discussions
README
Fast, unopinionated, minimalist web framework for Node.js.
Table of contents
- Installation
- Features
- Docs \& Community
- Quick Start
- Philosophy
- Examples
- Contributing
- Security Issues
- Running Tests
- Current project team members
- TC (Technical Committee)
- TC emeriti members
- Triagers
- Emeritus Triagers
- License
[![NPM Version][npm-version-image]][npm-url]
[![NPM Downloads][npm-downloads-image]][npm-downloads-url]
[![Linux Build][github-actions-ci-image]][github-actions-ci-url]
[![Test Coverage][coveralls-image]][coveralls-url]
[![OpenSSF Scorecard Badge][ossf-scorecard-badge]][ossf-scorecard-visualizer]
js
import express from 'express'
const app = express()
app.get('/', (req, res) = {
res.send('Hello World')
})
app.listen(3000, () = {
console.log('Server is running on http://localhost:3000')
})
Installation
This is a Node.js module available through the
npm registry.
Before installing, download and install Node.js.
Node.js 18 or higher is required.
If this is a brand new project, make sure to create a package.json first with
the npm init command.
Installation is done using the
npm install command:
bash
npm install express
Follow our installing guide
for more information.
Features
Robust routing
Focus on high performance
Super-high test coverage
HTTP helpers (redirection, caching, etc)
View system supporting 14+ template engines
Content negotiation
Executable for generating applications quickly
Docs & Community
Website and Documentation - [website repo]
GitHub Organization for Official Middleware & Modules
GitHub Discussions for discussion on the development and usage of Express
PROTIP Be sure to read the migration guide to v5
Quick Start
The quickest way to get started with express is to utilize the executable express(1) to generate an application as shown below:
Install the executable. The executable's major version will match Express's:
bash
npm install -g express-generator@4
Create the app:
bash
express /tmp/foo && cd /tmp/foo
Install dependencies:
bash
npm install
Start the server:
bash
npm start
View the website at: http://localhost:3000
Philosophy
The Express philosophy is to provide small, robust tooling for HTTP servers, making
it a great solution for single page applications, websites, hybrids, or public
HTTP APIs.
Express does not force you to use any specific ORM or template engine. With support for over
14 template engines via @ladjs/consolidate,
you can quickly craft your perfect framework.
Examples
To view the examples, clone the Express repository:
bash
git clone https://github.com/expressjs/express.git --depth 1 && cd express
Then install the dependencies:
bash
npm install
Then run whichever example you want:
bash
node examples/content-negotiation
Contributing
The Express.js project welcomes all constructive contributions. Contributions take many forms,
from code for bug fixeTop issues
#2818include "typings" field in package.json34 comments · 2015-11-30#2151Params registered on app available in routers used by app34 comments · 2014-05-29#2281'/' route breaks strict routing33 comments · 2014-08-05#1980Please add app.route('foo').use()31 comments · 2014-03-16#2501Add originalRoute like originalUrl30 comments · 2015-01-16#6711Restore Support for app.all('*') Wildcard in Express v523 comments · 2025-08-17#2896Define error-handling middleware functions explicitly (without arity detection)23 comments · 2016-02-19#3367Suggestion: Implicitly-named error handler22 comments · 2017-07-17
Discussions
#7579Two different 429s from one Express middleware, and how a client should tell them apart0 comments · 2026-11-01#7570Two Express monitoring gotchas: load order and where the error handler goes0 comments · 2026-10-28#7524If `process.env.NODE_ENV` is not explicitly set, it returns `undefined` instead of `development`2 comments · 2026-10-16#7505Express 5.2.1 loading results on Node.js, Bun and Deno1 comments · 2026-10-05#7492React Frontend with Express: Server-Side Rendering or API-Based Architecture?1 comments · 2026-09-28#7413One-line idempotency middleware for Express1 comments · 2026-08-09#7359Express 5 + async/await: How to handle unhandled promise rejections without crashing?5 comments · 2026-07-04#7312Interpreting ownership and activity patterns in lib/0 comments · 2026-06-12
Latest release
v5.3.0 v5.3.0 2026-10-09Highlights
🐞 Bug fixes
- Fixed HTTP header conflict between Content-Length and Transfer-Encoding in res.send - by @YuryShkoda in 4893
Fixed the behavior of res.send() to prevent conflicts between Content-Length and Transfer-Encoding HTTP headers in responses. The Content-Length header in res.send() is now only added when a Transfer-Encoding header is not present, complying with the HTTP specification that states both headers should not coexist in the same response. ETag generation is unaffected by the presence of a Transfer-Encoding header - by @cuishuang in 7459
Upgrade qs