{
 "kind": "tool",
 "slug": "express",
 "path": "tools/express/",
 "name": "Express",
 "maker": null,
 "density": "full",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "HTTP servers and APIs",
   "tools/http-servers/"
  ]
 ],
 "lead": "The classic web server for Node.js apps.",
 "chips": [
  {
   "label": "HTTP servers and APIs",
   "path": "tools/http-servers/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install express"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/expressjs/express"
  },
  {
   "label": "Website",
   "href": "https://expressjs.com/"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": "to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software",
   "note": "MIT allows use in paid and closed-source products.",
   "src": "https://github.com/expressjs/express/blob/master/LICENSE"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 19, 2026",
   "note": "Latest GitHub release Oct 9, 2026. ",
   "src": "https://github.com/expressjs/express"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "425 projects",
   "status": "info",
   "sub": "#3 of 102 in its category",
   "note": "Dependency in 425 public GitHub projects set up for AI coding agents that we scanned (6.8%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Docs for agents",
   "status": "yes",
   "sub": "llms.txt",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": "https://expressjs.com/llms.txt"
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily; card checked Nov 11, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Express does",
   "parts": [
    {
     "t": "prose",
     "text": "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."
    },
    {
     "t": "h3",
     "text": "What people build with it"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "A small backend for your app",
       "text": "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.",
       "idea": false
      },
      {
       "title": "Serve a built website and its files",
       "text": "Put your finished site, images and styles in a public folder and Express hands them to visitors as they ask for them.",
       "idea": false
      },
      {
       "title": "Load records from a database",
       "text": "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.",
       "idea": false
      },
      {
       "title": "Accept form and JSON data",
       "text": "Your sign-up form or app sends data to the server; Express reads it once you switch on its JSON or form reader.",
       "idea": false
      },
      {
       "title": "Pages built from templates",
       "text": "Your server fills page templates with data, like a product page per item, and sends finished pages to the browser.",
       "idea": false
      },
      {
       "title": "Receive alerts from other services",
       "text": "A payment or code hosting service calls your server when something happens; one Express route receives the alert and starts your follow-up work.",
       "idea": true
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Express popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "89",
       "of": "/ 100",
       "l": "Gid Score, #12 overall"
      },
      {
       "n": "21M",
       "l": "downloads a week, npm"
      },
      {
       "n": "69.7K",
       "l": "GitHub stars"
      },
      {
       "n": "425",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Express is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "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%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "228 projects, 7.0%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "207 projects, 6.8%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "166 projects, 6.8%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "55 projects, 11.6%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "49 projects, 14.7%",
       "v": "OpenClaw",
       "path": "agents/openclaw/"
      },
      {
       "l": "47 projects, 16.8%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      },
      {
       "l": "26 projects, 5.5%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "23 projects, 6.7%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 61.6% of its projects",
       "v": "dotenv",
       "path": "tools/dotenv/"
      },
      {
       "l": "In 45.2% of its projects",
       "v": "cors",
       "path": "tools/cors/"
      },
      {
       "l": "In 45.6% of its projects",
       "v": "tsx",
       "path": "tools/tsx/"
      },
      {
       "l": "In 32.0% of its projects",
       "v": "Model Context Protocol SDK (JavaScript)",
       "path": "tools/modelcontextprotocol/"
      },
      {
       "l": "In 75.1% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 50.6% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 21.2% of its projects",
       "v": "jsonwebtoken",
       "path": "tools/jsonwebtoken/"
      },
      {
       "l": "In 20.9% of its projects",
       "v": "OpenAI",
       "path": "tools/openai-npm/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "Express in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "You pick the ORM and the template engine",
       "v": "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>."
      },
      {
       "l": "Node.js APIs stay in view",
       "v": "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."
      },
      {
       "l": "Minimal core, extended by middleware",
       "v": "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."
      },
      {
       "l": "Docs packaged for language models",
       "v": "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."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Node.js 18 or newer",
       "v": "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."
      },
      {
       "l": "README mixes v5 and v4 pointers",
       "v": "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\"."
      },
      {
       "l": "Security releases for middleware",
       "v": "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."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Hello World server"
    },
    {
     "t": "tabs",
     "label": "Example",
     "items": [
      {
       "tab": "Js",
       "code": "import express from 'express'\n\nconst app = express()\n\napp.get('/', (req, res) => {\n  res.send('Hello World')\n})\n\napp.listen(3000, () => {\n  console.log('Server is running on http://localhost:3000')\n})"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about Express",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "Open Collective: https://opencollective.com/express"
       ]
      },
      {
       "title": "Head to head",
       "items": [
        {
         "text": "Express vs Hono",
         "note": "used together in 21 projects",
         "path": "tools/compare/express-vs-hono/"
        }
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "dotenv: Loads .env variables",
        "cors: CORS middleware",
        "tsx: Runs TypeScript files",
        "nodemon: Restarts on file changes",
        "axios: HTTP client",
        "jsonwebtoken: JWT sign and verify"
       ]
      },
      {
       "title": "More in HTTP servers and APIs",
       "path": "tools/http-servers/",
       "items": [
        {
         "text": "Uvicorn",
         "path": "tools/uvicorn/"
        },
        {
         "text": "FastAPI",
         "path": "tools/fastapi/"
        },
        {
         "text": "cors",
         "path": "tools/cors/"
        },
        {
         "text": "python-multipart",
         "path": "tools/python-multipart/"
        },
        {
         "text": "Flask",
         "path": "tools/flask/"
        },
        {
         "text": "Starlette",
         "path": "tools/starlette/"
        },
        {
         "text": "express-rate-limit",
         "path": "tools/express-rate-limit/"
        },
        {
         "text": "multer",
         "path": "tools/multer/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Express",
       "me": true,
       "facts": [
        "MIT",
        "Gid 89",
        "21M/wk"
       ]
      },
      {
       "name": "Fastify",
       "why": "Pick Fastify when you want built-in request checking with schemas and a plugin system, with speed as a stated goal.",
       "path": "tools/fastify/",
       "facts": []
      },
      {
       "name": "Hono",
       "why": "Pick Hono when your server must also run on edge platforms like Cloudflare Workers, Deno or Bun, built on web standards.",
       "path": "tools/hono/",
       "facts": [
        "MIT",
        "Gid 80",
        "114M/wk"
       ]
      },
      {
       "name": "NestJS",
       "why": "Pick NestJS when a large team wants a structured TypeScript framework with modules and dependency injection.",
       "path": "tools/nestjs/",
       "facts": [
        "MIT",
        "Gid 78",
        "26M/wk"
       ]
      },
      {
       "name": "Nitro",
       "why": "Build and deploy universal JavaScript servers with zero-config.",
       "path": "tools/nitro/",
       "facts": [
        "MIT",
        "Gid 59",
        "10.7M/wk"
       ]
      }
     ],
     "more": "Compare Express with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "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 *)."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Install Express into your project (Node.js 18 or newer).",
       "code": "npm install express",
       "src": "https://github.com/expressjs/express/blob/master/Readme.md"
      },
      {
       "text": "For TypeScript, add the community type packages as development tools.",
       "code": "npm install --save-dev typescript @types/express @types/node",
       "src": "https://expressjs.com/en/starter/installing.html"
      },
      {
       "text": "Write a first route and start the server, then open http://localhost:3000.",
       "code": "import express from 'express'\n\nconst app = express()\n\napp.get('/', (req, res) => {\n  res.send('Hello World')\n})\n\napp.listen(3000, () => {\n  console.log('Server is running on http://localhost:3000')\n})\n",
       "src": "https://expressjs.com/en/starter/hello-world.html"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## Express\n- 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`.\n- 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.\n- 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`).\n- 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.\n- Express does not force any specific ORM or template engine. Use what the project already uses.\n- 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.\n"
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "app.get('/*', handler) or app.get('*', handler)",
       "fix": "app.get('/*splat', handler), or app.get('/{*splat}', handler) to match / too",
       "why": "In Express 5 the wildcard must have a name."
      },
      {
       "dont": "app.get('/:file.:ext?', handler)",
       "fix": "app.get('/:file{.:ext}', handler)",
       "why": "Express 5 dropped the ? for optional parts; braces mark them instead."
      },
      {
       "dont": "res.json({ name }, 201) or res.send(200)",
       "fix": "res.status(201).json({ name }) and res.sendStatus(200)",
       "why": "Express 5 removed the old argument orders."
      },
      {
       "dont": "Reading req.body.email with no body reader added",
       "fix": "app.use(express.json()) (and express.urlencoded() for HTML forms) before the routes",
       "why": "Without a reader req.body is undefined in Express 5, so the code crashes."
      },
      {
       "dont": "app.use(express.static('public')) for files under public/.well-known",
       "fix": "app.use('/.well-known', express.static('public/.well-known', { dotfiles: 'allow' }))",
       "why": "Express 5 hides dot-folders by default, which breaks certificate checks and app links."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Should I start with Express 4 or 5?",
       "a": "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.",
       "evidence": {
        "url": "https://github.com/expressjs/express/blob/master/Readme.md",
        "quote": "Node.js 18 or higher is required."
       }
      },
      {
       "q": "Why is req.body undefined?",
       "a": "Express reads the request body only after you add a reader, for example app.use(express.json()) for JSON.",
       "evidence": {
        "url": "https://expressjs.com/en/guide/migrating-5.html",
        "quote": "The req.body property returns undefined when the body has not been parsed."
       }
      },
      {
       "q": "Do async route handlers need try and catch?",
       "a": "Not in Express 5. A thrown error or rejected promise goes to your error handler automatically.",
       "evidence": {
        "url": "https://expressjs.com/en/guide/migrating-5.html",
        "quote": "You can now use async/await directly without manually catching errors."
       }
      },
      {
       "q": "Does Express come with TypeScript types?",
       "a": "No. Install @types/express and @types/node as development packages.",
       "evidence": {
        "url": "https://expressjs.com/en/starter/installing.html",
        "quote": "Express is written in JavaScript and does not bundle its own type definitions."
       }
      },
      {
       "q": "Can I use it in a commercial product?",
       "a": "Yes. It is MIT-licensed; keep the license notice with copies of its files.",
       "evidence": {
        "url": "https://registry.npmjs.org/express/latest",
        "quote": "\"license\":\"MIT\""
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm express"
  ],
  [
   "Category",
   "HTTP servers and APIs"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "v5.3.0, October 9, 2026"
  ],
  [
   "On GitHub since",
   "June 2009"
  ],
  [
   "Gid Score",
   "89.2"
  ],
  [
   "Rank in category",
   "#3 of 102"
  ],
  [
   "GitHub",
   "expressjs/express"
  ],
  [
   "Last change",
   "Nov 19, 2026"
  ]
 ],
 "good": [
  "Version 5 needs Node.js 18 or newer. Versions 4 and 5 are both still supported; 2.x and 3.x get no fixes.",
  "Version 5 changed several things, so code and tutorials written for version 4 can break after an upgrade.",
  "Form and JSON data is not read until you add a reader such as express.json(); without it the data is simply missing."
 ],
 "checked_line": "Read by AgentGid from 14 official pages, card checked Nov 11, 2026; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/expressjs.png"
}