An open, extensible orchestration layer for AI and workflow automation
DuraGraph provides a LangGraph Cloud-compatible API built with Event Sourcing and CQRS patterns for reliable, observable, and maintainable AI pipelines that can be self-hosted in enterprise environments.
Enable reliable, observable, and maintainable AI pipelines that feel natural for developersβbringing the power of LangGraph Cloud to self-hosted and enterprise environments with:
- API Compatibility: Drop-in replacement for LangGraph Cloud APIs
- Enterprise Ready: Self-hosted, compliant, secure
- Fault Tolerant: Event sourcing with reliable event delivery via outbox pattern
- Observable: Rich monitoring and workflow introspection
Get started with DuraGraph in minutes:
π View Documentation | π Quick Start Guide
Deploy DuraGraph to your preferred cloud platform:
# Clone the repository
git clone https://github.com/Duragraph/duragraph.git
cd duragraph
# Start all services with Docker Compose
docker-compose up -d
# Or use Task
brew install go-task/tap/go-task
task upVisit http://localhost:8080 for the API and http://localhost:5173 for the dashboard.
π Full Setup Guide
flowchart LR
client["Client SDKs / LangGraph Cloud clients"]
api[API Server - Go/Echo]
eventstore[(Event Store - PostgreSQL)]
nats[NATS JetStream]
engine[Graph Execution Engine]
dashboard[Svelte Dashboard]
client --> api
api --> eventstore
api --> engine
eventstore --> nats
nats --> dashboard
engine --> eventstore
π§ Architecture Details
- π LangGraph Cloud API Compatible - Drop-in replacement for existing LangGraph Cloud integrations
- π’ Self-Hosted - Full control over your data and infrastructure
- β‘ Event Sourcing & CQRS - Reliable, auditable workflow execution with event-driven architecture
- π Observable - Rich monitoring, tracing, and debugging tools with Prometheus metrics
- π§© Extensible - Custom graph execution engine with support for LLM nodes and tool execution
- π Visual Dashboard - Real-time workflow visualization with Server-Sent Events
- π³ Docker Ready - Easy deployment with Docker Compose or Kubernetes
- Getting Started - Installation and basic usage
- API Reference - Complete API documentation
- Architecture - System design and components
- Development Guide - Contributing and development
- Deployment - Production deployment guides
- Operations - Monitoring and maintenance
from langgraph_sdk import get_client
# Point to your DuraGraph instance
client = get_client(url="http://localhost:8080")
# Use exactly like LangGraph Cloud
assistant = await client.assistants.create(...)
thread = await client.threads.create()
run = await client.runs.create(
thread_id=thread["id"],
assistant_id=assistant["id"]
)duragraph/
βββ cmd/server/ # API server (Go)
βββ internal/
β βββ domain/ # Domain models (aggregates, entities, events)
β βββ application/ # Use cases (commands, queries, services)
β βββ infrastructure/ # External concerns (HTTP, persistence, messaging)
β βββ pkg/ # Shared utilities (errors, eventbus, uuid)
βββ dashboard/ # Svelte visualization dashboard
βββ website/ # Landing page (Vite/React)
βββ docs/ # Documentation (Fumadocs/Next.js)
βββ deploy/ # Docker, SQL migrations
βββ Taskfile.yml # Development task runner
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes and add tests
- Run tests:
task test - Open a Pull Request
π οΈ Development Guide
Licensed under the Apache License 2.0.
- Documentation: duragraph.dev/docs
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- LangGraph Cloud-compatible API
- Event sourcing with CQRS pattern
- Custom graph execution engine
- Outbox pattern for reliable event delivery
- PostgreSQL event store with NATS JetStream messaging
- Fumadocs documentation site
- Svelte dashboard for visualization
- Server-Sent Events streaming
- Enhanced LLM provider support (additional models)
- Advanced workflow patterns (parallel execution, subgraphs)
- Production Helm charts
- Multi-tenant support
- Workflow versioning and migration tools
π Full Roadmap
DuraGraph - Bringing enterprise-grade AI workflow orchestration to everyone.
