LangChain

The most widely adopted Python framework for building LLM-powered agents and applications

Framework
PyPI
v1.4.2
147,170 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
92 /100 Excellent
Development Activity 100
Maintenance 100
Community 76
Maturity 52
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
85 /100 Excellent
Architecture 88
Code Quality 84
Innovation 85
Learning Curve 82

LangChain is a framework for building agents and LLM-powered applications, providing a pre-built agent architecture and a standard interface across model providers, embeddings, and vector stores. Agents are built on top of LangGraph for durable execution, streaming, human-in-the-loop workflows, and persistence, so teams get production-grade agent runtime behavior without needing to learn LangGraph directly for basic use cases.

The project ships as a monorepo of interoperable packages (langchain-core, provider integrations like langchain-openai and langchain-anthropic, langchain-text-splitters, and the top-level langchain package itself) so applications can swap models and vector stores without rewriting business logic. With over 140,000 GitHub stars and 16,000+ commits from nearly 4,000 contributors, it is one of the most actively maintained projects in the AI tooling ecosystem.

What You Get

  • A create_agent factory that builds LangGraph-backed agents with streaming, persistence, and human-in-the-loop support out of the box
  • A provider-agnostic chat model, embeddings, and tool-calling interface shared across dozens of integration packages
  • Composable middleware for agent behavior (state management, structured output, subagent orchestration)
  • A large ecosystem of first-party and community integrations for vector stores, retrievers, and model providers
  • Direct interoperability with LangGraph for teams that outgrow the high-level agent API and need custom orchestration

Common Use Cases

  • Building a customer-support or internal-tools chat agent that calls internal APIs as tools
  • Prototyping retrieval-augmented generation (RAG) pipelines over internal documents
  • Standardizing model access across a codebase so teams can A/B test or swap LLM providers without touching call sites
  • Building multi-step agent workflows that need durable execution and streaming responses in production

Under The Hood

Architecture - The langchain PyPI package lives at libs/langchain_v1 inside a large monorepo (langchain-core, langchain-text-splitters, dozens of libs/partners/* provider packages, and the legacy libs/langchain now published as langchain-classic). The top-level package is intentionally thin: langchain/agents/factory.py (~2,000 lines) implements create_agent, which assembles a chat model, tools, and middleware into a LangGraph StateGraph, delegating execution, streaming, and checkpointing to LangGraph rather than reimplementing an orchestration loop. Tech Stack - Python 3.10+, Pydantic v2 for schemas, LangGraph 1.2 as the execution runtime, and langchain-core for the shared model/tool/message abstractions; provider integrations (OpenAI, Anthropic, Google, etc.) are separate optional-dependency packages installed a la carte. Code Quality - the tests/unit_tests and tests/integration_tests trees are substantial (dozens of modules, plus a cassettes directory for recorded HTTP interactions and a benchmarks suite), ruff and mypy are enforced in CI via pyproject.toml dependency groups, and the codebase uses type hints and Pydantic models pervasively for public APIs. API Design - create_agent(model, tools=..., middleware=...) and init_chat_model("provider:model") are deliberately low-boilerplate entrypoints; the README advertises “under 10 lines of code” to a working agent, and the middleware system lets advanced users compose custom behavior without subclassing internals.

Used by 21 apps in this directory

Python
67%
Apache 2.0

Agent Control

AI Agents

314

An open-source runtime control plane for AI agents — define safety guardrails once, apply them across agents built on LangChain, CrewAI, Google ADK, or AWS Strands, and update controls without redeploying code.

View details
74
Repo Health
71
Technical
67
Dependency
Built with
Python 67%
TypeScript 32%
Updated 4 days ago
Python
89%
Apache 2.0

Apache Airflow

Data Engineering

46,995

Define, schedule, and monitor complex data workflows as Python code — with a powerful UI, 80+ provider integrations, and battle-tested scalability across thousands of production deployments.

View details
96
Repo Health
89
Technical
64
Dependency
Built with
Python 89%
Updated 4 days ago
Python
97%
MIT

auto-news

AI Assistants · Productivity

908

An AI-powered personal news aggregator that filters multi-source feeds through LLMs and delivers curated, noise-free summaries to your Notion workspace.

View details
43
Repo Health
53
Technical
66
Dependency
Built with
Python 97%
Updated 1 years ago
TypeScript
72%
MIT

Claude Context

AI Code Assistants · Mcp

12,573

An MCP server and VS Code extension by Zilliz that turns your entire codebase into semantically searchable context for Claude Code, Cursor, and Gemini CLI, using vector embeddings and Merkle-tree change detection.

View details
46
Repo Health
71
Technical
71
Dependency
Built with
TypeScript 72%
Python 13%
JavaScript 11%
Updated 2 months ago
Python
99%
MIT

deepagents

AI Agents · AI Development

29,818

The batteries-included Python agent harness — planning, sub-agents, filesystem, shell, memory, and skills bundled in, built on LangGraph.

View details
88
Repo Health
83
Technical
70
Dependency
Built with
Python 99%
Updated 4 days ago
TypeScript
75%
Apache 2.0

Fern

Developer Tools

3,787

Fern turns a single OpenAPI, AsyncAPI, or Protobuf definition into type-safe SDKs for nine languages and a hosted API documentation site, all from one CLI and one source of truth.

View details
90
Repo Health
86
Technical
66
Dependency
Built with
TypeScript 75%
Updated 4 days ago
Python
70%
Apache 2.0

GPT Researcher

AI Assistants · Productivity

29,650

The pioneering open-source autonomous AI agent that conducts deep, multi-source research and produces citation-backed reports exceeding 2,000 words — faster and more reliably than any human researcher.

View details
91
Repo Health
91
Technical
63
Dependency
Built with
Python 70%
TypeScript 18%
Updated 6 days ago
Python
69%
MIT

Langflow

AI Agents · AI Development

155,319

Build, test, and deploy AI agents and RAG workflows visually with native API and MCP server export.

View details
90
Repo Health
85
Technical
65
Dependency
Built with
Python 69%
TypeScript 22%
Updated 4 days ago
Python
45%
GPL 3.0

MaxKB

AI Development · Knowledge Management

22,882

Build enterprise-grade AI agents with RAG, workflows & multi-modal support

View details
92
Repo Health
68
Technical
66
Dependency
Built with
Python 45%
Vue 37%
TypeScript 17%
Updated 4 days ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers