JavaScript server-side/backend web framework for node.js

Express.js, or simply Express, is a back end web application framework for Node.js, released as free and open-source software under the MIT License. It is designed for building web applications and APIs. … Wikipedia
Factsheet
Original author TJ Holowaychuk
Developers OpenJS Foundation and others
Initial release 16 November 2010; 15 years ago (2010-11-16)
Factsheet
Original author TJ Holowaychuk
Developers OpenJS Foundation and others
Initial release 16 November 2010; 15 years ago (2010-11-16)
🌐
Express.js
expressjs.com › en › starter › generator.html
Express application generator
Use the application generator tool, express-generator, to quickly create an application skeleton. You can run the application generator with the npx command (available in Node.js 8.2.0). ... For earlier Node versions, install the application ...
🌐
npm
npmjs.com › package › express-generator
express-generator - npm
Express' application generator. Latest version: 4.16.1, last published: 7 years ago. Start using express-generator in your project by running `npm i express-generator`. There are 34 other projects in the npm registry using express-generator.
      » npm install express-generator
    
Published   May 03, 2019
Version   4.16.1
Author   TJ Holowaychuk
🌐
GitHub
github.com › expressjs › generator
GitHub - expressjs/generator: Express' application generator
$ npm install -g express-generator · You can also run the application generator with the npx command (available since Node.js 8.2.0). $ npx express-generator · The quickest way to get started with express is to utilize the executable express(1) ...
Starred by 1.9K users
Forked by 552 users
Languages   JavaScript 94.5% | EJS 2.4% | Pug 0.8% | Twig 0.7% | Handlebars 0.4% | HTML 0.3%
🌐
npm
npmjs.com › package › express
express - npm
Installation is done using the npm install command: ... Follow our installing guide for more information. ... The quickest way to get started with express is to utilize the executable express(1) to generate an application as shown below:
      » npm install express
    
Published   Dec 01, 2025
Version   5.2.1
Author   TJ Holowaychuk
🌐
npm
npmjs.com › package › generator-express
generator-express - npm
A nodejs express generator for Yeoman. Latest version: 2.17.2, last published: 6 years ago. Start using generator-express in your project by running `npm i generator-express`. There are 3 other projects in the npm registry using generator-express.
      » npm install generator-express
    
Published   Jun 12, 2019
Version   2.17.2
Author   petecoop
🌐
npm
npmjs.com › package › express-generator-typescript
express-generator-typescript - npm
Latest version: 2.7.4, last published: 22 days ago. Start using express-generator-typescript in your project by running `npm i express-generator-typescript`. There are no other projects ...
      » npm install express-generator-typescript
    
Published   Nov 10, 2025
Version   2.7.4
Author   sean maxwell
🌐
Reddit
reddit.com › r/learnprogramming › is the express generator outdated?
r/learnprogramming on Reddit: Is the Express Generator outdated?
September 28, 2023 -

I'm currently doing The Odin Project in which I'm now learning about the Express framework. Multiple sources (The Odin Project, MDN Docs, Express Docs) advise to use the Express Generator to quickly generate a new app skeleton.

However, I have a feeling that this is not the way you do it nowadays. A few reasons why I have that feeling:

  • The Express Generator Github Repo hasn't been updated for over a year on any branch

  • When I used it to generate a new app and installed the dependencies, I got a warning saying there are multiple severe vulnerabilities (because of outdated packages?) which I only managed to get rid of by executing npm audit fix --force multiple times, which does not seem to be the way it should be (probably connected to the first reason)

  • The Express Generator package has only about 9000 weekly downloads according to its npm page, while Express itself has almost 30 million weekly downloads

So now I'm wondering if there is an alternative to Express Generator that everybody is using nowadays? Or does everybody just set up everything manually? I couldn't find anything useful regarding that question on the internet. Thanks in advance.

Top answer
1 of 2
6
For anyone who stumbles upon this post and wants an answer: I asked my question in the The Coding Den 's Discord Server and got the following answer which addressed my three points and convinced me to continue using the Express Generator without worrying too much: the generator wouldn't need to change significantly unless there was a bug, or the underlying framework also changes significantly (which has not occurred in many years) that's unfortunately typical of many node.js packages, you can certainly investigate exactly what the vulnerabilities are, but it doesn't usually indicate much in the node.js realm you only need to download the generator once per project; you need to download express once per deploy (and projects can be deployed hundreds or thousands of times) a counter point; what does "outdated" mean? if the official docs continue to make use of it, then there isn't really much of a reason to think they don't encourage use of it
2 of 2
1
On July 1st, a change to Reddit's API pricing will come into effect. Several developers of commercial third-party apps have announced that this change will compel them to shut down their apps. At least one accessibility-focused non-commercial third party app will continue to be available free of charge. If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options: Limiting your involvement with Reddit, or Temporarily refraining from using Reddit Cancelling your subscription of Reddit Premium as a way to voice your protest. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
Top answer
1 of 3
10

