Framework30M+/wkMIT

express

Express is the most widely used web application framework for Node.js, providing a minimal and flexible set of features for building web and API servers. Create

Installation

npm
npm install express
yarn
yarn add express
pnpm
pnpm add express

Import

ESM
import express from 'express';

Quick Example

usage
const app = express();

app.get('/', (req, res) => {
  res.send('Hello World');
});

app.listen(3000, () => {
  console.log('Server running on port 3000');
});

About express

Express is the most widely used web application framework for Node.js, providing a minimal and flexible set of features for building web and API servers. Created by TJ Holowaychuk in 2010, it established many conventions still used across the Node.js ecosystem today. Express offers robust routing, middleware support, template engine integration, and static file serving out of the box. Its middleware architecture allows developers to compose request-handling pipelines from small reusable functions for tasks like authentication, logging, error handling, and body parsing. Express does not impose opinions about database choice, templating, or project structure, giving developers full control. The framework powers countless production APIs and web applications at companies of every size. While newer alternatives like Fastify offer better raw performance, Express remains the default starting point for most Node.js developers due to its massive ecosystem of middleware packages, extensive documentation, and the largest community of any Node.js framework.

Quick Facts

Packageexpress
CategoryFramework
Weekly Downloads30M+
LicenseMIT
Installnpm install express

Related Packages

Browse npm Packages by Category

Explore our reference of 200 popular npm packages with install commands, examples, and quick-start guides.