langgraphjs  by langchain-ai

Framework to build resilient language agents as graphs

created 1 year ago
1,846 stars

Top 24.0% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
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)
108
Issues (30d)
60
Star History
454 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Didier Lopes Didier Lopes(Founder of OpenBB), and
1 more.

langgraph by langchain-ai

2.1%
17k
Agent orchestration framework for building controllable agents
created 2 years ago
updated 1 day ago
Starred by Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), Carol Willing Carol Willing(Core Contributor to CPython, Jupyter), and
38 more.

langchain by langchain-ai

0.4%
113k
Framework for building LLM-powered applications
created 2 years ago
updated 1 day ago
Feedback? Help us improve.