Prototype to iterate on your markdown documents with LLM support.
Canvas is a prototype tool designed to facilitate iterative creation and enhancement of Markdown documents. Whether you're working on project documentation, notes, or any form of written content, Canvas might be able to help.
It basically mimics OpenAI's Canvas feature, allows it to run on your LLM of choice and adds a change/undo history.
demo.mp4
- Runs on local LLMs: Works on consumer hardware with e.g. Ollama.
- Undo History: Revert any change at any time.
- Real-Time Preview: See changes instantly as you edit your Markdown files.
Canvas connects to your local Ollama instance. The LLM is prompted with the current document contents encapsulated in <|canvas_start|>
and <|canvas_end|>
tags and instructed via the system prompt to re-generate the document with the requested transformation applied. The returned document is rendered in the interface.
Canvas is built using Vue.js and Marked. Most of the code is generated using aider on a Llama3.1 (405B/70B) model.
As a prototype, Canvas can only be used in dev mode at the moment.
git clone https://github.com/rti/canvas.git
cd canvas
npm install
npm run dev