Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

langchainjs

> 编程语言
Open source

The agent engineering platform

18.0K stars0 likes3 views
WebsiteGitHub

About

The agent engineering platform

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 capabilites 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 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 — Deploy and scale agents with a purpose-built platform for long-running, stateful workflows
  • LangGraph - 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 — 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: Installation, setting up the environment, simple examples
  • Learn: Learn about the core concepts of LangChain.
  • LangChain Forum: Connect with the community and share all of your technical questions, ideas, and feedback.
  • Chat LangChain: 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.

Please report any security issues or concerns following our security guidelines.

Issues· 619 open

View all issuesOpen on GitHub
  • #11710

    `PGVectorStore` cannot support custom filters like `@>`

    bugUpdated Oct 1, 2026
  • #11779

    ChatAnthropic v3 streamEvents() silently maps stop_reason: "refusal" to "stop", indistinguishable from a normal completion

    Updated Sep 30, 2026
  • #11769

    bug(core): Mustache inverted section variables are missing from inputVariables, so PipelinePromptTemplate renders them empty

    Updated Sep 29, 2026
  • #11762

    Azure's empty stream chunk id gives every AIMessage `id: ""`, breaking createAgent

    bugUpdated Sep 29, 2026
  • #11747

    integration: add @code-402/langchain (x402 pay-per-call tools)

    Updated Sep 29, 2026
  • #11754

    openai: Responses API chat model event stream omits response_metadata.model_name

    Updated Sep 28, 2026
  • #11752

    @langchain/mistralai: streamed GLM tool call split into two calls ("null" id), and parallel_tool_calls dropped

    Updated Sep 28, 2026
  • #11751

    @langchain/mistralai: reasoning models (zai-glm-5-3) crash on the second call: thinking chunks can't be sent back

    Updated Sep 28, 2026
  • #11743

    bug(core): XMLOutputParser loses parents and siblings after self-closing tags

    Updated Sep 27, 2026
  • #11742

    bug(mcp-adapters): cancelled discovery opens servers after close and poisons reuse

    Updated Sep 27, 2026

> Tags

TypeScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言