@cyprnet/node-red-contrib-uibuilder-formgen
v0.5.41
Published
PortalSmith: Generate schema-driven uibuilder form portals from JSON
Maintainers
Readme
PortalSmith FormGen (uibuilder-formgen)
PortalSmith FormGen is a Node-RED contrib module that generates schema-driven uibuilder portals (HTML/JS) from a JSON schema. It is designed for no-build-step operation: generate → open in browser → submit back to Node-RED.
Website
CyprNet Solutions: https://www.cyprnetsolutions.com
Features
- Schema-driven forms: sections + fields + basic validation
- Export: JSON/CSV/HTML (client-side)
- Draft save/load: browser + file workflows
- Theme + branding: light/dark theme support; logo support (licensed)
- Results page: optional result rendering after HTTP submit
Requirements (dependencies)
- Node.js: 18+ (20.x recommended)
- Node-RED: 3.1+ (4.x recommended)
- node-red-contrib-uibuilder: v7.x
- Browser: modern Chrome/Firefox/Edge
Installation
Install into your Node-RED userDir:
cd ~/.node-red
npm install @cyprnet/node-red-contrib-uibuilder-formgenThen restart Node-RED.
Quick start
- Create a
uibuilderinstance (example URL:form-jobapp) and deploy. - Send a schema into
uibuilder-formgen(legacy Vue 2) oruibuilder-formgen-v3(Vue 3) asmsg.schema(or use the example flow). - Open
/uibuilder/<instance>/in your browser.
Important: the portal needs form.schema.json
Generated portals are a 3-file set that must stay together in the uibuilder instance’s served folder:
src/index.htmlsrc/index.jssrc/form.schema.json
If you copy a portal to another uibuilder instance (or commit/restore from git), make sure you copy all three. The portal loads the schema at runtime and will not work correctly if form.schema.json is missing.
Node differences (legacy vs v3)
uibuilder-formgen(legacy): generates portals using Vue 2 + Bootstrap 4uibuilder-formgen-v3: generates portals using Vue 3 + Bootstrap 5
The two portals are intentionally very similar in appearance; the difference is the runtime stack and long-term supportability.
To confirm which node generated a portal, open the generated portalsmith.runtime.json and check:
generatorNode:uibuilder-formgenoruibuilder-formgen-v3
Licensing (offline-first)
- Free (default): watermarked portal + default PortalSmith branding.
- Licensed (PRO): allows watermark removal and custom branding/logo (if enabled by your license features).
To apply a license, paste the license key provided by CyprNet into the shared portalsmith-license config node and reference it from your uibuilder-formgen nodes. Restart Node-RED after installing/updating the module.
Documentation & examples
- Offline user guide (packaged):
docs/user-guide.html - Example flow:
examples/portalsmith-formgen-example.json - Industry schemas:
examples/schemas/ - Schema Builder frontend files (uibuilder v7+):
examples/formgen-builder/src/index.htmlandexamples/formgen-builder/src/index.js - Schema Builder frontend files (legacy uibuilder 2.x):
examples/formgen-builder-uib2/src/index.htmlandexamples/formgen-builder-uib2/src/index.js
License
MIT. See LICENSE.
