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.2.tar.gz (1.1 MB 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.2-py3-none-any.whl (872.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langgraph_viz-0.1.2.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • 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.2.tar.gz
Algorithm Hash digest
SHA256 13da7ad4add21c26fdf0a80755bc1547eaf056dc6d90fedba8356223dbd76e5c
MD5 20b9299c75df2960ec6da23fc4d69361
BLAKE2b-256 4cb64b2278cdb4ced8653e3220312bcabf82ae9bff80790c902d8ffc225e1936

See more details on using hashes here.

File details

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

File metadata

  • Download URL: langgraph_viz-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 872.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cfb7cce11f5ef1ab14feb02cf2d7d16cc226b0719ec51e5e7ee9151591446c22
MD5 cdc5243e3bda340b798f6fa9ff973482
BLAKE2b-256 d0da770a41dcf860954bb29637a8a40612f6afbc3dd0dda0dccb81df4143d993

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