
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Nodegenx is a CLI tool designed to generate a complete Node.js backend project structure quickly and efficiently. It provides ready-made templates with organized folder and file structures, helping developers save time and start building right away.
You can use npx to run Nodegenx without installing it globally:
npx nodegenx
Currently, Nodegenx provides one template with a pre-defined folder and file structure. More templates will be added in the future.
my-node-backend/
├── src/
│ ├── controllers/
│ ├── models/
│ ├── routes/
│ └── utils/
├── tests/
├── package.json
├── .gitignore
└── README.md
ecommerce/
│ .env
│ .eslintrc.js
│ .prettierrc
│ package.json
└───src
│ app.js
├───config
│ db.js
├───controllers
│ auth.controller.js
├───middlewares
│ auth.middleware.js
├───models
│ user.model.js
└───routes
auth.routes.js
js-jwt-rest/
│ .env
│ .eslintrc.js
│ .prettierrc
│ package.json
└───src
│ app.js
├───config
│ db.js
├───controllers
│ auth.controller.js
├───middlewares
│ auth.middleware.js
├───models
│ user.model.js
└───routes
auth.routes.js
js-rest-swagger/
│ .env
│ .eslintrc.js
│ package.json
└───src
│ app.js
├───config
│ db.js
└───swagger
swagger.js
linting/
│ .eslintrc.js.ejs
│ .prettierrc.ejs
node-oauth-rest/
│ .env
│ .eslintrc.js
│ .prettierrc
│ package.json
└───src
│ app.js
├───config
│ db.js
├───controllers
│ auth.controller.js
├───middlewares
│ auth.middleware.js
├───models
│ user.model.js
└───routes
auth.routes.js
node-prisma-rest/
│ .env
│ .eslintrc.js
│ package.json
├───prisma
│ schema.prisma
└───src
│ app.js
├───config
│ db.js
├───controllers
│ example.controller.js
├───middlewares
│ example.middleware.js
├───models
│ example.model.js
└───routes
example.routes.js
node-serverless-template/
│ .env
│ package.json
│ serverless.yml
└───src
├───functions
│ auth.js
├───middlewares
│ authMiddleware.js
├───models
│ user.js
└───utils
response.js
ts-event-driven/
│ .env
│ .eslintrc.js
│ package.json
│ tsconfig.json
└───src
│ app.ts
├───config
│ db.ts
├───controllers
│ sampleController.ts
├───events
│ ├───consumers
│ │ sampleConsumer.ts
│ └───producers
│ sampleProducer.ts
└───middlewares
loggerMiddleware.ts
ts-jwt-graphql/
│ .env
│ .eslintrc.js
│ .prettierrc
│ package.json
│ tsconfig.json
└───src
│ app.ts
├───config
│ db.ts
├───graphql
│ │ schema.ts
│ └───resolvers
│ user.resolver.ts
├───middlewares
│ auth.middleware.ts
└───models
user.model.ts
ts-microservice-template/
│ .env
│ .eslintrc.js
│ package.json
│ tsconfig.json
└───src
│ app.ts
├───controllers
│ user.controller.ts
├───middlewares
│ auth.middleware.ts
├───routes
│ user.routes.ts
└───services
authService.ts
userService.ts
Each template will come with its own detailed description and file/folder tree.
You can generate a project with or without specifying a template:
npx nodegenx
npx nodegenx --template <template-name>
Replace
<template-name>with any available template name.
Generate a project using the default template:
npx nodegenx
Generate a project using a specific template:
npx nodegenx --template basic-express
Nodegenx aims to be friendly, clear, and developer-focused, with an emphasis on a quick start experience.
This project is licensed under the MIT License.
FAQs
A CLI tool to generate Node.js backend project.
We found that nodegenx demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.