← all repositories
langchain-ai/langgraphjs

Graph-based infrastructure for stubbornly stateful agents

Low-level graph infrastructure for TypeScript agents that remember, recover, and accept human oversight.

3.3k stars TypeScript AgentsLLMOps · Eval
langgraphjs
Velocity · 7d
+2.9
★ / day
Trend
steady
star history

What it does

LangGraphJS is a low-level orchestration framework for building stateful AI agents in TypeScript. It models agent logic as graphs—nodes represent steps, edges represent transitions—while handling the unglamorous but critical work of persisting state, resuming after crashes, and letting humans inspect or modify execution mid-flight. It is built by the LangChain team but can run standalone without the rest of the LangChain ecosystem.

The interesting bit

Instead of treating an agent as a linear script, LangGraphJS draws inspiration from Google’s Pregel and Apache Beam to structure agents as cyclic graphs with explicit state management. That means your agent can loop back, fork, or pause indefinitely without losing its place, much like a checkpointed distributed system rather than a chatty REST handler.

Key highlights

  • Durable execution with automatic crash recovery and resume-from-checkpoint behavior.
  • Human-in-the-loop interrupts that let you inspect and modify agent state mid-run.
  • Dual memory model: short-term working memory for reasoning and long-term persistence across sessions.
  • Optional but tight integration with LangSmith for tracing and LangChain for model plumbing.
  • Public API inspired by NetworkX, which should feel familiar if you’ve done graph work in Python.

Verdict

Worth a look if you are building long-running TypeScript agents that need to survive restarts, fork logic, or require audited decision points. Skip it if you just need a quick OpenAI wrapper or a simple chain of prompts.

Frequently asked

What is langchain-ai/langgraphjs?
Low-level graph infrastructure for TypeScript agents that remember, recover, and accept human oversight.
Is langgraphjs open source?
Yes — langchain-ai/langgraphjs is open source, released under the MIT license.
What language is langgraphjs written in?
langchain-ai/langgraphjs is primarily written in TypeScript.
How popular is langgraphjs?
langchain-ai/langgraphjs has 3.3k stars on GitHub and is currently holding steady.
Where can I find langgraphjs?
langchain-ai/langgraphjs is on GitHub at https://github.com/langchain-ai/langgraphjs.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.