Build nodes using modern javascript with the nrg cli!

You can now try nrg in this project template!

I would like you to try it out and give feedback!
Is there a node you can't built with it?

Besides enabling you to write nodes using modern js and in a modular way, it also helps with debugging. The builder creates sourcemaps for both client and server side, and prepare them to appear in the browser as if you were developing frontend components. No more virtual tabs when nodes are loaded!

You can easily debug your client and server side code:

1 Like

You can configure any node-red settings in the nrg.config.js. For example

module.exports = {
  version: "0.0.0",
  nodeRed: {
    logging: {
      console: {
        level: "debug",
      },
    },
  },
};

These are all the defaults for nrg config: nrg/defaults/nrg.json at main · AllanOricil/nrg · GitHub

The only dependencies you need in an nrg project are:

@allanoricil/nrg-cli and node-red

I'm going to make node-red a peer dependency of @allanoricil/nrg-cli so that the cli is the only thing you need.

The cli repo can be found here: GitHub - AllanOricil/nrg-cli: A CLI tool to quickly generate, build, and manage Node-RED nodes and plugins, empowering your development workflow.

1 Like