{"name":"@langchain/langgraph","version":"1.4.20","author":{"name":"LangChain"},"license":"MIT","_id":"@langchain/langgraph@1.4.20","maintainers":[{"name":"lc-oss-admin","email":"oss-admin@langchain.dev"},{"name":"langchain-security","email":"infra@langchain.dev"}],"homepage":"https://github.com/langchain-ai/langgraphjs#readme","bugs":{"url":"https://github.com/langchain-ai/langgraphjs/issues"},"dist":{"shasum":"e4610697c7a8951be51ba51cdfea1917c80e3ef1","tarball":"http://registry-npm.ywwl.com/@langchain/langgraph/download/@langchain/langgraph-1.4.20.tgz","fileCount":632,"integrity":"sha512-5S9lSRHsh6fN5cJetqviW7XI2mO855LmVRApqu7DxBAJ0KVDfI+ZYCTcN2LerSNciIohxfGV/sP7RwT9HOcgyQ==","signatures":[{"sig":"MEUCIQDQoo2U0pqmPC0KJXooJ0fMSHMnTJ1QfjdT5M1SQkujvAIgZs1N+UmlstextPaK9vkzB4aF82aCPY0S7Py7sZ5bMOo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCT9pG/5QmgVzW/XOAk8GifYEWwCehJcPHLGFJlx0PDIAIgDEsSvLhtqrmjMf5HVnd9PrzWWbRICcOpxB4zfRp56g8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@langchain%2flanggraph@1.4.20","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":4415734,"size":1010352,"noattachment":false,"key":"/@langchain/langgraph/-/@langchain/langgraph-1.4.20.tgz"},"main":"./dist/index.js","type":"module","_from":"file:langchain-langgraph-1.4.20.tgz","types":"./dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"input":"./src/index.ts","import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"browser":"./dist/web.js","require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"},"typedoc":"./src/index.ts"},"./web":{"input":"./src/web.ts","import":{"types":"./dist/web.d.ts","default":"./dist/web.js"},"require":{"types":"./dist/web.d.cts","default":"./dist/web.cjs"},"typedoc":"./src/web.ts"},"./zod":{"input":"./src/graph/zod/index.ts","import":{"types":"./dist/graph/zod/index.d.ts","default":"./dist/graph/zod/index.js"},"require":{"types":"./dist/graph/zod/index.d.cts","default":"./dist/graph/zod/index.cjs"},"typedoc":"./src/graph/zod/index.ts"},"./pregel":{"input":"./src/pregel/index.ts","import":{"types":"./dist/pregel/index.d.ts","default":"./dist/pregel/index.js"},"require":{"types":"./dist/pregel/index.d.cts","default":"./dist/pregel/index.cjs"},"typedoc":"./src/pregel/index.ts"},"./remote":{"input":"./src/remote.ts","import":{"types":"./dist/remote.d.ts","default":"./dist/remote.js"},"require":{"types":"./dist/remote.d.cts","default":"./dist/remote.cjs"},"typedoc":"./src/remote.ts"},"./stream":{"input":"./src/stream.ts","import":{"types":"./dist/stream.d.ts","default":"./dist/stream.js"},"require":{"types":"./dist/stream.d.cts","default":"./dist/stream.cjs"},"typedoc":"./src/stream.ts"},"./channels":{"input":"./src/channels/index.ts","import":{"types":"./dist/channels/index.d.ts","default":"./dist/channels/index.js"},"require":{"types":"./dist/channels/index.d.cts","default":"./dist/channels/index.cjs"},"typedoc":"./src/channels/index.ts"},"./prebuilt":{"input":"./src/prebuilt/index.ts","import":{"types":"./dist/prebuilt/index.d.ts","default":"./dist/prebuilt/index.js"},"require":{"types":"./dist/prebuilt/index.d.cts","default":"./dist/prebuilt/index.cjs"},"typedoc":"./src/prebuilt/index.ts"},"./zod/schema":{"input":"./src/graph/zod/schema.ts","import":{"types":"./dist/graph/zod/schema.d.ts","default":"./dist/graph/zod/schema.js"},"require":{"types":"./dist/graph/zod/schema.d.cts","default":"./dist/graph/zod/schema.cjs"},"typedoc":"./src/graph/zod/schema.ts"},"./package.json":"./package.json"},"scripts":{"test":"vitest run","bench":"vitest bench --mode bench","build":"pnpm turbo build:internal --filter=@langchain/langgraph","clean":"rm -rf dist/ dist-cjs/ .turbo/","test:int":"vitest run --mode int","lint:dpdm":"dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts","prepublish":"pnpm build","test:watch":"vitest watch","lint:eslint":"NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/","test:browser":"vitest run --mode browser","build:internal":"pnpm --filter @langchain/build compile @langchain/langgraph"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"c239c6a8-2f48-41d9-9080-3131207a362e"}},"_resolved":"/tmp/6ebf23d54d8f2ffb3de684361b17e97f/langchain-langgraph-1.4.20.tgz","_integrity":"sha512-5S9lSRHsh6fN5cJetqviW7XI2mO855LmVRApqu7DxBAJ0KVDfI+ZYCTcN2LerSNciIohxfGV/sP7RwT9HOcgyQ==","repository":{"url":"git+ssh://git@github.com/langchain-ai/langgraphjs.git","type":"git","directory":"libs/langgraph-core"},"_npmVersion":"11.19.0","description":"LangGraph","directories":{},"_nodeVersion":"24.21.0","dependencies":{"@langchain/protocol":"^0.0.19","@standard-schema/spec":"1.1.0","@langchain/langgraph-sdk":"~1.12.2","@langchain/langgraph-checkpoint":"^1.1.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.13.0","tsx":"^4.19.3","dpdm":"^3.12.0","dotenv":"^16.3.1","rollup":"^4.62.3","vitest":"^4.1.11","cheerio":"1.0.0-rc.12","@swc/core":"^1.3.90","@types/pg":"^8","langchain":"^1.5.14","playwright":"^1.55.1","typescript":"^4.9.5 || ^5.4.5","@langchain/core":"^1.2.13","@vitest/browser":"^4.1.11","@langchain/openai":"^1.6.0","@langchain/tavily":"^1.0.0","@langchain/scripts":">=0.1.3 <0.2.0","@langchain/anthropic":"^1.5.11","@testing-library/dom":"^10.4.2","@xenova/transformers":"^2.17.2","@tsconfig/recommended":"^1.0.3","@vitest/browser-playwright":"^4.1.11","vite-plugin-node-polyfills":"^0.28.0","@langchain/langgraph-checkpoint-sqlite":"1.0.4","@langchain/langgraph-checkpoint-postgres":"1.0.6"},"peerDependencies":{"zod":"^3.25.32 || ^4.2.0","@langchain/core":"^1.1.48"},"_npmOperationalInternal":{"tmp":"tmp/langgraph_1.4.20_1791327142492_0.1362053314654803","host":"s3://npm-registry-packages-npm-production"},"readme":"<div align=\"center\">\n  <a href=\"https://www.langchain.com/langgraph\">\n    <picture>\n      <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/langchain-ai/langgraphjs/HEAD/.github/images/logo-dark.svg\">\n      <source media=\"(prefers-color-scheme: light)\" srcset=\"https://raw.githubusercontent.com/langchain-ai/langgraphjs/HEAD/.github/images/logo-light.svg\">\n      <img alt=\"LangGraph Logo\" src=\"https://raw.githubusercontent.com/langchain-ai/langgraphjs/HEAD/.github/images/logo-dark.svg\" width=\"50%\">\n    </picture>\n  </a>\n</div>\n\n<div align=\"center\">\n  <h3>Low-level orchestration framework for building stateful agents.</h3>\n</div>\n\n<div align=\"center\">\n  <a href=\"https://docs.langchain.com/oss/javascript/langgraph/overview\" target=\"_blank\"><img src=\"https://img.shields.io/badge/docs-latest-blue\" alt=\"Docs\"></a>\n  <a href=\"https://www.npmjs.com/package/@langchain/langgraph\" target=\"_blank\"><img src=\"https://img.shields.io/npm/v/@langchain/langgraph?logo=npm\" alt=\"Version\"></a>\n  <a href=\"https://www.npmjs.com/package/@langchain/langgraph\" target=\"_blank\"><img src=\"https://img.shields.io/npm/dm/@langchain/langgraph\" alt=\"npm - Downloads\"></a>\n  <a href=\"https://github.com/langchain-ai/langgraphjs/issues\" target=\"_blank\"><img src=\"https://img.shields.io/github/issues-raw/langchain-ai/langgraphjs\" alt=\"Open Issues\"></a>\n</div>\n\nLangGraph — used by Replit, Uber, LinkedIn, GitLab and more — is a low-level orchestration framework for building controllable agents. While langchain provides integrations and composable components to streamline LLM application development, the LangGraph library enables agent orchestration — offering customizable architectures, long-term memory, and human-in-the-loop to reliably handle complex tasks.\n\n```bash\nnpm install @langchain/langgraph @langchain/core\n```\n\n> [!TIP]\n> If you're looking to quickly build agents, check out **[Deep Agents](https://docs.langchain.com/oss/javascript/deepagents/overview)** — a higher-level package built on LangGraph for agents that can plan, use subagents, and leverage file systems for complex tasks.\n\nFor an equivalent Python library, check out [LangGraph](https://github.com/langchain-ai/langgraph) and the [Python docs](https://docs.langchain.com/oss/python/langgraph/overview).\n\n## Why use LangGraph?\n\nLangGraph provides low-level supporting infrastructure for *any* long-running, stateful workflow or agent:\n\n- **[Durable execution](https://docs.langchain.com/oss/javascript/langgraph/durable-execution)** — Build agents that persist through failures and can run for extended periods, automatically resuming from exactly where they left off.\n- **[Human-in-the-loop](https://docs.langchain.com/oss/javascript/langgraph/interrupts)** — Seamlessly incorporate human oversight by inspecting and modifying agent state at any point during execution.\n- **[Comprehensive memory](https://docs.langchain.com/oss/javascript/langgraph/memory)** — Create truly stateful agents with both short-term working memory for ongoing reasoning and long-term persistent memory across sessions.\n- **[Debugging with LangSmith](https://www.langchain.com/langsmith)** — Gain deep visibility into complex agent behavior with visualization tools that trace execution paths, capture state transitions, and provide detailed runtime metrics.\n- **[Production-ready deployment](https://docs.langchain.com/langsmith/deployments)** — Deploy sophisticated agent systems confidently with scalable infrastructure designed to handle the unique challenges of stateful, long-running workflows.\n\n> [!TIP]\n> For developing, debugging, and deploying AI agents and LLM applications, see [LangSmith](https://docs.langchain.com/langsmith/home).\n\n## LangGraph’s ecosystem\n\nWhile LangGraph can be used standalone, it also integrates seamlessly with any LangChain product, giving developers a full suite of tools for building agents. To improve your LLM application development, pair LangGraph with:\n\n- [Deep Agents (JS)](https://docs.langchain.com/oss/javascript/deepagents/overview) — Build agents that can plan, use subagents, and leverage file systems for complex tasks. A higher-level package built on top of LangGraph.\n- [LangChain](https://docs.langchain.com/oss/javascript/langchain/overview) – Provides integrations and composable components to streamline LLM application development.\n- [LangSmith](http://www.langchain.com/langsmith) — Helpful for agent evals and observability. Debug poor-performing LLM app runs, evaluate agent trajectories, gain visibility in production, and improve performance over time.\n\n## Additional resources\n\n- [LangChain Forum](https://forum.langchain.com/): Connect with the community and share all of your technical questions, ideas, and feedback.\n- [LangChain Academy](https://academy.langchain.com/courses/intro-to-langgraph): Learn the basics of LangGraph in our free, structured course.\n- [Streaming Cookbook](https://github.com/langchain-ai/streaming-cookbook): Documentation and examples around LangGraphs's streaming capabilities.\n- [API Reference](https://reference.langchain.com/javascript/langchain-langgraph): Detailed reference on core classes, methods, how to use the graph and checkpointing APIs, and higher-level prebuilt components.\n- [Built with LangGraph](https://www.langchain.com/built-with-langgraph): Hear how industry leaders use LangGraph to ship powerful, production-ready AI applications.\n\n## Acknowledgements\n\nLangGraph is inspired by [Pregel](https://research.google/pubs/pub37252/) and [Apache Beam](https://beam.apache.org/). The public interface draws inspiration from [NetworkX](https://networkx.org/documentation/latest/). LangGraph is built by LangChain Inc, the creators of LangChain, but can be used without LangChain.\n","publish_time":1791327142609,"_cnpm_publish_time":1791327142609,"dist-tags":{"alpha":"1.0.0-alpha.1","latest":"1.7.3","next":"1.0.1","rc":"1.4.18-rc.0"}}