Skip to content

rti/canvas

Repository files navigation

Canvas

Prototype to iterate on your markdown documents with LLM support.

Description

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

demo.mp4

Features

  • 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.

How does it work

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.

Tech Stack

Canvas is built using Vue.js and Marked. Most of the code is generated using aider on a Llama3.1 (405B/70B) model.

Installation and Development

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

About

Iterate on your markdown documents with LLM support.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published