https://github.com/langchain-ai/langchainjs
The agent engineering platform
https://github.com/langchain-ai/langchainjs
Last synced: 25 days ago
JSON representation
The agent engineering platform
- Host: GitHub
- URL: https://github.com/langchain-ai/langchainjs
- Owner: langchain-ai
- License: mit
- Created: 2023-02-06T22:50:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2026-05-16T06:15:27.000Z (28 days ago)
- Last Synced: 2026-05-16T06:41:54.952Z (28 days ago)
- Language: TypeScript
- Homepage: https://docs.langchain.com/langchain/
- Size: 666 MB
- Stars: 17,671
- Watchers: 95
- Forks: 3,170
- Open Issues: 363
-
Metadata Files:
- Readme: README.md
- Contributing: .github/contributing/INTEGRATIONS.md
- License: LICENSE
- Agents: AGENTS.md
Awesome Lists containing this project
- awesome-faker - langchainjs - Building applications with LLMs through composability. (Projects using `@faker-js/faker`)
- awesome-open-source-ai-tools - langchain-ai/langchainjs - 🦜🔗 Build context-aware reasoning applications 🦜🔗 (Chatbots & Virtual Companions)
- StarryDivineSky - langchain-ai/langchainjs - 18.x、19.x、20.x、22.x;Cloudflare Workers;Vercel / Next.js(浏览器、Serverless 和 Edge 功能);Supabase Edge 函数;浏览器;Deno。LangChain是一个用于开发由语言模型驱动的应用程序的框架。它使应用程序能够:具有上下文感知能力:将语言模型连接到上下文源(提示指令、少量镜头示例、内容以使其响应为基础等);原因:依靠语言模型进行推理(关于如何根据提供的上下文回答、采取什么行动等)。该框架由几个部分组成:开源库:使用 LangChain 的开源构建块、组件和第三方集成来构建您的应用程序,使用 LangGraph.js 构建具有一流和人机交互支持的状态代理。生产化:使用LangSmith来检查、监控和评估您的链,以便您可以放心地持续优化和部署。部署:使用 LangGraph Cloud(目前仅限 Python)将您的 LangGraph 应用程序转换为生产就绪的 API 和助手。 (A01_文本生成_文本对话 / 大语言对话模型及数据)
- awesome-ai - **LangChain.js**
- redis-ai-resources - LangChain JS
- awesome-langchain-zh - LangChain.js - ai/langchainjs?style=social): js版本的兄弟✨ (LangChain框架)
- awesome-langchain - LangChainJS
- awesome_ai_agents - LangChain JS - LangChain JS is a framework for developing applications powered by language models, enabling context-aware and reasoning-based applications through composable tools and off-the-shelf chains, with seamless integration with the LangChain Python package [github](https://github.com/langchain-ai/langchainjs) (Learning / Repositories)
- awesome - langchain-ai/langchainjs - The agent engineering platform (TypeScript)
- AiTreasureBox - langchain-ai/langchainjs - 11-03_16193_1](https://img.shields.io/github/stars/langchain-ai/langchainjs.svg)|Build context-aware reasoning applications| (Repos)
- awesome-ai-agents - LangChain.js - ai/langchainjs) | JS version of LangChain | (🚀 Specialized Agents / 🗣️ Programming Language Agents)
- awesome-llm-tools - LangChain.js - stack JS LLM apps | (2. Libraries & Frameworks / JavaScript / TypeScript)
- awesome - langchain-ai/langchainjs - The agent engineering platform (TypeScript)
- awesome-ai-agents - langchain-ai/langchainjs - LangChain.js is a TypeScript framework for building context-aware, reasoning applications powered by large language models, offering modular components, chains, agents, and tools for production and deployment. (AI Agent Frameworks & SDKs / Cognitive Architecture Frameworks)
- awesome-github-projects - langchainjs - The agent engineering platform ⭐17,739 `TypeScript` 🔥 (⚙️ Backend & APIs)
README
The agent engineering platform.
 [](https://opensource.org/licenses/MIT) [](https://x.com/langchain_js)
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](http://docs.langchain.com/oss/javascript/deepagents/)** — a higher-level package built on LangChain for agents that have built-in capabilites for common usage patterns such as planning, subagents, file system usage, and more.
**Documentation**: To learn more about LangChain, check out [the docs](https://docs.langchain.com/oss/javascript/langchain/overview).
If you're looking for more advanced customization or agent orchestration, check out [LangGraph.js](https://docs.langchain.com/oss/javascript/langgraph/overview) - our framework for building agents and controllable workflows.
For an equivalent Python library, check out [LangChain](https://github.com/langchain-ai/langchain).
To help you ship LangChain apps to production faster, check out [LangSmith](https://smith.langchain.com).
[LangSmith](https://smith.langchain.com) is 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)](https://docs.langchain.com/oss/javascript/deepagents/overview) - Build agents that can plan, use subagents, and leverage file systems for complex tasks. A higher-level package built on top of LangChain.
- [LangSmith](https://www.langchain.com/langsmith) - Unified developer platform for building, testing, and monitoring LLM applications. With LangSmith, you can debug poor-performing LLM app runs, evaluate agent trajectories, gain visibility in production, and deploy agents with confidence.
- [LangSmith Deployment](https://docs.langchain.com/langsmith/deployments) — Deploy and scale agents with a purpose-built platform for long-running, stateful workflows
- [LangGraph](https://docs.langchain.com/oss/javascript/langgraph/overview) - Build agents that can reliably handle complex tasks with LangGraph, our low-level agent orchestration framework. LangGraph offers customizable architecture, long-term memory, and human-in-the-loop workflows — and is trusted in production by companies like LinkedIn, Uber, Klarna, and GitLab.
- [Integrations](https://docs.langchain.com/oss/javascript/integrations/providers/overview) — Chat & embedding models, tools & toolkits, and more
## 🌐 Supported Environments
LangChain.js is written in TypeScript and can be used in:
- Node.js (ESM and CommonJS) - 20.x, 22.x, 24.x
- Cloudflare Workers
- Vercel / Next.js (Browser, Serverless and Edge functions)
- Supabase Edge Functions
- Browser
- Deno
- Bun
## 📖 Additional Resources
- [Getting started](https://docs.langchain.com/oss/javascript/langchain/overview): Installation, setting up the environment, simple examples
- [Learn](https://docs.langchain.com/oss/javascript/learn): Learn about the core concepts of LangChain.
- [LangChain Forum](https://forum.langchain.com): Connect with the community and share all of your technical questions, ideas, and feedback.
- [Chat LangChain](https://chat.langchain.com): Ask questions & chat with our documentation.
## 💁 Contributing
As an open-source project in a rapidly developing field, we are extremely open to contributions, whether it be in the form of a new feature, improved infrastructure, or better documentation.
For detailed information on how to contribute, see [`CONTRIBUTING.md`](https://github.com/langchain-ai/langchainjs/blob/main/CONTRIBUTING.md).
Please report any security issues or concerns following our [security guidelines](https://github.com/langchain-ai/.github/blob/main/SECURITY.md).