@kazuhitoyokoi/node-red-contrib-plugin-codecompletion 0.1.1

Code completion plugin for Node-RED's function nodes

npm install @kazuhitoyokoi/node-red-contrib-plugin-codecompletion

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.

fizzbuzz

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

Node Info

Version: 0.1.1
Updated 8 months, 2 weeks ago
License: Apache-2.0
Rating: 5.0 6

Categories

Actions

Rate:

Downloads

3 in the last week

Keywords

  • node-red
  • codecompletion

Maintainers