Visualize LLM conversations as a navigable canvas
Project description
LLM Canvas
Visualize and navigate Large Language Model conversations like never before.
LLM Canvas allows you to programmatically create interactive, branching conversation trees. Build complex conversation structures, explore different response paths, and visualize tool calls in a beautiful web interface — all while maintaining complete privacy with local deployment.
📰 News
🎉 August 2025: LLM Canvas v0.1.1 released with improved branching API and enhanced web UI
🌟 Key Features
- 🌳 Branching Conversations: Create and explore multiple conversation paths from any message
- 🔧 Tool Call Visualization: See how your LLM uses tools with clear input/output flows
- 📦 Zero Dependencies: Self-contained with built-in web UI
🚀 Quick Start
Installation
pip install llm-canvas
llm-canvas server --port 8000
Basic Usage
from llm_canvas import CanvasClient
# Create a client and canvas
client = CanvasClient()
canvas = client.create_canvas("My Conversation", "Exploring LLM interactions")
# Add messages
user_msg_id = client.add_message(canvas.canvas_id, "What is machine learning?", "user")
client.add_message(
canvas.canvas_id,
"Machine learning is a subset of AI that enables computers to learn from data...",
"assistant",
parent_node_id=user_msg_id
)
Start Local Server
# Start the local server
llm-canvas server --port 8000
# Server starts at http://localhost:8000
# Create and view your canvases in the web interface
💡 What Makes LLM Canvas Special?
Git-Like Conversation Management
Just like Git manages code versions, LLM Canvas manages conversation versions:
- Branches: Multiple conversation paths within a single canvas
- Commits: Each message is committed to a branch
- Checkout: Switch between different conversation branches
- Merge: Explore different paths and outcomes
Advanced Use Cases
1. Conversation Branching
# Create different response paths
main_branch = canvas.checkout("main", create_if_not_exists=True)
main_branch.commit_message({"role": "user", "content": "Explain quantum computing"})
# Create alternative explanations
simple_branch = canvas.checkout("simple-explanation", create_if_not_exists=True)
simple_branch.commit_message({"role": "assistant", "content": "Quantum computing uses quantum mechanics..."})
technical_branch = canvas.checkout("technical-explanation", create_if_not_exists=True)
technical_branch.commit_message({"role": "assistant", "content": "Quantum computing leverages superposition and entanglement..."})
2. Tool Usage Visualization
# Visualize how LLMs use tools
client.add_message(canvas_id, [
{"type": "text", "text": "I'll check the weather for you."},
{"type": "tool_use", "id": "weather_001", "name": "get_weather", "input": {"location": "San Francisco"}}
], "assistant")
client.add_message(canvas_id, [
{"type": "tool_result", "tool_use_id": "weather_001", "content": '{"temperature": 72, "condition": "sunny"}'}
], "user")
🎯 Perfect For
- 🔬 AI Researchers: Analyze conversation patterns and model behavior
- 👨💻 LLM Developers: Debug and optimize chatbot interactions
- 📚 Educators: Teach AI concepts with visual examples
- 🚀 Startups: Prototype and demo conversational AI applications
- 🔒 Privacy-Conscious Users: Keep all data local and secure
📚 Examples & Documentation
Interactive Examples
Run the included examples to see LLM Canvas in action:
# Start the server first
llm-canvas server
# Then run examples (in a new terminal)
python -m examples.run_examples
# Or run specific examples:
python -m examples.hello_example # Basic conversation
python -m examples.weather_tool_example # Tool usage demo
python -m examples.vacation_planning_example # Conversation branching
python -m examples.investment_decision_example # Complex multi-branch scenario
Visit http://localhost:8000 to see all your canvases in the web interface!
Key Concepts
| Concept | Description | Like Git |
|---|---|---|
| Canvas | A workspace for LLM conversations | Repository |
| Branch | Linear conversation threads | Branch |
| Message | Individual conversation entries | Commit |
| Checkout | Switch between conversation paths | git checkout |
| Commit | Add messages to a branch | git commit |
📝 See detailed examples → examples/README.md
🛠️ Development
Local Development Setup
git clone https://github.com/LittleLittleCloud/llm_canvas.git
cd llm_canvas
# Install dependencies
pip install -e ".[server,dev]"
# Build frontend
cd web_ui && npm install && npm run build && cd ..
# Start development server
llm-canvas server --port 8000
Frontend Development
# Start backend server
llm-canvas server --port 8000
# Start frontend dev server (in another terminal)
cd web_ui
npm run dev # Runs on http://localhost:5173
🔒 Privacy & Data
Local-First Philosophy: Your conversations stay on your machine.
- ✅ No external API calls for the visualization server
- ✅ No data collection or telemetry
- ✅ No account required for local usage
- ✅ Full control over your conversation data
- ⚠️ Session-based storage (data lost on server restart)
Note: The local server does not persist data between sessions. For permanent storage, consider our cloud plans or implement your own persistence layer.
🌐 Deployment Options
Local Server (Free & Open Source)
- ✅ Complete privacy control
- ✅ All visualization features
- ❌ No data persistence
- ❌ Session-only storage
Cloud Server (Coming Soon)
- ✅ Permanent data storage
- ✅ Cross-device access
- ✅ Team collaboration
- ✅ Backup & recovery
🤝 Contributing
We welcome contributions! LLM Canvas is open source and community-driven.
- 🐛 Bug Reports: GitHub Issues
- 💡 Feature Requests: GitHub Discussions
- � Pull Requests: See our Contributing Guide
- 📖 Documentation: Help improve our docs
📄 License
MIT License - see LICENSE for details.
Built with ❤️ for the AI community
Transform your LLM conversations from linear logs into navigable, visual experiences. Start exploring today!
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_canvas-0.1.1.tar.gz.
File metadata
- Download URL: llm_canvas-0.1.1.tar.gz
- Upload date:
- Size: 575.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d444d25f4d89a2b04c5641a00a27a1b269a8b8a0bf3e1a0aedf53c5915cb3a3
|
|
| MD5 |
a9765340ba316b18f03575456bd5de4c
|
|
| BLAKE2b-256 |
0933920107faa1f1c5429605db858a38f385c2231688e9ee48766060ea0b9434
|
Provenance
The following attestation bundles were made for llm_canvas-0.1.1.tar.gz:
Publisher:
release.yml on LittleLittleCloud/llm-canvas
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_canvas-0.1.1.tar.gz -
Subject digest:
4d444d25f4d89a2b04c5641a00a27a1b269a8b8a0bf3e1a0aedf53c5915cb3a3 - Sigstore transparency entry: 403859998
- Sigstore integration time:
-
Permalink:
LittleLittleCloud/llm-canvas@9e058de3636fbf0a2a2348c2f06520215af7f862 -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/LittleLittleCloud
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@9e058de3636fbf0a2a2348c2f06520215af7f862 -
Trigger Event:
release
-
Statement type:
File details
Details for the file llm_canvas-0.1.1-py3-none-any.whl.
File metadata
- Download URL: llm_canvas-0.1.1-py3-none-any.whl
- Upload date:
- Size: 618.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf81abaf42af7e9952c53aab2e7c5b72a35e51829668a132660b92a9acb402dd
|
|
| MD5 |
2dd436398719b4dcfc1a693351ac6492
|
|
| BLAKE2b-256 |
6b796a1025f19dce29d736804d94e4fa7508bc9e169ebfebd47ba4570e0781cf
|
Provenance
The following attestation bundles were made for llm_canvas-0.1.1-py3-none-any.whl:
Publisher:
release.yml on LittleLittleCloud/llm-canvas
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_canvas-0.1.1-py3-none-any.whl -
Subject digest:
bf81abaf42af7e9952c53aab2e7c5b72a35e51829668a132660b92a9acb402dd - Sigstore transparency entry: 403860005
- Sigstore integration time:
-
Permalink:
LittleLittleCloud/llm-canvas@9e058de3636fbf0a2a2348c2f06520215af7f862 -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/LittleLittleCloud
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@9e058de3636fbf0a2a2348c2f06520215af7f862 -
Trigger Event:
release
-
Statement type: