Skip to main content

Real-time browser-based visualization for LangGraph workflows

Project description

LangGraph Viz

Real-time browser-based visualization for LangGraph workflows.

Debug and understand your LangGraph agents with live state inspection, graph visualization, and execution timeline.

Python 3.9+ License: MIT

Features

  • 🔴 Live Graph Visualization - See your workflow graph with real-time node highlighting
  • 📊 State Inspector - View full state and diffs at each execution step
  • ⏱️ Event Timeline - Scrub through execution history with playback controls
  • 🔌 Zero Config - Works with any compiled LangGraph app
  • 🚀 Minimal Overhead - Designed for development debugging

Installation

pip install langgraph-viz

Quick Start

from langgraph_viz import visualize
from your_app import app  # Your compiled LangGraph

# Context manager style - auto opens browser
with visualize(app) as viz_app:
    result = viz_app.invoke({"query": "Hello world"})

# Or start server manually
viz = visualize(app, auto_open=False)
viz.server.start()
# ... run your app ...
viz.server.stop()

Open http://localhost:8765 to see the visualization.

How It Works

  1. Wrap your app - visualize() wraps your LangGraph app to intercept execution events
  2. Start the server - A FastAPI server streams events via WebSocket
  3. View in browser - A React frontend renders the graph, timeline, and state

Configuration

visualize(
    app,
    port=8765,           # Server port (default: 8765)
    auto_open=True,      # Auto-open browser (default: True)
)

Requirements

  • Python 3.9+
  • LangGraph >= 0.0.1
  • A modern web browser

Development

# Clone the repo
git clone https://github.com/yourusername/langgraph-viz.git
cd langgraph-viz

# Install dev dependencies
pip install -e ".[dev]"

# Build frontend (requires Node.js)
cd frontend && npm install && npm run build && cd ..

# Run tests
pytest

License

MIT License - see LICENSE for details.

Project details


Download files

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

Source Distribution

langgraph_viz-0.1.0.tar.gz (902.6 kB view details)

Uploaded Source

Built Distribution

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

langgraph_viz-0.1.0-py3-none-any.whl (872.3 kB view details)

Uploaded Python 3

File details

Details for the file langgraph_viz-0.1.0.tar.gz.

File metadata

  • Download URL: langgraph_viz-0.1.0.tar.gz
  • Upload date:
  • Size: 902.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for langgraph_viz-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9229c22abe9a3364e1c0202327dc9e073f5b09e9ed226257a93b63b7974a0ad7
MD5 2d8b14c43421a48a06770d4ed6ddc8bd
BLAKE2b-256 263f3fec7e51ec431e3edfcba43a27f4e59e8c40b24def433b4f7013b704fc8a

See more details on using hashes here.

File details

Details for the file langgraph_viz-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: langgraph_viz-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 872.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for langgraph_viz-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5249104eda7f51c40fae2e42c8d40be39b1320e962e7942e415f3b0136777fb7
MD5 08001e36231dc3ec3e460a38a4f202f0
BLAKE2b-256 7d3d058d304fbb243a74a4f7aed90bd768dfab7964857c59fa47389384f7de94

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