# LangChain.js: 6.8 out of 10

Reasonable, with limits. 7th of 9 in [AI SDKs and agent frameworks](https://elestia.ai/opensource/ai-sdks/index.md).

LangChain.js is the TypeScript version of LangChain. Since v1 it centres on `createAgent`, which runs on LangGraph and supports middleware, and it has hundreds of provider and vector-store integrations. It is well funded and very active. However, its downloads are growing more slowly than the category, and independent reviewers usually point TypeScript teams to the AI SDK or Mastra first.

**Best for:** Teams already on the LangChain/LangGraph/LangSmith stack, or teams that need its wide range of model, retriever and vector-store integrations in TypeScript.

## Scores

- **Overall: 6.8** (likely 5.8 to 7.8)
  - Claude Opus 5.5 (6.0): It is a capable, well-funded and very active framework, and its integrations are the best in JS. For most new TypeScript projects, though, the AI SDK (or Mastra for agents) is simpler and growing faster. Teams that want LangChain's agent runtime can also use LangGraph.js directly. LangChain.js is a reasonable choice for teams invested in the LangChain stack, but not the category default. The range reflects how much v1 improves things and the TS-versus-Python lag.
  - GPT-6.2 Sol (7.6): LangChain.js is a strong pick for a new TypeScript agent that needs provider choice, custom middleware, and a path to persistent state. Vercel AI SDK is easier for straightforward model calls and streaming UI, while Mastra offers a cleaner setup for common agent tasks. Active maintenance and downstream use support the recommendation. Slower relative adoption and uneven behavior across provider integrations keep it from being the default for the whole category.
- **Needed by many: 5.6** (likely 4.5 to 6.7)
  - Claude Opus 5.5 (6.0): Calling models and building agents is now a common job in JS/TS apps, so the category is broad. LangChain.js covers the full range, from model calls to RAG to agents, on Node and other runtimes. Its heavier, framework-style approach fits fewer projects than a thin SDK does.
  - GPT-6.2 Sol (5.2): The framework supports multiple model providers and works without tying an application to one web framework. Its middleware and integrations are most valuable to teams shipping AI features with tools, retrieval, or state. Developer surveys give a sense of demand for agent tooling, but they do not measure how many JavaScript projects need a framework of this size.
- **Helps a lot: 6.9** (likely 5.9 to 8.2)
  - Claude Opus 5.5 (6.0): Version 1 cleaned up the API around createAgent and middleware, and the integration catalogue is unmatched in JS. Reviewers still describe a steep learning curve and a TypeScript port that lags Python. For typical web-app work, the AI SDK and Mastra offer simpler, more TypeScript-native ergonomics. The range is wide because v1 is recent, and opinions about it vary.
  - GPT-6.2 Sol (7.8): Version 1.6.7 has typed tools, structured output, streaming, and middleware, with documented examples for checkpointing. A November comparison found that Vercel AI SDK took less code for simple calls and Mastra made tool setup cleaner. An October benchmark measured higher import overhead than AI SDK on one machine, and users report provider-specific streaming problems. Current TypeScript examples give coding agents a clear starting point, though their implementation accuracy remains unmeasured.
- **Holds up over time: 7.9** (likely 6.8 to 8.9)
  - Claude Opus 5.5 (7.5): The project is very active, with 1,301 commits, 962 releases and 88 versions of the main package in a year. It is funded by LangChain Inc. and has more than 1,100 contributors. The main risks are its record of large breaking reorganisations, and an ecosystem that is shifting toward the AI SDK and Mastra for TypeScript. 528 open pull requests also point to a review backlog.
  - GPT-6.2 Sol (8.2): The main package published 88 versions in the past year, and recent releases credit several contributors. LangChain announced a $300 million funding round in November and still names the framework as part of its agent runtime strategy. The v1 migration moved legacy APIs, and the latest patch changed implicit model switching. Open reports with pending fixes and limited visibility into release permissions leave some uncertainty about support over two years.
- **Used widely: 5.9** (likely 4.8 to 7.1)
  - Claude Opus 5.5 (6.5): The package had 16.4M downloads in the last 4 weeks, and ecosyste.ms counts 2,970 dependent repos, more than the AI SDK's count. But its growth ratio of about 3.3x is below the 4.1 median. LangGraph.js (7.2x), the AI SDK (10x) and Mastra (14.6x) are growing much faster, so LangChain.js is losing share. Bluesky attention is very low next to its peers.
  - GPT-6.2 Sol (5.3): The collector found 2,970 dependent repositories and 216 packages, with more tracked repositories than Vercel AI SDK. Downloads grew from 5.0 million to 16.4 million over comparable four-week periods, but 3.3× growth fell below the 4.1× catalog baseline and trailed AI SDK, Mastra, and LangGraph.js. The stars cover the whole monorepo, and products such as n8n install LangChain for their users, so the number of projects choosing it directly is uncertain.
- **Vouched for: 6.8** (likely 5.5 to 8.1)
  - Claude Opus 5.5 (6.0): The LangChain brand has wide production use and a large third-party ecosystem, but much of that validation comes from the Python version. Independent 2026 comparisons cite its ecosystem for RAG and agents, but do not make it the default pick for TypeScript. No survey data specific to LangChain.js was found.
  - GPT-6.2 Sol (7.5): n8n and Flowise ship LangChain.js in their AI tooling, and Vercel maintains an adapter for using it with AI SDK UI. The 2026 Stack Overflow survey shows strong LangChain use among respondents who answered the orchestration question, but combines languages and measures use. Independent tests confirm that the JavaScript framework handles model and tool calls, with mixed results on ease of use and overhead.
- **Safe: 6.9** (likely 5.8 to 8.0)
  - Claude Opus 5.5 (6.5): The project has two advisories: a moderate path traversal in 2024 and a high-severity serialization injection in December 2025 that could leak secrets. The 2025 issue was patched in coordinated releases (@langchain/core 1.1.8, langchain 1.2.3). It has only 4 direct dependencies and an MIT licence. But it has no OpenSSF Scorecard, many packages are published from one monorepo, and agent frameworks carry a large attack surface through prompt-driven tools.
  - GPT-6.2 Sol (7.2): The MIT-licensed package has four direct dependencies, plus a required core peer and the dependencies of any integrations you install. Both listed main-package vulnerabilities have fixes, and the high-severity serialization fix shipped by public disclosure. GitHub Actions automates releases, and the workflow enables npm provenance while retaining a token-based authentication step. The missing Scorecard and unverified number of authorized publishers widen the range.

## Good

- It has the widest set of integrations in JS: model providers, vector stores, retrievers and document loaders, all behind shared interfaces.
- The v1 createAgent API with middleware (summarization, human-in-the-loop, PII redaction) is simpler than the older chains and runs on durable LangGraph execution.
- It is backed by a funded company, with about 1,300 commits and hundreds of package releases in the last year.
- It plugs straight into LangSmith for tracing and evals, and into LangGraph for more complex agent graphs.

## Bad

- Its layers of abstraction and its own mental model make it heavier than the AI SDK for simple model calls and streaming UIs.
- The TypeScript port is widely reported to lag the Python version in features and documentation.
- It has a history of breaking reorganisations (0.x to 1.0, legacy code moved to @langchain/classic), and v1 requires Node 22 or newer.
- A high-severity serialization injection advisory (CVE-2025-68665) was published in December 2025, and the project has no OpenSSF Scorecard.

## The numbers

- Downloads, 4 weeks: 16M
- In a year: ×3.3
- GitHub stars: 18k
- Commits, 12 months: 1.3k
- Last npm release: Nov 2026
- Advisories, 24 months: 1
- Licence: MIT
- GitHub: https://github.com/langchain-ai/langchainjs
- npm: https://www.npmjs.com/package/langchain

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
