L

LangChain.js

Open source
Agent FrameworksUpdated Sep 16, 2026
18,332 starsCompared with 161 other Agent Frameworks agentsOpen sourceUpdated Sep 2026
MIT license18,332 GitHub starsChecked Nov 9, 2026

What LangChain.js does

LangChain.js is the JavaScript/TypeScript version of LangChain, a framework for building LLM-powered applications. It chains together interoperable components and third-party integrations through a standard interface for agents, models, embeddings and vector stores.

Who it's for: JavaScript and TypeScript developers building applications and agents on top of LLMs.

Who it isn't for

  • The current install docs list Node.js 22+ (or Bun 1.0+) for the langchain packages
  • Does not ship a model: you need an API key from a supported provider, or a running local Ollama
  • Each model provider is a separate package you install yourself

Key features

  • Connect LLMs to data sources and systems through a library of integrations with model providers, tools, vector stores and retrievers
  • Swap models in and out
  • Abstractions from high-level chains to low-level components
  • Monitoring, evaluation and debugging through integrations like LangSmith
  • Installed from npm, pnpm or yarn
Open source
Yes (MIT)

Getting started (from the official docs)

  1. Install the core packages: npm install langchain @langchain/core (pnpm, yarn and bun also work)
  2. Add the integration package for your model provider, for example npm install @langchain/openai or npm install @langchain/anthropic
  3. Get a provider API key and export it in your shell or put it in a .env file (e.g. OPENAI_API_KEY)
  4. Build a first agent with createAgent and a tool defined with tool, as in the quickstart's weather example
  5. Optionally turn on LangSmith tracing to debug the app

Sources: github.com/hwchase17/langchainjs, docs.langchain.com/oss/javascript/langchain/install, docs.langchain.com/oss/javascript/langchain/quickstart · Checked Nov 9, 2026

Alternatives

See all Agent Frameworks alternatives to LangChain.js

Related AI Agents

Related reading

FAQs

What is LangChain.js?
LangChain.js is the JavaScript/TypeScript version of LangChain, a framework for building LLM-powered applications. It chains together interoperable components and third-party integrations through a standard interface for agents, models, embeddings and vector stores.
Who is LangChain.js for?
JavaScript and TypeScript developers building applications and agents on top of LLMs.
Is LangChain.js open source?
Yes, under the MIT license.

Rate this agent

Loading...

Your rating:

Reviews

Loading reviews...

Write a review

Your rating
0 / 500

Ready to try this agent?

LangChain.js