Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 4 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Express

The classic web server for Node.js apps.

HTTP servers and APIsNPM

GitHubWebsite

1. License

“to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software”

MIT allows use in paid and closed-source products.

github.com/expressjs/express/blob/master/LICENSE

From the package registry and GitHub, checked daily; card checked Nov 11, 2026. Tap a verdict to see its source.How we checkedReport an error

What Express does

Express is a free, small framework for building the server side of a website or app in JavaScript with Node.js. You say which web addresses your server answers and what it sends back, such as a page, a file or data for your app. Most extras, like logins, uploads or security headers, come as add-on packages you plug in.

What people build with it

A small backend for your app

Your web or mobile app needs a server that answers a few addresses, like /products or /orders, with data. Express sets that up in a few lines.

Serve a built website and its files

Put your finished site, images and styles in a public folder and Express hands them to visitors as they ask for them.

Load records from a database

A page asks for one customer or order by its number; your route waits for the database and returns it. If the lookup fails, Express sends the error to your error handler.

Accept form and JSON data

Your sign-up form or app sends data to the server; Express reads it once you switch on its JSON or form reader.

Pages built from templates

Your server fills page templates with data, like a product page per item, and sends finished pages to the browser.

Receive alerts from other services Idea

A payment or code hosting service calls your server when something happens; one Express route receives the alert and starts your follow-up work.

Express popularity

89 / 100
Gid Score, #12 overall
21M
downloads a week, npm
69.7K
GitHub stars
425
agent projects use it
Express: downloads per weeknpm, express 209,772,988
Express: GitHub starsexpressjs/express 69,683

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How Express is used

  • Express is a dependency in 425 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (8.7% of the 4,867 JavaScript/TypeScript ones), #3 of 102 in http servers and apis.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 1,716; those are left out of every share on this page.
  • The most used alternative in our scan is Hono (110 projects).
  • Projects that use it most often also use dotenv (61.6%), cors (45.2%), tsx (45.6%).
  • It is more common in projects set up for Devin Desktop (16.8%) than for OpenAI Codex (5.5%).

By coding agent

228 projects, 7.0%
207 projects, 6.8%
166 projects, 6.8%
55 projects, 11.6%
49 projects, 14.7%
47 projects, 16.8%
26 projects, 5.5%
23 projects, 6.7%

Often used with

In 61.6% of its projects
In 45.2% of its projects
In 45.6% of its projects
In 75.1% of its projects
In 50.6% of its projects
In 21.2% of its projects
In 20.9% of its projects

Express in practice

Strengths

You pick the ORM and the template engine

The README says Express "does not force you to use any specific ORM or template engine." It supports over 14 template engines through <code>@ladjs/consolidate</code>.

Node.js APIs stay in view

The website describes Express as a thin layer of basic web application features. It says this layer does not hide the Node.js features underneath.

Minimal core, extended by middleware

The site calls Express a routing framework "with minimal core features meant to be augmented" through Express middleware modules. The README points to the expressjs GitHub organization for official middleware and modules.

Docs packaged for language models

The site publishes an <code>llms.txt</code> index. It lists guides for v5 and v4, API references for v5, v4 and v3, an official middleware file, and a single full-docs file. The index says the content comes from the official documentation.

Watch out for

Node.js 18 or newer

The README requires Node.js 18 or higher. For a brand new project, it says to create a <code>package.json</code> with <code>npm init</code> before installing.

README mixes v5 and v4 pointers

The README's PROTIP sends readers to the migration guide to v5. Its quick start installs <code>express-generator@4</code> and says "The executable's major version will match Express's".

Security releases for middleware

The website announced security releases for compression, cookies, hbs, morgan, multer, multiparty and proxy-addr. It recommends "all users upgrade as soon as possible." Our inference, not the site's: an app that uses these modules has to update them separately from Express itself.

Hello World server

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')
})

More about Express

Funding
  • Open Collective: https://opencollective.com/express

See all

Head to head
Packages around it
  • dotenv: Loads .env variables
  • cors: CORS middleware
  • tsx: Runs TypeScript files
  • nodemon: Restarts on file changes
  • axios: HTTP client
  • jsonwebtoken: JWT sign and verify
More in HTTP servers and APIs

Alternatives

Express This page

MITGid 8921M/wk

Fastify

Pick Fastify when you want built-in request checking with schemas and a plugin system, with speed as a stated goal.

Hono

Pick Hono when your server must also run on edge platforms like Cloudflare Workers, Deno or Bun, built on web standards.

MITGid 80114M/wk

NestJS

Pick NestJS when a large team wants a structured TypeScript framework with modules and dependency injection.

MITGid 7826M/wk

Nitro

Build and deploy universal JavaScript servers with zero-config.

MITGid 5910.7M/wk

Compare Express with another tool

Get started

Tell your AI assistant

“Build the API with Express 5 (pin express@5.3.0, Node.js 18+): app.use(express.json()) before the routes, async handlers, a 4-argument error handler at the end, helmet for security headers, and Express 5 route syntax (/*splat, not *).”

  1. Install Express into your project (Node.js 18 or newer).

    npm install express

    From github.com/expressjs/express/blob/master/Readme.md

  2. For TypeScript, add the community type packages as development tools.

    npm install --save-dev typescript @types/express @types/node

    From expressjs.com/en/starter/installing.html

  3. Write a first route and start the server, then open http://localhost:3000.

    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')
    })
    

    From expressjs.com/en/starter/hello-world.html

Rules for your agent

Paste into AGENTS.md or CLAUDE.md
## Express
- Confirm the runtime is Node.js 18 or higher. In a new project, run `npm init` to create `package.json` first, then `npm install express`.
- Find out whether the project is on v4 or v5 and use the matching docs. When upgrading, read the migration guide to v5 that the README points to.
- For machine-readable docs, use the files listed in `https://expressjs.com/llms.txt`. Guides exist for v5 and v4 (`llms/guides-5x.txt`, `llms/guides-4x.txt`). API references exist for v5, v4 and v3 (for example `llms/api-5x.txt`).
- Do not expect features in core that the docs leave to middleware. The core is minimal and meant to be augmented with Express middleware modules.
- Express does not force any specific ORM or template engine. Use what the project already uses.
- Keep middleware current. The site has announced security releases for compression, cookies, hbs, morgan, multer, multiparty and proxy-addr, and recommends upgrading as soon as possible.

Mistakes to avoid

app.get('/*', handler) or app.get('*', handler)
app.get('/*splat', handler), or app.get('/{*splat}', handler) to match / too

In Express 5 the wildcard must have a name.

app.get('/:file.:ext?', handler)
app.get('/:file{.:ext}', handler)

Express 5 dropped the ? for optional parts; braces mark them instead.

res.json({ name }, 201) or res.send(200)
res.status(201).json({ name }) and res.sendStatus(200)

Express 5 removed the old argument orders.

Reading req.body.email with no body reader added
app.use(express.json()) (and express.urlencoded() for HTML forms) before the routes

Without a reader req.body is undefined in Express 5, so the code crashes.

app.use(express.static('public')) for files under public/.well-known
app.use('/.well-known', express.static('public/.well-known', { dotfiles: 'allow' }))

Express 5 hides dot-folders by default, which breaks certificate checks and app links.

Questions

Should I start with Express 4 or 5?

Version 5 is the current one (5.3.0) and needs Node.js 18 or newer; both lines still get support, but new projects should use 5.

Why is req.body undefined?

Express reads the request body only after you add a reader, for example app.use(express.json()) for JSON.

Do async route handlers need try and catch?

Not in Express 5. A thrown error or rejected promise goes to your error handler automatically.

Does Express come with TypeScript types?

No. Install @types/express and @types/node as development packages.

Can I use it in a commercial product?

Yes. It is MIT-licensed; keep the license notice with copies of its files.