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/LICENSE3. Used by agents' projects
Dependency in 425 public GitHub projects set up for AI coding agents that we scanned (6.8%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
expressjs.com/llms.txtFrom 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
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
Often used with
Express in practice
Strengths
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>.
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.
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.
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
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.
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".
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
Head to head
- Express vs Hono used together in 21 projects
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
Pick Fastify when you want built-in request checking with schemas and a plugin system, with speed as a stated goal.
Pick Hono when your server must also run on edge platforms like Cloudflare Workers, Deno or Bun, built on web standards.
Pick NestJS when a large team wants a structured TypeScript framework with modules and dependency injection.
Build and deploy universal JavaScript servers with zero-config.
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 *).”
Install Express into your project (Node.js 18 or newer).
npm install expressFor TypeScript, add the community type packages as development tools.
npm install --save-dev typescript @types/express @types/nodeWrite 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') })
Rules for your agent
## 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
In Express 5 the wildcard must have a name.
Express 5 dropped the ? for optional parts; braces mark them instead.
Express 5 removed the old argument orders.
Without a reader req.body is undefined in Express 5, so the code crashes.
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.