{"id":27178,"library":"node-red-color","title":"Node-RED Color Picker","description":"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.","status":"active","version":"1.0.0","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","node-red","color"],"install":[{"cmd":"npm install node-red-color","lang":"bash","label":"npm"},{"cmd":"yarn add node-red-color","lang":"bash","label":"yarn"},{"cmd":"pnpm add node-red-color","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"UI color picker widget used by the node","package":"farbtastic","optional":false}],"imports":[{"note":"Node-RED nodes should be installed locally or in the Node-RED user directory.","wrong":"npm install -g node-red-color","symbol":null,"correct":"npm install node-red-color"},{"note":"Node-RED nodes are not imported via JavaScript; they are loaded by Node-RED at startup.","wrong":"","symbol":"functionGlobalContext","correct":"// not applicable (Node-RED node)"},{"note":"Node-RED nodes must export a function that registers the node type with RED.","wrong":"require('node-red-color')","symbol":"RED.nodes.registerType","correct":"module.exports = function(RED) { RED.nodes.registerType('color', ColorNode); }"}],"quickstart":{"code":"// In Node-RED, install via Manage Palette or npm:\n// npm install node-red-color\n// Then add a 'color' node from the palette.\n// Configure: select a color in the picker.\n// Deploy. The node sets msg.color to the chosen color string.\n// Example flow:\n[{\"id\":\"1\",\"type\":\"color\",\"name\":\"My Color\"}]\n// Output: msg.color = \"#ff0000\" (example)","lang":"javascript","description":"Install the node, add it to a flow, configure a color, deploy, and see the color in msg.color."},"warnings":[{"fix":"Manually ensure farbtastic is available (e.g., via <script> tag or bundling).","message":"farbtastic dependency is not included in npm install","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use npm install node-red-color in the Node-RED user directory (e.g., ~/.node-red).","message":"Node-RED nodes should be installed locally, not globally","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Cannot be used outside Node-RED; it's a node for Node-RED flows.","message":"No exports or JavaScript API; only works as Node-RED node","severity":"breaking","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Include farbtastic in your Node-RED environment, e.g., npm install farbtastic.","cause":"farbtastic is required but not installed","error":"Error: Cannot find module 'farbtastic'"},{"fix":"Install node-red-color via Manage Palette or npm in the Node-RED user directory.","cause":"Node not installed correctly","error":"Node type 'color' not found"},{"fix":"Only use within Node-RED, e.g., in a flow.","cause":"Trying to use node outside Node-RED","error":"TypeError: Cannot read property 'color' of undefined"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}