langchain-ai /langchainjs

The agent engineering platform

★ 18,344⑂ 3,484👁 94⑃ 8,364● 3,016▤ 1,316
TypeScriptMITCreated 2023-02-06docs.langchain.com/langchain/
下载:@langchain/[email protected]@langchain/[email protected] ↓0.2.152026-11-13
+0
日增长
18,344
stars
3,484
forks
94
watchers
8,364
prs
3,016
issues
1,316
releases

README

The agent engineering platform.


!npm  

LangChain is a framework for building LLM-powered applications. It helps you chain together interoperable components and third-party integrations to simplify AI application development — all while future-proofing decisions as the underlying technology evolves.

 [!TIP]
 Just getting started? Check out Deep Agents — a higher-level package built on LangChain for agents that have built-in capabilities for common usage patterns such as planning, subagents, file system usage, and more.

Documentation: To learn more about LangChain, check out the docs.

If you're looking for more advanced customization or agent orchestration, check out LangGraph.js, our framework for building agents and controllable workflows.

For an equivalent Python library, check out LangChain.

To help you ship LangChain apps to production faster, check out LangSmith, a unified developer platform for building, testing, and monitoring LLM applications.

 ⚡️ Quick Install

You can use npm, pnpm, or yarn to install LangChain.js

npm install -S langchain or pnpm install langchain or yarn add langchain

 🚀 Why use LangChain?

LangChain helps developers build applications powered by LLMs through a standard interface for agents, models, embeddings, vector stores, and more.

Use LangChain for:

- Real-time data augmentation. Easily connect LLMs to diverse data sources and external/internal systems, drawing from LangChain’s vast library of integrations with model providers, tools, vector stores, retrievers, and more.
- Model interoperability. Swap models in and out as your engineering team experiments to find the best choice for your application’s needs. As the industry frontier evolves, adapt quickly — LangChain’s abstractions keep you moving without losing momentum.
- Rapid prototyping. Quickly build and iterate on LLM applications with LangChain's modular, component-based architecture. Test different approaches and workflows without rebuilding from scratch, accelerating your development cycle.
- Production-ready features. Deploy reliable applications with built-in support for monitoring, evaluation, and debugging through integrations like LangSmith. Scale with confidence using battle-tested patterns and best practices.
- Vibrant community and ecosystem. Leverage a rich ecosystem of integrations, templates, and community-contributed components. Benefit from continuous improvements and stay up-to-date with the latest AI developments through an active open-source community.
- Flexible abstraction layers. Work at the level of abstraction that suits your needs - from high-level chains for quick starts to low-level components for fine-grained control. LangChain grows with your application's complexity.

 📦 LangChain's ecosystem

- Deep Agents (JS) - Build agents that can plan, use subagents, and leverage file systems for complex tasks. A higher-level package built on top of LangChain.
- LangSmith - Unified developer platform for building, testing, and

Top issues

Latest release

@langchain/[email protected] @langchain/[email protected] 2026-11-13
Patch Changes

- 12219 bef937b Thanks @afirstenberg! - - Add gemini-4-hydrogen model profile.
  - Support the xhigh (XHIGH) thinking level (clamping to HIGH on models
    that do not support XHIGH and passing through future thinking levels on level-based models).

- 12189 571a1b4 Thanks @hntrl! - fix(google): add Gemini 4 Carbon model capability profile

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON