@kazuhitoyokoi/node-red-contrib-plugin-codecompletion
v0.1.1
Published
Code completion plugin for Node-RED's function nodes
Downloads
5
Maintainers
Readme
node-red-contrib-plugin-codecompletion
This plugin enables the code completion in the code editor of function nodes. Local LLM, Granite Code Model is used in the backend to generate JavaScript code. While typing the code manually, the editor will automatically suggest the generated code based on the existing code. The user can accept and insert the suggested code by simply pressing the Tab key.
Setting up
Since this plugin uses Ollama, users need to install it in advance.
For Windows and macOS
To set up the Ollama environment, you can use the installer provided on the following website.
https://ollama.com/download
For Linux
Run the following command in the terminal.
curl -fsSL https://ollama.com/install.sh | sh ollama serve
Demonstration
Generating FizzBuzz code
https://github.com/user-attachments/assets/4d13a1a2-1167-479d-9dd0-109c89e29158