langgraphjs  by langchain-ai

Framework to build resilient language agents as graphs

Created 1 year ago
2,231 stars

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

13 hours ago

Responsiveness

1 day

Pull Requests (30d)
38
Issues (30d)
11
Star History
94 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

1.1%
4k
AgentOS for building AI agents and facilitating multi-agent cooperation
Created 11 months ago
Updated 5 hours ago
Starred by Elvis Saravia Elvis Saravia(Founder of DAIR.AI), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
7 more.

langgraph by langchain-ai

1.3%
21k
Agent orchestration framework for building controllable agents
Created 2 years ago
Updated 13 hours ago
Feedback? Help us improve.