Skip to content

bonsaedev/create-nrg

Repository files navigation

nrg-icon

npm package build status

create-nrg

Scaffold a new NRG project for Node-RED.

Usage

pnpm create @bonsae/nrg my-project
npm create @bonsae/nrg my-project
npx @bonsae/create-nrg my-project

The CLI will prompt you for:

  • Project name
  • First node name
  • Node category
  • Node color (hex, default #1A1A1A)
  • Node inputs (0 or 1)
  • Node outputs

Generated project structure

my-project/
├── .vscode/extensions.json
├── .husky/
├── .gitignore
├── .prettierrc.json
├── eslint.config.js
├── commitlint.config.js
├── package.json
├── tsconfig.json
├── vite.config.ts
└── src/
    ├── server/
    │   ├── index.ts
    │   ├── nodes/<node>.ts
    │   ├── schemas/<node>.ts
    │   └── tsconfig.json
    ├── locales/
    │   ├── labels/<node>/en-US.json
    │   └── docs/<node>/en-US.md
    ├── icons/
    └── examples/

License

MIT