{"name":"langchain","version":"1.2.2","keywords":["llm","ai","gpt3","chain","prompt","prompt engineering","chatgpt","machine learning","ml","openai","embeddings","vectorstores"],"author":{"name":"LangChain"},"license":"MIT","_id":"langchain@1.2.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":"237c0b8b3b9848f4f3fa7d8436d962275ecc2733","tarball":"http://registry-npm.ywwl.com/langchain/download/langchain-1.2.2.tgz","fileCount":399,"integrity":"sha512-oa49AJGTE0MM5IlSvw70fQr2Ot/1LPRvHdSYWj0oGeeTVUalIwWYOpp9KbSW7eYUu7kgIviy4oUMo+KzXCj7Iw==","signatures":[{"sig":"MEQCICM9DUr8xDYcirdzrj2OnAljvsIvdiTpWzl5OfSvb+n3AiAroB8VDatvjb8k3Mz7bWj/mYuC0Bl2b3JEls9BdYQJ6g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/langchain@1.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3070622,"size":611413,"noattachment":false,"key":"/langchain/-/langchain-1.2.2.tgz"},"main":"./dist/index.cjs","type":"module","_from":"file:langchain-1.2.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"},"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"}},"./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":{"lint":"pnpm lint:eslint && pnpm lint:dpdm","test":"vitest run","build":"turbo build:compile --filter langchain --output-logs new-only","clean":"rm -rf .turbo dist/","format":"prettier --write \"src\"","lint:fix":"pnpm lint:eslint --fix && pnpm lint:dpdm","lint:dpdm":"dpdm --skip-dynamic-imports circular --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts","precommit":"lint-staged","test:bench":"vitest --mode bench --run","test:watch":"vitest --watch","lint:eslint":"eslint --cache src/","format:check":"prettier --check \"src\"","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/e8a594afa54f0a641df92c0fc0d0dede/langchain-1.2.2.tgz","_integrity":"sha512-oa49AJGTE0MM5IlSvw70fQr2Ot/1LPRvHdSYWj0oGeeTVUalIwWYOpp9KbSW7eYUu7kgIviy4oUMo+KzXCj7Iw==","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":"^10.0.0","langsmith":">=0.4.0 <1.0.0","@langchain/langgraph":"^1.0.0","@langchain/langgraph-checkpoint":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"dpdm":"^3.14.0","yaml":"^2.8.1","peggy":"^3.0.2","dotenv":"^16.0.3","eslint":"^9.34.0","openai":"^5.1.0","rimraf":"^5.0.1","rollup":"^3.19.1","vitest":"^3.2.4","cheerio":"1.0.0-rc.12","typeorm":"^0.3.26","prettier":"^2.8.3","@types/ws":"^8","tinybench":"^5.1.0","typescript":"~5.8.3","@types/uuid":"^9","@types/jsdom":"^21.1.1","@types/js-yaml":"^4","@langchain/core":"1.1.7","reflect-metadata":"^0.2.2","@langchain/cohere":"1.0.1","@langchain/eslint":"0.1.1","@langchain/openai":"1.2.0","@langchain/tsconfig":"0.0.1","@vitest/coverage-v8":"^3.2.4","@langchain/anthropic":"1.3.2","@tsconfig/recommended":"^1.0.2"},"peerDependencies":{"@langchain/core":"1.1.7"},"_npmOperationalInternal":{"tmp":"tmp/langchain_1.2.2_1766097662473_0.6557967704965826","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":1766097662683,"_cnpm_publish_time":1766097662683,"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"}}