Canvas LLM Extender

approved

by Pasi Saarinen

Let the OpenAI LLM / GPT add nodes to your canvas for you.

38 stars3,793 downloadsUpdated 2mo agoMIT
View on GitHub

You have to have your own OpenAI API key or local service!!

https://github.com/Phasip/obsidian-canvas-llm-extender/assets/592433/02eb0c85-510a-40d1-a930-e83ad29468da

Canvas LLM Extender

Let the OpenAI LLM add nodes to your canvas. Only works on text nodes for now, probably breaks when using other nodes.

Go to settings and configure your API key. Right click a node in your canvas and select LLM Extender and the plugin will automatically add a new outgoing edge to a new node. The text in the new node is generated by OpenAI based on your nearby (edge-wise) nodes

Suggested contributions (aka TODO)

  • Add support for other nodes
  • Verify use of sibling nodes as input to prompt
  • Support multiple prompt based actions
  • Limit number of tokens in output
  • Clean up code to be more javascriptic
  • Solve the stuff I used ts-ignore on
  • Handle errors
  • Install instructions, better readme, example video

State

Alpha - I wrote until it seems to work for me, and has not had any bugreports for a long time.

Build

apt install node-typescript
npm install
npm run build

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.