JavaScript/TypeScript framework for building LLM-powered applications with chains, agents, and retrieval.
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.
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.
[!NOTE] Looking for the Python version? Check out LangChain.
To help you ship LangChain apps to production faster, check out LangSmith. LangSmith is a unified developer platform for building, testing, and monitoring LLM applications.
You can use npm, pnpm, or yarn to install LangChain.js
npm install -S langchain
# or
pnpm install langchain
# or
yarn add langchain
LangChain helps developers build applications powered by LLMs through a standard interface for agents, models, embeddings, vector stores, and more.
Use LangChain for:
LangChain.js is written in TypeScript and can be used in:
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 here.
Please report any security issues or concerns following our security guidelines.
Preview
Markdown
[](https://attestry.ai/models/npm-langchain)HTML
<a href="https://attestry.ai/models/npm-langchain"><img src="https://regseal.ai/api/v1/registry/badge/npm-langchain" alt="RegSeal Verification Status" /></a>