LangGraph

A low-level orchestration framework for building stateful, multi-actor LLM agents as graphs

Framework
PyPI
v1.2.17
43,796 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
92 /100 Excellent
Development Activity 100
Maintenance 100
Community 76
Maturity 52
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
76 /100 Good
Architecture 88
Code Quality 82
Innovation 80
Learning Curve 55

LangGraph lets you build resilient, stateful agent applications by modeling them as graphs of nodes and edges rather than linear chains. Each node is a function or LLM call that reads and writes a shared state object, while conditional edges route execution based on that state — giving you explicit control over branching, looping, retries, and human-in-the-loop interrupts that ad-hoc prompt chaining struggles to express cleanly.

Built and maintained by the LangChain team but usable independently of LangChain, LangGraph adds durable execution (checkpointing state to memory, SQLite, or Postgres so a run can pause and resume), first-class support for multi-agent systems, and streaming of intermediate steps/tokens. A companion CLI and SDK let you package a graph as a deployable API server.

What You Get

  • A graph-based execution model (StateGraph) with typed shared state, nodes, and conditional edges
  • Durable execution via pluggable checkpointers (in-memory, SQLite, Postgres) so runs can pause, resume, and recover from failure
  • Built-in support for human-in-the-loop interrupts and time travel/replay of past states
  • First-class multi-agent patterns (supervisor, hierarchical, swarm) via subgraphs
  • Streaming of intermediate node outputs and LLM tokens for responsive UIs
  • A CLI and SDK (langgraph-cli, langgraph-sdk) for packaging and serving a graph as an API

Common Use Cases

  • Building customer-support or coding agents that need to pause for human approval mid-task
  • Orchestrating multi-agent systems where a supervisor delegates to specialist sub-agents
  • Implementing long-running workflows that must survive process restarts (durable execution)
  • Adding explicit retry/branching logic to LLM pipelines that plain chains can’t express

Under The Hood

Architecture - LangGraph compiles a declared StateGraph (nodes + conditional edges over a typed state schema) into a Pregel-style execution engine (langgraph/pregel/) that runs nodes in superstep rounds, propagating state updates through channels (langgraph/channels/) and persisting checkpoints between steps so execution can be paused, replayed, or resumed from any point. Tech Stack - Modern Python (3.10+) built on langchain-core for LLM/message primitives, Pydantic v2 for state schemas, and split into companion packages (langgraph-checkpoint, langgraph-checkpoint-postgres/-sqlite, langgraph-sdk, langgraph-prebuilt, langgraph-cli) managed together in this monorepo via uv and Hatchling. Code Quality - The libs/langgraph/tests directory is extensive, covering deprecation, retries, time-travel, streaming transformers, remote graphs, and managed values, and the project carries an AGENTS.md/CLAUDE.md contributor guide, reflecting mature engineering discipline for a fast-moving project. API Design - The core StateGraph/add_node/add_edge/compile surface is small and composable, though the full mental model (channels, reducers, checkpointers, superstep semantics) takes real study; prebuilt helpers like create_react_agent in langgraph-prebuilt flatten the learning curve for common agent patterns.

Used by 30 apps in this directory

Python
97%
MIT

local-deep-researcher

AI Assistants · AI Development

9,387

A fully local web research assistant that iteratively searches, summarizes, and refines markdown reports using any Ollama or LMStudio model—no cloud or API keys required.

View details
49
Repo Health
74
Technical
76
Dependency
Built with
Python 97%
Updated 1 weeks ago
Python
45%
GPL 3.0

MaxKB

AI Development · Knowledge Management

23,022

Build enterprise-grade AI agents with RAG, workflows & multi-modal support

View details
92
Repo Health
68
Technical
66
Dependency
Built with
Python 45%
Vue 37%
TypeScript 17%
Updated 2 days ago
TypeScript
56%
MIT

open-notebook

AI Assistants · Note Taking

40,513

A privacy-first, self-hosted AI research notebook with 18+ model providers, multi-speaker podcast generation, and full REST API—your open-source alternative to Google Notebook LM.

View details
89
Repo Health
84
Technical
71
Dependency
Built with
TypeScript 56%
Python 42%
Updated 5 days ago
TypeScript
56%
MIT

open-notebook

AI Assistants · Note Taking

40,513

A privacy-first, self-hosted AI research notebook with 18+ model providers, multi-speaker podcast generation, and full REST API—your open-source alternative to Google Notebook LM.

View details
89
Repo Health
84
Technical
71
Dependency
Built with
TypeScript 56%
Python 42%
Updated 5 days ago
Python
73%
AGPL 3.0

OpenViking

AI Development · AI Memory · Databases

40,705

An open-source context database that gives AI agents a unified filesystem for memory, resources, and skills with hierarchical tiered retrieval.

View details
85
Repo Health
75
Technical
64
Dependency
Built with
Python 73%
TypeScript 12%
Rust 11%
Updated yesterday
Python
49%
Other

Arize Phoenix

Analytics · Devops · Monitoring

11,976

Open-source AI observability platform for tracing, evaluating, and debugging LLM applications with built-in intelligence and MCP support.

View details
92
Repo Health
88
Technical
67
Dependency
Built with
Python 49%
TypeScript 43%
Updated yesterday
Python
55%
Other

PostHog

Ab Testing Experimentation · Analytics · Developer Tools

40,397

The all-in-one open source product platform combining analytics, session replay, feature flags, error tracking, AI observability, and a built-in data warehouse in a single self-hostable stack.

View details
92
Repo Health
80
Technical
65
Dependency
Built with
Python 55%
TypeScript 36%
Updated yesterday
Python
55%
Other

PostHog

Ab Testing Experimentation · Analytics · Developer Tools

40,397

The all-in-one open source product platform combining analytics, session replay, feature flags, error tracking, AI observability, and a built-in data warehouse in a single self-hostable stack.

View details
92
Repo Health
80
Technical
65
Dependency
Built with
Python 55%
TypeScript 36%
Updated yesterday
Python
71%
Apache 2.0

SurfSense

AI Assistants · Search

16,586

The open-source, unlimited NotebookLM alternative with real-time collaboration, a desktop app, and no vendor lock-in.

View details
88
Repo Health
71
Technical
66
Dependency
Built with
Python 71%
TypeScript 27%
Updated yesterday

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers