{"name":"langchain","version":"1.3.2","keywords":["llm","ai","gpt3","chain","prompt","prompt engineering","chatgpt","machine learning","ml","openai","embeddings","vectorstores"],"author":{"name":"LangChain"},"license":"MIT","_id":"langchain@1.3.2","maintainers":[{"name":"christian-bromann","email":"mail@bromann.dev"},{"name":"nfcampos","email":"nuno@boringbits.io"},{"name":"jacoblee93","email":"jacoblee93@gmail.com"},{"name":"andrewnguonly","email":"andrewnguonly@gmail.com"},{"name":"davidduong","email":"david@duong.cz"},{"name":"hntrl","email":"hunter@hntrl.io"},{"name":"hwchase17","email":"hw.chase.17@gmail.com"},{"name":"basproul","email":"braceasproul@gmail.com"}],"homepage":"https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain/","bugs":{"url":"https://github.com/langchain-ai/langchainjs/issues"},"dist":{"shasum":"92419b89167c94cfb7f07a568a352b48030083ea","tarball":"http://registry-npm.ywwl.com/langchain/download/langchain-1.3.2.tgz","fileCount":420,"integrity":"sha512-d6u7VcHgQgirKWtXJCLshG9+LoaKME22jXA1SgfZ8VpIQNBLHGhHyC/ZauDwtnBePKwhG8iiAOPzJx1EyftSYQ==","signatures":[{"sig":"MEQCIDQEfp9Cgzcpwmo/+BDD6vruhqE75nnKPQLEV5smJot0AiBD9Lth/GTgB5A2gxy3vUHsSm10Yy+AJtHstbh39QlR5w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/langchain@1.3.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2821280,"size":601428,"noattachment":false,"key":"/langchain/-/langchain-1.3.2.tgz"},"main":"./dist/index.cjs","type":"module","_from":"file:langchain-1.3.2.tgz","types":"./dist/index.d.cts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"input":"./src/index.ts","import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"browser":"./dist/browser.js","require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./hub":{"input":"./src/hub/index.ts","import":{"types":"./dist/hub/index.d.ts","default":"./dist/hub/index.js"},"require":{"types":"./dist/hub/index.d.cts","default":"./dist/hub/index.cjs"}},"./load":{"input":"./src/load/index.ts","import":{"types":"./dist/load/index.d.ts","default":"./dist/load/index.js"},"require":{"types":"./dist/load/index.d.cts","default":"./dist/load/index.cjs"}},"./tools":{"input":"./src/tools/index.ts","import":{"types":"./dist/tools/index.d.ts","default":"./dist/tools/index.js"},"require":{"types":"./dist/tools/index.d.cts","default":"./dist/tools/index.cjs"}},"./browser":{"input":"./src/browser.ts","import":{"types":"./dist/browser.d.ts","default":"./dist/browser.js"},"require":{"types":"./dist/browser.d.cts","default":"./dist/browser.cjs"}},"./hub/node":{"input":"./src/hub/node.ts","import":{"types":"./dist/hub/node.d.ts","default":"./dist/hub/node.js"},"require":{"types":"./dist/hub/node.d.cts","default":"./dist/hub/node.cjs"}},"./package.json":"./package.json","./load/serializable":{"input":"./src/load/serializable.ts","import":{"types":"./dist/load/serializable.d.ts","default":"./dist/load/serializable.js"},"require":{"types":"./dist/load/serializable.d.cts","default":"./dist/load/serializable.cjs"}},"./storage/in_memory":{"input":"./src/storage/in_memory.ts","import":{"types":"./dist/storage/in_memory.d.ts","default":"./dist/storage/in_memory.js"},"require":{"types":"./dist/storage/in_memory.d.cts","default":"./dist/storage/in_memory.cjs"}},"./storage/file_system":{"input":"./src/storage/file_system.ts","import":{"types":"./dist/storage/file_system.d.ts","default":"./dist/storage/file_system.js"},"require":{"types":"./dist/storage/file_system.d.cts","default":"./dist/storage/file_system.cjs"}},"./chat_models/universal":{"input":"./src/chat_models/universal.ts","import":{"types":"./dist/chat_models/universal.d.ts","default":"./dist/chat_models/universal.js"},"require":{"types":"./dist/chat_models/universal.d.cts","default":"./dist/chat_models/universal.cjs"}},"./storage/encoder_backed":{"input":"./src/storage/encoder_backed.ts","import":{"types":"./dist/storage/encoder_backed.d.ts","default":"./dist/storage/encoder_backed.js"},"require":{"types":"./dist/storage/encoder_backed.d.cts","default":"./dist/storage/encoder_backed.cjs"}}},"scripts":{"test":"vitest run","build":"turbo build:compile --filter langchain --output-logs new-only","clean":"rm -rf .turbo dist/","precommit":"lint-staged","test:bench":"vitest --mode bench --run","test:watch":"vitest --watch","build:compile":"tsdown","test:integration":"vitest --mode int"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0f9421ec-0644-4d2e-b121-d0ee88af5018"}},"_resolved":"/tmp/53850b654ee657e2bb31b150af0061f7/langchain-1.3.2.tgz","_integrity":"sha512-d6u7VcHgQgirKWtXJCLshG9+LoaKME22jXA1SgfZ8VpIQNBLHGhHyC/ZauDwtnBePKwhG8iiAOPzJx1EyftSYQ==","repository":{"url":"git+ssh://git@github.com/langchain-ai/langchainjs.git","type":"git"},"_npmVersion":"11.5.1","description":"Typescript bindings for langchain","directories":{},"_nodeVersion":"24.6.0","dependencies":{"zod":"^3.25.76 || ^4","uuid":"^11.1.0","langsmith":">=0.5.0 <1.0.0","@langchain/langgraph":"^1.2.8","@langchain/langgraph-checkpoint":"^1.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"dpdm":"^3.14.0","yaml":"^2.8.3","peggy":"^5.1.0","dotenv":"^17.4.0","openai":"^6.22.0","rimraf":"^6.1.3","vitest":"^4.1.2","cheerio":"1.2.0","typeorm":"^0.3.28","@types/ws":"^8","tinybench":"^6.0.0","typescript":"~5.8.3","@types/uuid":"^9","@types/jsdom":"^28.0.1","@types/js-yaml":"^4","@langchain/core":"^1.1.39","reflect-metadata":"^0.2.2","@langchain/openai":"1.4.4","@langchain/tsconfig":"0.0.1","@vitest/coverage-v8":"^3.2.4","@langchain/anthropic":"1.3.26","@langchain/fireworks":"0.1.2","@tsconfig/recommended":"^1.0.2"},"peerDependencies":{"@langchain/core":"^1.1.39"},"_npmOperationalInternal":{"tmp":"tmp/langchain_1.3.2_1776119966540_0.07916169059290579","host":"s3://npm-registry-packages-npm-production"},"readme":"# 🦜️🔗 LangChain.js\n\n![npm](https://img.shields.io/npm/dm/langchain) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Twitter](https://img.shields.io/twitter/url/https/twitter.com/langchain_js.svg?style=social&label=Follow%20%40LangChain)](https://x.com/langchain_js)\n\nLangChain 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.\n\n**Documentation**: To learn more about LangChain, check out [the docs](https://docs.langchain.com/oss/javascript/langchain/overview).\n\nIf you're looking for more advanced customization or agent orchestration, check out [LangGraph.js](https://langchain-ai.github.io/langgraphjs/). our framework for building agents and controllable workflows.\n\n> [!NOTE]\n> Looking for the Python version? Check out [LangChain](https://github.com/langchain-ai/langchain).\n\nTo help you ship LangChain apps to production faster, check out [LangSmith](https://smith.langchain.com).\n[LangSmith](https://smith.langchain.com) is a unified developer platform for building, testing, and monitoring LLM applications.\n\n## ⚡️ Quick Install\n\nYou can use npm, pnpm, or yarn to install LangChain.js\n\n```sh\nnpm install -S langchain\n# or\npnpm install langchain\n# or\nyarn add langchain\n```\n\n## 🚀 Why use LangChain?\n\nLangChain helps developers build applications powered by LLMs through a standard interface for agents, models, embeddings, vector stores, and more.\n\nUse LangChain for:\n\n- **Real-time data augmentation**. Easily connect LLMs to diverse data sources and external/internal systems, drawing from LangChain’s vast library of integrations with model providers, tools, vector stores, retrievers, and more.\n- **Model interoperability**. Swap models in and out as your engineering team experiments to find the best choice for your application’s needs. As the industry frontier evolves, adapt quickly — LangChain’s abstractions keep you moving without losing momentum.\n\n## 📦 LangChain's ecosystem\n\n- [LangSmith](https://www.langchain.com/langsmith) - Unified developer platform for building, testing, and monitoring LLM applications. With LangSmith, you can debug poor-performing LLM app runs, evaluate agent trajectories, gain visibility in production, and deploy agents with confidence.\n- [LangGraph](https://docs.langchain.com/oss/javascript/langgraph/overview) - Build agents that can reliably handle complex tasks with LangGraph, our low-level agent orchestration framework. LangGraph offers customizable architecture, long-term memory, and human-in-the-loop workflows — and is trusted in production by companies like LinkedIn, Uber, Klarna, and GitLab.\n- [Deep Agents](https://docs.langchain.com/oss/javascript/deepagents/overview) - Build sophisticated \"deep\" agents that go beyond simple tool-calling loops. Deep Agents combines planning tools, sub-agent spawning, file system access, and detailed prompts to handle complex, multi-step tasks — inspired by applications like Claude Code and Deep Research.\n\n## 🌐 Supported Environments\n\nLangChain.js is written in TypeScript and can be used in:\n\n- Node.js (ESM and CommonJS) - 20.x, 22.x, 24.x\n- Cloudflare Workers\n- Vercel / Next.js (Browser, Serverless and Edge functions)\n- Supabase Edge Functions\n- Browser\n- Deno\n- Bun\n\n## 📖 Additional Resources\n\n- [Getting started](https://docs.langchain.com/oss/javascript/langchain/overview): Installation, setting up the environment, simple examples\n- [Learn](https://docs.langchain.com/oss/javascript/langchain/learn): Learn about the core concepts of LangChain.\n- [LangChain Forum](https://forum.langchain.com): Connect with the community and share all of your technical questions, ideas, and feedback.\n- [Chat LangChain](https://chat.langchain.com): Ask questions & chat with our documentation.\n\n## 💁 Contributing\n\nAs 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.\n\nFor detailed information on how to contribute, see [here](https://github.com/langchain-ai/langchainjs/blob/main/CONTRIBUTING.md).\n\nPlease report any security issues or concerns following our [security guidelines](https://github.com/langchain-ai/.github/blob/main/SECURITY.md).\n","publish_time":1776119966772,"_cnpm_publish_time":1776119966772,"dist-tags":{"alpha":"1.0.0-alpha.9","dev":"1.5.1-dev-1781824996270","latest":"1.6.2","next":"1.0.0-alpha.9","rc":"1.5.11-rc.0","tag-for-publishing-older-releases":"0.2.20"}}