{"name":"langchain","version":"0.0.9","keywords":["llm","ai","gpt3","chain","prompt","prompt engineering","chatgpt","machine learning","ml","openai","embeddings","vectorstores"],"author":"Langchain","license":"MIT","_id":"langchain@0.0.9","maintainers":[{"name":"sullivan-sean","email":"ssullivan61198@gmail.com"},{"name":"hwchase17","email":"hw.chase.17@gmail.com"}],"dist":{"shasum":"aebde5be4a417be8ffd4fd300fbae020258313a7","tarball":"http://registry-npm.ywwl.com/langchain/download/langchain-0.0.9.tgz","fileCount":287,"integrity":"sha512-4jUMucQHaxvNCTNC+kH46svMc2t+K6fqMSC/CXreFP2CwZEeItYupotM62v7vPqzIWjmLNX4CAEUDZEoCkdG5Q==","signatures":[{"sig":"MEYCIQDX8znkNrpQQr+WPROuC4mKuZicoLyToSlwQkfDs6+zmgIhAObR/dbhJ0ps7uLQyVpDPlXN2OyjPENJ9cItaJT3l1km","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":347003,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9G/6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmppkw/9EzobhPwlVO9KSQy3rCe7DfSN5HAcyZaonf3jUtd8n1tc0LFz\r\nC1ChVAyv6MrJzuCWH/K04u+bM0wYTDyGG5lxFQ6/xHhHI8jQPJIMqrwgi00j\r\ndENujsgmzJYZNu55XOZLkua/sjk9wKzrmKnCuaqaRmaw3PVps9W7jwPw7b4x\r\n0lY5kuxzK2E+lZz0+Gt7dcsPaHSzAdX+FeVdwq7yQHPFIVjW+5X3FAfcsJbX\r\nORks1LFA7Y/aUel3gOx4Q3MZuivqVGrGliVc7ghqKQQFk1jjZvnXqDAOeyGU\r\niKayZCUJdn5pacFOUAGjRkBACTbZl5F+K9FD+OFvIU4S7PQxhNNTMboZEgjP\r\njHt07IIYTwMxHIimTQg3PBQkPSwPI6P2e4hbmSHOx+824sblKjvHnQosJ1af\r\ngF6x+C2yxM0EyUFwoUB7PFOCaQa70aDNJvxYIjAjyrsBeJjbxfCDMzgw/d05\r\nW++oNJvO4sPZVertSyc7XZxfMjM73NJ93gKlkCOl61eUdgrmOffoJ+JcKD/T\r\nyW8pEyN2IYzbjFWnIUYO2HeL+XOh3Megzo2a6kxMPILV/izrVApDGGdLYvMv\r\nYIApaKiAMNGhb/y8kX24n0yWPKZ8nSah9eTXW89YC+wKuDdEVX3YwtXkKAd8\r\n2kFulLt2It/3F/aFWxDj2O7lmQCHbKXwl+E=\r\n=SNww\r\n-----END PGP SIGNATURE-----\r\n","size":76208,"noattachment":false,"key":"/langchain/-/langchain-0.0.9.tgz"},"main":"./index.js","types":"./index.d.ts","exports":{".":{"import":"./index.mjs","default":"./index.js"},"./llms":{"import":"./llms.mjs","default":"./llms.js"},"./tools":{"import":"./tools.mjs","default":"./tools.js"},"./agents":{"import":"./agents.mjs","default":"./agents.js"},"./chains":{"import":"./chains.mjs","default":"./chains.js"},"./memory":{"import":"./memory.mjs","default":"./memory.js"},"./prompts":{"import":"./prompts.mjs","default":"./prompts.js"},"./docstore":{"import":"./docstore.mjs","default":"./docstore.js"},"./document":{"import":"./document.mjs","default":"./document.js"},"./embeddings":{"import":"./embeddings.mjs","default":"./embeddings.js"},"./vectorstores":{"import":"./vectorstores.mjs","default":"./vectorstores.js"},"./text_splitter":{"import":"./text_splitter.mjs","default":"./text_splitter.js"},"./document_loaders":{"import":"./document_loaders.mjs","default":"./document_loaders.js"}},"gitHead":"009cab2cb24297365843a7ab3688e7c569ad6ef9","scripts":{"ci":"yarn lint && yarn format:diff && yarn build","doc":"typedoc","lint":"eslint .","test":"yarn clean && jest --testPathIgnorePatterns=\\.int\\.test.ts","build":"yarn clean && tsc --declaration --outDir dist/ && node create-entrypoints.js","clean":"rm -rf dist/ && node create-entrypoints.js clean","format":"prettier --write \"**/*.ts\"","prepack":"yarn build","prepare":"husky install","lint:fix":"yarn lint --fix","precommit":"tsc --noEmit && lint-staged","format:diff":"prettier --list-different \"**/*.ts\"","test:integration":"yarn clean && jest --testPathPattern=\\.int\\.test.ts"},"_npmUser":{"name":"hwchase17","email":"hw.chase.17@gmail.com"},"repository":{"url":"git@github.com:hwchase17/langchainjs.git","type":"git"},"description":"Typescript bindings for langchain","directories":{},"lint-staged":{"**/*.{ts,tsx}":["prettier --write --ignore-unknown","eslint --cache --fix"]},"dependencies":{"uuid":"^9.0.0","yaml":"^2.2.1","deepcopy":"^2.1.0","expr-eval":"^2.0.2","node-fetch":"2","eventsource-parser":"^0.1.0","exponential-backoff":"^3.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.4.2","husky":"^8.0.3","dotenv":"^16.0.3","eslint":"^8.33.0","openai":"^3.1.0","cheerio":"^1.0.0-rc.12","serpapi":"^1.1.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","typedoc":"^0.23.25","prettier":"^2.8.3","cohere-ai":"^5.0.2","babel-jest":"^29.4.2","typescript":"^4.9.5","@babel/core":"^7.20.12","@types/uuid":"^9","lint-staged":"^13.1.1","hnswlib-node":"^1.3.0","srt-parser-2":"^1.2.2","@jest/globals":"^29.4.2","@dqbd/tiktoken":"^0.2.1","pinecone-client":"^1.0.1","@babel/preset-env":"^7.20.2","@types/node-fetch":"2","eslint-plugin-import":"^2.27.5","@tsconfig/recommended":"^1.0.2","eslint-config-prettier":"^8.6.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.51.0","eslint-config-airbnb-base":"^15.0.0","typedoc-plugin-missing-exports":"^1.0.0","@typescript-eslint/eslint-plugin":"^5.51.0"},"peerDependencies":{"openai":"^3.1.0","cheerio":"^1.0.0-rc.12","serpapi":"^1.1.1","cohere-ai":"^5.0.2","hnswlib-node":"^1.3.0","srt-parser-2":"^1.2.2","@dqbd/tiktoken":"^0.2.1","pinecone-client":"^1.0.1"},"peerDependenciesMeta":{"openai":{"optional":true},"cheerio":{"optional":true},"serpapi":{"optional":true},"cohere-ai":{"optional":true},"hnswlib-node":{"optional":true},"srt-parser-2":{"optional":true},"@dqbd/tiktoken":{"optional":true},"pinecone-client":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/langchain_0.0.9_1676963833994_0.33113255256677254","host":"s3://npm-registry-packages"},"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":1676963834208,"_cnpm_publish_time":1676963834208,"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"}}