langgraphjs  by langchain-ai

Framework to build resilient language agents as graphs

Created 2 years ago
2,770 stars

Top 16.8% on SourcePulse

GitHubView on GitHub
Project Summary

LangGraph.js is a low-level JavaScript framework for building controllable, resilient language agents orchestrated as graphs. It targets developers seeking to create complex, long-running AI agents with custom architectures, memory, and human-in-the-loop capabilities, offering enhanced reliability and extensibility over simpler LLM application frameworks.

How It Works

LangGraph enables agent orchestration by defining agent execution as a stateful graph. This approach allows for custom architectures, persistent context for long-running workflows, and fine-grained control over agent actions through moderation and human-in-the-loop approvals. It supports first-class streaming of tokens and intermediate steps, providing real-time visibility into agent reasoning.

Quick Start & Requirements

  • Install: npm install @langchain/langgraph @langchain/core
  • Example: npx create-agent-chat-app@latest for a full-stack setup with prebuilt agents and frontend options.
  • Documentation: https://langchain.com/docs/langgraph

Highlighted Details

  • Used in production by companies like Replit, Uber, LinkedIn, and GitLab.
  • Offers prebuilt agents (ReAct, Memory, Research, Retrieval) and frontend integration (Next.js, Vite).
  • Provides first-class streaming support for tokens and intermediate steps.
  • Integrates with LangSmith for observability and LangGraph Platform for deployment.

Maintenance & Community

  • Developed by LangChain Inc.
  • Resources include LangChain Academy, tutorials, templates, how-to guides, and API reference.

Licensing & Compatibility

  • MIT License.
  • Compatible with commercial and closed-source applications.

Limitations & Caveats

The framework is a low-level orchestration tool, requiring developers to build custom agents from primitives, which may involve a steeper learning curve compared to higher-level abstractions.

Health Check
Last Commit

1 day ago

Responsiveness

1 day

Pull Requests (30d)
117
Issues (30d)
10
Star History
153 stars in the last 30 days

Explore Similar Projects

Starred by Eric Zhu Eric Zhu(Coauthor of AutoGen; Research Scientist at Microsoft Research), Elvis Saravia Elvis Saravia(Founder of DAIR.AI), and
8 more.

langgraph by langchain-ai

1.9%
29k
Agent orchestration framework for building controllable agents
Created 2 years ago
Updated 1 day ago
Feedback? Help us improve.