langgraphjs  by langchain-ai

Framework to build resilient language agents as graphs

Created 1 year ago
2,079 stars

Top 21.4% 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

2 days ago

Responsiveness

1 day

Pull Requests (30d)
109
Issues (30d)
41
Star History
142 stars in the last 30 days

Explore Similar Projects

Starred by Andrew Ng Andrew Ng(Founder of DeepLearning.AI; Cofounder of Coursera; Professor at Stanford), Thomas Wolf Thomas Wolf(Cofounder of Hugging Face), and
4 more.

ag2 by ag2ai

0.9%
4k
AgentOS for building AI agents and facilitating multi-agent cooperation
Created 10 months ago
Updated 2 days ago
Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Didier Lopes Didier Lopes(Founder of OpenBB), and
6 more.

langgraph by langchain-ai

1.5%
19k
Agent orchestration framework for building controllable agents
Created 2 years ago
Updated 23 hours ago
Feedback? Help us improve.