Skip to main content

A visual, non-linear chat interface where conversations are nodes on an infinite canvas

Project description

Canvas Chat

A visual, non-linear chat interface where conversations are nodes on an infinite canvas. Explore topics by branching, merging, and navigating your discussions as a directed acyclic graph (DAG).

Try It Online

No installation required! Try Canvas Chat at ericmjl--canvas-chat-fastapi-app.modal.run.

Bring your own API keys (configured in Settings).

Quick Start

Run Canvas Chat instantly with no installation:

uvx canvas-chat

Your browser will open automatically to the local server.

Features

  • Infinite Canvas: Pan, zoom, and navigate your conversations visually
  • Branching Conversations: Reply to any message to create a new branch
  • Highlight & Branch: Select text within any node to create a highlight excerpt node
  • Multi-Select & Merge: Select multiple nodes to combine context
  • Context Visualization: See which messages are included in your context
  • Auto-Layout: Automatically arrange nodes in a clean left-to-right hierarchy
  • Matrix Evaluation: Use /matrix <context> to create cross-product evaluation tables
  • LLM Committee: Use /committee <question> to consult multiple LLMs and synthesize answers
  • Web Research: Use /research <topic> to generate research reports via Exa
  • Web Search: Use /search <query> to search the web via Exa
  • Image Analysis: Upload, paste, or drag-and-drop images for multimodal AI analysis
  • Markdown & Math Rendering: Full markdown support with LaTeX math rendering (KaTeX) for inline \(...\) and display \[...\] math
  • Multiple LLM Providers: Support for OpenAI, Anthropic, Google, Groq, GitHub Models, and local models via Ollama
  • Local-First: All data stored in your browser (IndexedDB)
  • Export/Import: Save sessions as .canvaschat files

Configuration

Click the ⚙️ Settings button to add your API keys:

Keys are stored locally in your browser's localStorage.

Admin mode (enterprise)

For enterprise deployments where administrators control API keys server-side:

uvx canvas-chat --admin-mode

This reads model configuration from config.yaml and API keys from environment variables. Users don't need to configure anything - models are pre-configured and credentials are injected server-side.

See Admin Mode Setup for details.

Usage

  1. Start chatting: Type a message and press Enter
  2. Reply to a node: Click the ↩️ Reply button or click a node then type
  3. Branch from text: Select text within a node, then click 🌿 Branch to create a highlight node
  4. Multi-select: Cmd/Ctrl+Click multiple nodes to respond to all at once
  5. Auto-layout: Click 🔀 to automatically arrange all nodes
  6. Search the web: Type /search <query> to search via Exa
  7. Research a topic: Type /research <topic> to generate a research report
  8. Consult LLM committee: Type /committee <question> to get opinions from multiple LLMs
  9. Add images: Upload, paste (Ctrl/Cmd+V), or drag-and-drop images for AI analysis
  10. Create a matrix: Select one or more context nodes, type /matrix <context> to create an evaluation table
  11. Navigate: Drag the handle (⋮⋮) to move nodes, scroll to zoom, double-click canvas to fit content
  12. Export: Click 💾 to save your session as a .canvaschat file

Development

For contributors or local development:

Prerequisites

  • Python 3.11+
  • Pixi (recommended) or uv

Setup

git clone https://github.com/ericmjl/canvas-chat.git
cd canvas-chat
pixi install

Running

pixi run dev

Open your browser to the URL shown (usually http://127.0.0.1:7865).

Tech Stack

  • Backend: FastAPI
  • Frontend: HTMX + vanilla JavaScript + CSS
  • LLM: LiteLLM (multi-provider support)
  • Storage: IndexedDB (browser-local)

Browser compatibility

Canvas Chat works best on Chromium-based browsers (Chrome, Edge, Arc, Brave, etc.). Firefox and Safari have rendering issues with the SVG canvas that prevent full functionality.

License

MIT

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

canvas_chat-0.1.41.tar.gz (401.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

canvas_chat-0.1.41-py3-none-any.whl (232.5 kB view details)

Uploaded Python 3

File details

Details for the file canvas_chat-0.1.41.tar.gz.

File metadata

  • Download URL: canvas_chat-0.1.41.tar.gz
  • Upload date:
  • Size: 401.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for canvas_chat-0.1.41.tar.gz
Algorithm Hash digest
SHA256 dbad94e3eb94d40cae1b545fd4b1c36372f34deceddae866cf517e32a1bb4a08
MD5 2c9a96679f90f282d9f8aa1ccbce5ad2
BLAKE2b-256 7680973938a8846164c4a3acd191e5b14e8db7e078a2b6b532d4ea88fdd28706

See more details on using hashes here.

File details

Details for the file canvas_chat-0.1.41-py3-none-any.whl.

File metadata

  • Download URL: canvas_chat-0.1.41-py3-none-any.whl
  • Upload date:
  • Size: 232.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for canvas_chat-0.1.41-py3-none-any.whl
Algorithm Hash digest
SHA256 e009867b6cbe68d6920dee9c3e564c239914a154c64e55e7e04ebaf1d9490751
MD5 696372c7cea0897689291887158504e5
BLAKE2b-256 6bd209f906c20b46e76d38245935b74c25c941727bfb57ed451171a889334199

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page