LangGraph.js
A strong pick. 5th of 9 AI SDKs and agent frameworks.
LangGraph.js is LangChain's TypeScript framework for building stateful agents as graphs, with checkpoints, human approval steps and streaming. It is a strong, well-funded choice for long-running agents with many steps. For simple model calls or chat UIs, the AI SDK or Mastra is easier, and the JS version gets features a few weeks after Python.
Best for: TypeScript teams building durable agents with many steps, checkpoints and human approval, especially teams that already use LangChain or LangSmith.
Scores
Overall7.5
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It is a strong pick for TypeScript teams that need durable, controlled agent workflows, and it is well maintained and growing. For most new projects, the AI SDK or Mastra is simpler and more TypeScript-native, and the JS version trails Python. The ranking comes from comparisons and the project's own changelog, which keeps the range moderate.
- developersdigest.tech/blog/langchain-langgraph-whats-new-2026: Good fit for durable workflows, with release-pace caveats
- dev.to/alexcloudstar/ai-agent-frameworks-in-2026-langgraph-vs-mastra-vs-vercel-ai-sdk-vs-openai-agents-sdk-vs-pydantic-539b: Places Mastra and the AI SDK ahead for TypeScript
- npm downloads ratio: About 7.2x a year earlier, above the median of 4.1
GPT-6.2 Sol: 8.0, likely 6.9 to 8.9
LangGraph.js is a strong new-project choice when saved state, human approvals, and custom routing are central requirements. The Vercel AI SDK is easier to start with for model calls and short tool loops, while Mastra bundles more of the surrounding agent tooling. Active maintenance supports the recommendation, and open reports in advanced workflows plus limited independent testing of the latest patch keep the range wide.
- agentopsguide.com/mastra-vs-vercel-ai-sdk-vs-langgraph: Hands-on comparison shows the tradeoffs in setup, storage, and restart recovery.
- github.com/langchain-ai/langgraphjs/releases/tag/@langchain%2Flanggraph@1.7.5: Current stable patch improves runtime performance.
- github.com/langchain-ai/langgraphjs/issues/3314: Open user report shows a recent edge case in nested routing.
- npm versionsLastYear: Sustained release activity for the core package.
Needed by many4.9
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
Many JS developers now call language models, but fewer need graph-based agent orchestration with saved state. LangGraph.js serves that narrower part of the category. It runs on several runtimes, so it is not tied to one framework.
- developersdigest.tech/blog/langchain-langgraph-whats-new-2026: Points simple chat and tool-loop cases to the AI SDK, and durable workflows to LangGraph
- langchain.com/blog/javascript-langgraph-v02-cloud-studio: Runs on Node, Deno, Workers, edge runtimes and the browser
GPT-6.2 Sol: 4.7, likely 3.5 to 5.9
LangGraph.js serves teams that need to coordinate stateful, multi-step agents across model providers. Basic model calls and short tool loops rarely need a graph. Developer surveys give a sense of demand for agent orchestration, with little detail on how many JavaScript projects need persistent workflows.
- docs.langchain.com/oss/javascript/langgraph/overview: Defines the scope of the TypeScript graph runtime.
- survey.stackoverflow.co/2026/ai: Reports use and interest in orchestration across languages.
- agentopsguide.com/mastra-vs-vercel-ai-sdk-vs-langgraph: Compares simple web agents with workflows that need durable state.
Helps a lot7.6
How well does it do the job for those who need it?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It is one of the strongest tools for controlled, stateful agents: checkpointers, interrupts, subgraphs, node timeouts and streaming are all there and typed. Its limits are the learning curve, the lag behind Python, and beta features such as DeltaChannel. For most agent apps, Mastra or the AI SDK give a faster start.
- developersdigest.tech/blog/langchain-langgraph-whats-new-2026: Lists 2026 features (timeouts, interrupts, DeltaChannel) and the gap behind Python
- toolbrain-astro.pages.dev/blog/langgraph-review-2026: Says the JS version lags Python on features but has good docs
- dev.to/alexcloudstar/ai-agent-frameworks-in-2026-langgraph-vs-mastra-vs-vercel-ai-sdk-vs-openai-agents-sdk-vs-pydantic-539b: Comparison calls LangGraph the control specialist and Mastra/AI SDK the TS-first choices
- npm hasTypes: Ships its own TypeScript types
GPT-6.2 Sol: 8.2, likely 7.0 to 9.1
Stable 1.7.5 offers typed state, streaming, interrupt and resume, and checkpoint replay, with documented TypeScript examples for developers and coding agents. An independent test resumed an approval after a process restart using SQLite. The current patch reduces state-validation overhead in the maintainers’ benchmark. Open reports about nested graphs and limited independent testing of 1.7.5 leave uncertainty around more complex workflows.
- docs.langchain.com/oss/javascript/langgraph/overview: Documents graph control flow, streaming, persistence, and TypeScript examples.
- docs.langchain.com/oss/javascript/migrate/langgraph-v1: Shows typed interrupts and the current agent entry point.
- agentopsguide.com/mastra-vs-vercel-ai-sdk-vs-langgraph: Tested restart recovery and loop limits on 1.5.2.
- github.com/langchain-ai/langgraphjs/releases/tag/@langchain%2Flanggraph@1.7.5: Reports faster state updates and lower execution overhead.
- github.com/langchain-ai/langgraphjs/issues/3314: Open report of a lost routing command in a checkpointed subgraph on 1.7.2.
Holds up over time8.1
Will it still be a good choice in two years?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
Activity is very high: 892 commits and 67 core releases in the last year, 162 contributors, and a funded company behind it. LangChain 1.x builds its agents on LangGraph, which ties the two together. Weekly releases that change behaviour without a compile error, and data migrations, hold the score back.
- github commitsLastYear: 892 commits in the last year
- npm versionsLastYear: 67 core releases in the last year
- blog.langchain.com/langchain-langgraph-1dot0: 1.0 stable with a backward-compatibility commitment
- sequoiacap.com/article/langchain-from-agent-0-to-1-to-agentic-engineering: Venture-backed company funds the work
GPT-6.2 Sol: 8.2, likely 7.0 to 9.2
The core npm package published 67 versions in a year, and LangChain funds development and uses the runtime in its own agent framework. LangGraph has a published long-term support policy, and GitHub shows several contributors involved in release runs. The v1 upgrade changed the streaming API, and some community fixes for retries and subgraphs are still awaiting review.
- npm versionsLastYear: 67 versions of the core package.
- langchain.com/blog/series-c: LangChain raised $300 million and names LangGraph as part of its runtime strategy.
- github.com/langchain-ai/docs/blob/main/src/oss/release-policy.mdx: Promises at least one year of 1.x maintenance after 2.0.
- github.com/langchain-ai/langgraphjs/actions/workflows/release.yml: Shows recent release runs involving several contributors.
- docs.langchain.com/oss/javascript/migrate/langgraph-v1: Documents the removed streaming helper and agent API migration.
- github.com/langchain-ai/langgraphjs/issues/3307: Tracks reproducible workflow bugs and community fixes awaiting review.
Used widely5.7
How many use it, and is that growing?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Downloads grew from 2.8M to 20M per 4 weeks, a ratio of about 7.2 against a median of 4.1. Much of that comes from LangChain.js 1.x, which installs LangGraph for its agents, so direct choices are fewer than downloads suggest. It has 3.4k stars, far below Mastra and the AI SDK, and ecosyste.ms has no dependents count for it.
- npm downloadsLast4Weeks: About 20M, up from 2.8M a year ago
- peers LangChain.js downloadsLast4Weeks: LangChain.js at 16.4M is a likely source of transitive installs
- github stars: 3,422 stars, against Mastra's 29.7k and the AI SDK's 28.1k
- bluesky posts: 0 posts, against Mastra's 60
GPT-6.2 Sol: 5.4, likely 3.9 to 7.0
Four-week downloads rose from 2.8 million to 20 million, about 7.2 times the prior year and above the 4.1 times catalog median. The Vercel AI SDK and Mastra grew faster. LangChain.js and n8n install LangGraph.js as a dependency, so the increase includes indirect use. About 3,400 repository stars, zero tracked Bluesky links, and a missing dependents count leave the number of projects choosing it directly uncertain.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio: 7.2 times year-over-year growth versus a 4.1 times median.
- peers AI SDK and Mastra: Downloads grew about 10 and 14.6 times, respectively.
- github stars, bluesky posts, dependents: 3,422 stars, zero tracked Bluesky links, and no dependents estimate.
- github.com/langchain-ai/langchainjs/blob/main/libs/langchain/package.json: LangChain.js installs LangGraph as a runtime dependency.
- github.com/n8n-io/n8n/blob/master/packages/@n8n/nodes-langchain/package.json: n8n’s LangChain node package also lists it as a dependency.
Vouched for7.3
Who stands behind it being good?
Claude Opus 5.5: 7.0, likely 5.0 to 8.0
LangGraph is widely used in production at companies such as Klarna, Uber, LinkedIn and J.P. Morgan, and Thoughtworks Radar covers it. Most of those cases are Python, and many are reported by LangChain itself. Independent proof for the JS version is thinner, which widens the range.
- blog.langchain.com/is-langgraph-used-in-production: Vendor-reported production users
- thoughtworks.com/zh-cn/radar/languages-and-frameworks/langgraph: Independent radar entry for LangGraph
- g2.com/survey_responses/langgraph-review-13244255: User reviews praise its control and name the learning curve as the main difficulty
- hackerNews stories: 119 stories, including teams that chose it for coding agents
GPT-6.2 Sol: 7.5, likely 6.2 to 8.6
n8n includes the JavaScript package, and an independent developer reported more than 1,000 merge-request reviews from a self-hosted LangGraph.js agent. A separate TypeScript comparison verified that a paused approval could resume after a restart. Stack Overflow reports use and interest under the LangGraph name, leaving JavaScript-specific satisfaction uncertain.
- github.com/n8n-io/n8n/blob/master/packages/@n8n/nodes-langchain/package.json: Shows adoption in n8n’s JavaScript integration package.
- reddit.com/r/LangChain/comments/1wzwqww/i_built_a_selfhosted_ai_agent_for_gitlab_on: Firsthand report from a deployed agent, including problems encountered in use.
- agentopsguide.com/mastra-vs-vercel-ai-sdk-vs-langgraph: Independent test confirmed approval recovery with persistent storage.
- stackoverflow.blog/2026/05/27/agents-on-a-leash-agentic-ai-remains-mostly-monitored-at-work: Reports 19% use and 28% interest for LangGraph without a language breakdown.
Safe7.3
How safe is it to depend on?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It has no known advisories, only 4 direct dependencies, and an MIT licence. There is no OpenSSF Scorecard, and the very high release rate leaves little time to review each release. It relies on @langchain/core, which has had its own serialization advisory.
- advisories total: 0 advisories
- npm dependencies: 4 direct dependencies
- scorecard: No Scorecard data
- @langchain/core advisory history: The core package had a serialization advisory in late 2025
GPT-6.2 Sol: 7.5, likely 6.1 to 8.7
The MIT-licensed core has four direct dependencies, and its GitHub Actions publishing workflow enables npm provenance. GitHub records two high-severity advisories for the core package where the bundle records zero. Both fixes shipped before public disclosure, and both are in 1.7.5. Separate storage adapters have their own patch history, and the available evidence leaves the OpenSSF Scorecard and full publisher access list unverified.
- npm license, npm dependencies, advisories total, scorecard: MIT, four direct dependencies, zero advisories in the collector, and no Scorecard result.
- raw.githubusercontent.com/langchain-ai/langgraphjs/main/.github/workflows/release.yml: Automated npm publishing enables provenance and pins its GitHub Actions.
- github.com/langchain-ai/langgraphjs/security/advisories/GHSA-j87f-x5h5-gr75: High-severity checkpoint deserialization advisory, fixed on the 1.x line in 1.4.12.
- github.com/langchain-ai/langgraphjs/releases/tag/@langchain%2Flanggraph@1.4.12: The August 19 fix preceded the August 21 disclosure.
- github.com/langchain-ai/langgraphjs/security/advisories/GHSA-wp87-994x-j95x: High-severity graph input advisory, fixed in 1.4.21.
- github.com/langchain-ai/langgraphjs/releases/tag/@langchain%2Flanggraph@1.4.21: The October 7 fix preceded the October 8 disclosure.
- github.com/langchain-ai/langgraphjs/security/advisories/GHSA-8p8h-xj5r-m5wf: Separate Postgres and Redis storage adapters received fixes for data isolation.
Good
- Gives low-level control over agent flow, with explicit state, checkpointing, interrupts and resumable runs.
- Paid LangChain staff maintain it, with frequent releases and a stable 1.x API since October 2025.
- Runs on Node, Deno, Cloudflare Workers, edge runtimes and the browser, and has only 4 direct dependencies.
- Connects closely to LangSmith tracing and evals and to the LangChain model integrations.
Bad
- The graph model has a steep learning curve and needs more code than the AI SDK or Mastra for simple agents.
- Python gets features first, and JS often follows a few weeks later.
- Minor releases have quietly changed streaming and interrupt behaviour, and the Postgres saver needs migration steps.
- The production Agent Server and platform features are tied to LangChain's commercial offering.
The numbers
- npm downloads, 4 weeks
- 20M ×7.2 in a year
- GitHub stars
- 3.4k
- Commits, 12 months
- 892
- npm version
- 1.7.5 Nov 2026
- Versions, 12 months
- 67
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
Read on 21 November 2026 from GitHub (langchain-ai/langgraphjs), npm (@langchain/langgraph), OSV and the OpenSSF Scorecard.
AI SDKs and agent frameworks
- 9.0AI SDK
- 7.9OpenAI SDK
- 7.8Anthropic SDK
- 7.7Mastra
- 7.5LangGraph.js
- 7.4OpenAI Agents SDK
- 6.8LangChain.js
- 6.7Genkit
- 1.5LlamaIndex.TS