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 install express
yarn add express
pnpm add express
Import
import express from 'express';
Quick Example
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
| Package | express |
| Category | Framework |
| Weekly Downloads | 30M+ |
| License | MIT |
| Install | npm install express |
Related Packages
Fastify is a high-performance web framework for Node.js designed to be the fastest HTTP framework av…
Koa is a lightweight web framework for Node.js created by the same team behind Express. It was desig…
Hapi (originally Happy.js) is a rich framework for building applications and services on Node.js, cr…
NestJS is a progressive Node.js framework for building efficient, reliable, and scalable server-side…
Hono is an ultrafast, lightweight web framework designed to run on any JavaScript runtime including …
Browse npm Packages by Category
Explore our reference of 200 popular npm packages with install commands, examples, and quick-start guides.