Observed since 20 Oct, 20:05 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A CLI tool to generate a Node.js app by 4Brains Technologies
A comprehensive CLI tool to streamline the generation and management of Node.js applications by 4Brains Technologies.
To install the 4Brains Node Generator globally, use the following command:
npm install -g 4brains-node-generator
node-app init <projectName>Initialize a new Node.js project with the specified name.
node-app init my-project
node-app add-api <endpointName>Add a new API endpoint to your project.
node-app add-api users
node-app add-mongoIntegrate MongoDB into your project. This command sets up the necessary MongoDB configuration.
node-app add-mongo
node-app add-mongo-schema <schemaName>Create a new MongoDB schema. You will be prompted to enter field details for the schema.
node-app add-mongo-schema User
node-app add-loginAdd a login template to an existing route in your project. You will be prompted to select a route and a model, and then enter the login fields.
node-app add-login
node-app add-mongo-insertAdd a template for inserting data into a MongoDB collection. This command allows you to easily create routes for data insertion.
node-app add-mongo-insert
node-app add-mongo-updateAdd a template for updating data in a MongoDB collection. This facilitates creating routes for updating documents.
node-app add-mongo-update
node-app add-mongo-readAdd a template for reading data from a MongoDB collection, helping you to quickly set up read operations.
node-app add-mongo-read
node-app add-mongo-deleteAdd a template for deleting data from a MongoDB collection, making it easy to handle deletion operations.
node-app add-mongo-delete
node-app add-socketIntegrate Socket.io into your project for real-time communication capabilities.
node-app add-socket
node-app add-websocketAdd native WebSocket support to your project.
node-app add-websocket
node-app add-serialportIntegrate SerialPort functionality into your project. This command does the following:
.env.development and .env.production with SERIALPORT_PATH and BAUDRATEindex.jsserialport and @serialport/parser-readlinenode-app add-serialport
Once added, your project will automatically initialize the serial port with the specified configuration and log incoming data.
Example incoming data log:
Received data: <data from serial device>
When you run the command to add a MongoDB schema, you will be prompted to enter the field details.
node-app add-mongo-schema User
When you run the command to add a login template, you will be prompted to select a route and a model, and then enter the login fields.
node-app add-login
When you add WebSocket integration, it will automatically be added to your project.
node-app add-websocket
To use req.wss in your route endpoints, you can access the WebSocket server as follows:
router.get("/some-endpoint", (req, res) => {
req.wss.clients.forEach((client) => {
if (client.readyState === WebSocket.OPEN) {
client.send("Hello, client!");
}
});
res.send("Message sent to all WebSocket clients.");
});
When you add Socket.io integration, it will automatically be added to your project.
node-app add-socket
To use req.io in your route endpoints, you can access the Socket.io server as follows:
router.get("/some-endpoint", (req, res) => {
req.io.emit("message", "Hello, Socket.io clients!");
res.send("Message sent to all Socket.io clients.");
});
If you enter an invalid command, you will see the following message:
Unknown command. Use -h or --help for help.
You can also use -h or --help to get help information.
node-app -h
node-app --help
This project is licensed under the ISC License.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 3.5.1Registry latest | 12 Jun 2025 | 1 | |
| 3.5.0 | 12 Jun 2025 | 1 | |
| 3.4.7 | 22 Jul 2024 | 1 | |
| 3.4.6 | 22 Jul 2024 | 1 | |
| 3.4.5 | 22 Jul 2024 | 1 | |
| 3.4.3 | 22 Jul 2024 | 1 | |
| 3.4.2 | 22 Jul 2024 | 1 | |
| 3.4.1 | 22 Jul 2024 | 1 | |
| 3.4.0 | 22 Jul 2024 | 1 | |
| 3.3.9 | 22 Jul 2024 | 1 | |
| 3.3.8 | 22 Jul 2024 | 1 | |
| 3.3.7 | 22 Jul 2024 | 1 | |
| 3.3.6 | 22 Jul 2024 | 1 | |
| 3.3.5 | 22 Jul 2024 | 1 | |
| 3.3.4 | 22 Jul 2024 | 1 | |
| 3.3.3 | 16 Jul 2024 | 1 | |
| 3.3.2 | 16 Jul 2024 | 1 | |
| 3.3.1 | 16 Jul 2024 | 1 | |
| 3.3.0 | 16 Jul 2024 | 1 | |
| 3.2.9 | 16 Jul 2024 | 1 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 20:05 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:6ef8e7ac30e40cb3badb58f82e5a58c1d661bc09eee9e1d3ee7aa2d2d02ce1f2