Visualize complex LLM conversation flows in infinite canvases
Project description
LLM Canvas
Visualize complex LLM conversation flows in infinite canvas.
As LLM applications evolve, conversation flows become increasingly complex. Conversations may branch into multiple paths, run in parallel, or require summarization across different threads. Managing and understanding these intricate conversation flows becomes a significant challenge in LLM ops.
LLM Canvas solves this by providing a powerful visualization tool for complex conversation flows. Create branching conversation trees, explore different response paths, and visualize tool interactions through an intuitive 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
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
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
)
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")
📝 More examples → examples/README.md
🤝 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
LLM Canvas: Story Behind
Check out the full story to learn about the inspiration and development journey of LLM Canvas.
📄 License
MIT License - see LICENSE for details.
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.2.2.tar.gz.
File metadata
- Download URL: llm_canvas-0.2.2.tar.gz
- Upload date:
- Size: 601.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 |
82ad36d9dc5cb79948cb87ddc57757b1f54f5564c426b22b898b6b0bcf5a368b
|
|
| MD5 |
75c530d47997c16e139d9c4e49d939b2
|
|
| BLAKE2b-256 |
0afba1551b8e505561964dc98eee8b944ac70b48db21078acf12bc6cc5d151b5
|
Provenance
The following attestation bundles were made for llm_canvas-0.2.2.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.2.2.tar.gz -
Subject digest:
82ad36d9dc5cb79948cb87ddc57757b1f54f5564c426b22b898b6b0bcf5a368b - Sigstore transparency entry: 453465473
- Sigstore integration time:
-
Permalink:
LittleLittleCloud/llm-canvas@5130a6fcae50ee3b8fb3696d1af46dfd440ddb63 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/LittleLittleCloud
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5130a6fcae50ee3b8fb3696d1af46dfd440ddb63 -
Trigger Event:
push
-
Statement type:
File details
Details for the file llm_canvas-0.2.2-py3-none-any.whl.
File metadata
- Download URL: llm_canvas-0.2.2-py3-none-any.whl
- Upload date:
- Size: 661.4 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 |
d2db1fa5634bc58df9a59930c2cd1f85005a15e8d3eefe8c2536fe18ed614156
|
|
| MD5 |
6b961d57ea628f9ebf43c34bd1a40b7e
|
|
| BLAKE2b-256 |
46b6af0cf9a34486869f84c1fa5b30526ae1999e71d16660b89ab45672895679
|
Provenance
The following attestation bundles were made for llm_canvas-0.2.2-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.2.2-py3-none-any.whl -
Subject digest:
d2db1fa5634bc58df9a59930c2cd1f85005a15e8d3eefe8c2536fe18ed614156 - Sigstore transparency entry: 453465480
- Sigstore integration time:
-
Permalink:
LittleLittleCloud/llm-canvas@5130a6fcae50ee3b8fb3696d1af46dfd440ddb63 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/LittleLittleCloud
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5130a6fcae50ee3b8fb3696d1af46dfd440ddb63 -
Trigger Event:
push
-
Statement type: