Node-RED Color Picker

raw JSON →
1.0.0 verified Mon Apr 27 auth: no javascript

A Node-RED node that stores a user-picked color in msg.color. Version 1.0.0, stable but limited to Node-RED ecosystem. Requires farbtastic dependency for the color picker UI. Not actively maintained.

error Error: Cannot find module 'farbtastic'
cause farbtastic is required but not installed
fix
Include farbtastic in your Node-RED environment, e.g., npm install farbtastic.
error Node type 'color' not found
cause Node not installed correctly
fix
Install node-red-color via Manage Palette or npm in the Node-RED user directory.
error TypeError: Cannot read property 'color' of undefined
cause Trying to use node outside Node-RED
fix
Only use within Node-RED, e.g., in a flow.
gotcha farbtastic dependency is not included in npm install
fix Manually ensure farbtastic is available (e.g., via <script> tag or bundling).
deprecated Node-RED nodes should be installed locally, not globally
fix Use npm install node-red-color in the Node-RED user directory (e.g., ~/.node-red).
breaking No exports or JavaScript API; only works as Node-RED node
fix Cannot be used outside Node-RED; it's a node for Node-RED flows.
npm install node-red-color
yarn add node-red-color
pnpm add node-red-color

Install the node, add it to a flow, configure a color, deploy, and see the color in msg.color.

// In Node-RED, install via Manage Palette or npm:
// npm install node-red-color
// Then add a 'color' node from the palette.
// Configure: select a color in the picker.
// Deploy. The node sets msg.color to the chosen color string.
// Example flow:
[{"id":"1","type":"color","name":"My Color"}]
// Output: msg.color = "#ff0000" (example)