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.1.tar.gz (273.2 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.1-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langgraph_viz-0.1.1.tar.gz
  • Upload date:
  • Size: 273.2 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.1.tar.gz
Algorithm Hash digest
SHA256 dfa3259d2d6e953ebd10290ea4c6758eda18d1d380688f66bd519543540f7bee
MD5 26827fcd16a8bf8bc65654707e2d1749
BLAKE2b-256 8600129844d560275f554b2bd91756c2a39bc955b4de20886b587c3207982363

See more details on using hashes here.

File details

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

File metadata

  • Download URL: langgraph_viz-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f250fa5ec2f66380098f95f67b12767e123845fd5fe964689089cd8e5298f5bf
MD5 9f59eee0898ed5097246c08a6b61128f
BLAKE2b-256 b8b8fd6e972cdc2249c505dbc72d2ff498ad9a4c654f393e7ec4ae0c61118145

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