My understanding is:

  • The express package is the framework that exposes functionalities you can use in your code
  • The express-generator package a utility that provides a command-line tool you can use to scaffold your project - ie create boilerplate folder structure, files and code.

As part of the boiler plate files is a package.json file defining the dependencies for your project - ie npm packages that you will need for your project. The express package is listed there.

Knowing the npm install instruction (run with current working directory set to project folder containing the package.json) will "install" all dependencies listed in package.json into your project folder to make them available to your application, it would be sufficient to do:

  • npm install express-generator -g
  • npm install
2 of 3
2

This answer refers to 'express' v4 on Windows. I don't know what the behavior was with express 3 or less.

0) open a cmd prompt as administrator

1) install express-generator globally;

npm install -g express-generator

2) generate the boilerplate files in your chosen directory, for example

express myApp

3) cd to the myApp folder, where you will find the package.json (+ your main app.js file, + other folders)

4) Finally install 'express' local to your app folder (+ any other dependencies as defined in package.json)

npm install

Notes: the express you are installing in step 4) refers to the set of javascript files which form part of the express web framework, to be used and referenced by your own app; the express referred to in step 2) is actually the express-generator cmd line which you installed globally in step 1).

As for my supplementary question, npm init is used to create a package.json file where you respond to prompts, npm init -y creates the package.json automatically with default values, in either case it is not related to express at all.

If you want to build your project from scratch without boilerplate files / folders, first npm init, then npm install --save express, this installs express locally to your app, the --save option adds express as a dependency in your package.json.

Bottom line, to use the express web framework, you don't have to install express-generator, but you must install express. And if you work on, say, 3 apps which use express, the easiest thing to do is to install express 3 times locally to each app.

🌐
SitePoint
sitepoint.com › blog › javascript › create new express.js apps in minutes with express generator
Create New Express.js Apps in Minutes with Express Generator
November 13, 2024 - This installs the Express generator as a global package, allowing you to run the express command in your terminal: ... This creates a new Express project called myapp, which is then placed inside of the myapp directory: ... If you’re unfamiliar with npm, it’s the default Node.js package manager.
Find elsewhere
🌐
GeeksforGeeks
geeksforgeeks.org › node.js › what-is-express-generator
What is Express Generator ? - GeeksforGeeks
July 23, 2025 - Express Generator is a command-line tool for quickly creating an Express.js application skeleton, providing a structured foundation with pre-configured settings, middleware, and directories, enabling rapid development of web applications.
🌐
SAP
developers.sap.com › tutorials › basic-nodejs-application-create..html
Create a Basic Node.js Application with Express Generator | SAP Tutorials
npx express-generator --view=jade ... packages will be saved locally as well. Install the tool: shell · Copy · npm install -g express-generator ·...
🌐
npm
npmjs.com › package › express-app-generator
express-app-generator - npm
Genrate node app with express with simple routing. Latest version: 1.0.6, last published: 5 years ago. Start using express-app-generator in your project by running `npm i express-app-generator`. There are no other projects in the npm registry using express-app-generator.
      » npm install express-app-generator
    
Published   Nov 18, 2020
Version   1.0.6
Author   Hardeep Singh
🌐
freeCodeCamp
forum.freecodecamp.org › t › using-express-generator › 415508
Using express-generator - The freeCodeCamp Forum
August 15, 2020 - I’m reading the Node-Express docs on MDN and when I’m trying to follow the “Installing the express application generator” section, I’m getting an integrity verification failure… npm ERR! code EINTEGRITY npm ERR! errno E…
🌐
npm
npmjs.com › search
keywords:express-generator - npm search
This is a simple package which utilizes the official express-generator package as a base, and then converts the generated project into a TypeScript equivalent.
🌐
GitHub
github.com › luiztools › express-generator
GitHub - luiztools/express-generator: Express' application generator
Express' application generator (LuizTools version, EJS only). $ npm install -g https://github.com/luiztools/express-generator.git
Starred by 8 users
Forked by 5 users
Languages   JavaScript 94.3% | EJS 4.9%
🌐
GitHub
github.com › seanpmaxwell › express-generator-typescript
GitHub - seanpmaxwell/express-generator-typescript: Create a new express app similar to express-generator but with TypeScript
If you want an example of how to do authentication in expressjs with json-web-tokens you can refer to this sample project here. $ Just use 'npx' Or $ npm install -g express-generator-typescript
Starred by 937 users
Forked by 87 users
Languages   TypeScript 77.1% | JavaScript 15.8% | HTML 5.8% | CSS 1.3%
🌐
npm
npmjs.com › package › generator-express-crud
generator-express-crud - npm
A NPX tool that allows to the developer to deploy fast backend apps only passing a few arguments, like the port, url database or entity model in yaml format. Latest version: 0.5.3, last published: 3 years ago.
      » npm install generator-express-crud
    
Published   Oct 17, 2022
Version   0.5.3
Author   dsancalm