{"name":"langchain","version":"0.0.48","keywords":["llm","ai","gpt3","chain","prompt","prompt engineering","chatgpt","machine learning","ml","openai","embeddings","vectorstores"],"author":{"name":"Langchain"},"license":"MIT","_id":"langchain@0.0.48","maintainers":[{"name":"nfcampos","email":"nuno@boringbits.io"},{"name":"sullivan-sean","email":"ssullivan61198@gmail.com"},{"name":"hwchase17","email":"hw.chase.17@gmail.com"}],"homepage":"https://github.com/hwchase17/langchainjs#readme","bugs":{"url":"https://github.com/hwchase17/langchainjs/issues"},"dist":{"shasum":"41bc970076cbd97868be66411a02a84b71afc40f","tarball":"http://registry-npm.ywwl.com/langchain/download/langchain-0.0.48.tgz","fileCount":708,"integrity":"sha512-MGMSm3TcCf9yq8wVIPe8LmhAQ4Z7e7nq3i34OnR+IEtn1uRdk8EjWPutHjSqbPDNQfbr6CCNcnK4obK2/wIrwg==","signatures":[{"sig":"MEUCIQCH+FTAtYbDwCnHUO0X+VCP/u+ECT5C89GhyYZDDttBjQIgA06I9xX53g/tVtUqfFT9rc/Tde6PG2cTrTLqHXe4vHg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1153987,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLF2VACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoW4Q/8CQIYxRd454MHaG5C6o+ncBk4x6BXJjoRHR04jKbUUgpgnWHQ\r\nQPKq+qlm1e3/0TfuEA8kO1vIpVGJDKrkBLiNLsOtnVNrlQY9dnfkplI3VYk9\r\nj7Kcxa7loMaRJbtNiZCzEscAuAl8va+1OS3e3yTTauBGNXFfSyHA70prfyzk\r\npMeOYkxFbCF6jD3DKEPRvPRc4QrRE5b/mMOFTxkkOBKnJofx+7XtElDZQR9E\r\nwD3F1Rcm0ZF5jrFWiL0YM3DccH58ePB7XqGSPrHa6IiGZzkPv7AUoOSIgMKH\r\nOFjBHwp+Nypa2BYKxrsh6RbllifHveOKsoYHIvxvsYsfyDK8148On6vjobZR\r\n1ht80r4p2OMKnAwSYTVLHEKptPr1lwzLt3p0xw75IFdP8rWbufSrWz3Wf99e\r\nkRwXiVNRqzL9itW4mteTftcMwIME4UkEYPGa/9ypQoueh8ACuUwA0yEJxApb\r\nzJ3ZzLF9WCckeva2Aw/SLYphhFNlj/IQDwak/IYcXEtg6UFohlAoqH1mivoP\r\n8jM7x5uGEQHha4CqS6Q3/8P7RuevESeTQW+x6eADiPO64jL+wGQZn32Ah5yN\r\nkLRq/TLcXNhU0cVlEUBcjpgqCSSga+iTxf+I0puJXo1XagQF9Z80M9bSpDed\r\naxGBMIK/whUWgeeH8ev/ODlQJV0GTQ/28e0=\r\n=+rXZ\r\n-----END PGP SIGNATURE-----\r\n","size":229509,"noattachment":false,"key":"/langchain/-/langchain-0.0.48.tgz"},"main":"./index.js","type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.js"},"./llms":{"types":"./llms.d.ts","import":"./llms.js"},"./tools":{"types":"./tools.d.ts","import":"./tools.js"},"./agents":{"types":"./agents.d.ts","import":"./agents.js"},"./chains":{"types":"./chains.d.ts","import":"./chains.js"},"./memory":{"types":"./memory.d.ts","import":"./memory.js"},"./schema":{"types":"./schema.d.ts","import":"./schema.js"},"./sql_db":{"types":"./sql_db.d.ts","import":"./sql_db.js"},"./prompts":{"types":"./prompts.d.ts","import":"./prompts.js"},"./docstore":{"types":"./docstore.d.ts","import":"./docstore.js"},"./document":{"types":"./document.d.ts","import":"./document.js"},"./callbacks":{"types":"./callbacks.d.ts","import":"./callbacks.js"},"./embeddings":{"types":"./embeddings.d.ts","import":"./embeddings.js"},"./retrievers":{"types":"./retrievers.d.ts","import":"./retrievers.js"},"./chat_models":{"types":"./chat_models.d.ts","import":"./chat_models.js"},"./vectorstores":{"types":"./vectorstores.d.ts","import":"./vectorstores.js"},"./base_language":{"types":"./base_language.d.ts","import":"./base_language.js"},"./text_splitter":{"types":"./text_splitter.d.ts","import":"./text_splitter.js"},"./output_parsers":{"types":"./output_parsers.d.ts","import":"./output_parsers.js"},"./document_loaders":{"types":"./document_loaders.d.ts","import":"./document_loaders.js"}},"gitHead":"fde61c8644a8b58f8e5e1bd8da430d13c616fed8","scripts":{"lint":"eslint src && dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts","test":"NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts","build":"yarn clean && tsc --declaration --outDir dist/ && node create-entrypoints.js && node check-tree-shaking.js","clean":"rm -rf dist/ && node create-entrypoints.js clean","format":"prettier --write \"src\"","prepack":"yarn build","release":"release-it --only-version --config .release-it.json","lint:fix":"yarn lint --fix","precommit":"tsc --noEmit && lint-staged","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts","build:watch":"node create-entrypoints.js && tsc --declaration --outDir dist/ --watch","test:single":"NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 50000 -- ","format:check":"prettier --list-different \"src\"","test:integration":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 50000"},"_npmUser":{"name":"nfcampos","email":"nuno@boringbits.io"},"repository":{"url":"git+ssh://git@github.com/hwchase17/langchainjs.git","type":"git"},"_npmVersion":"9.5.0","description":"Typescript bindings for langchain","directories":{},"lint-staged":{"**/*.{ts,tsx}":["prettier --write --ignore-unknown","eslint --cache --fix"]},"_nodeVersion":"19.7.0","dependencies":{"zod":"^3.21.4","flat":"^5.0.2","uuid":"^9.0.0","yaml":"^2.2.1","openai":"^3.2.0","p-queue":"^7.3.4","expr-eval":"^2.0.2","jsonpointer":"^5.0.1","object-hash":"^3.0.0","is-binary-path":"^2.1.0","browser-or-node":"^2.1.1","@anthropic-ai/sdk":"^0.4.2","exponential-backoff":"^3.1.0","@fortaine/fetch-event-source":"^3.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"dpdm":"^3.12.0","jest":"^29.5.0","epub2":"^3.0.1","redis":"^4.6.4","d3-dsv":"^3.0.1","dotenv":"^16.0.3","eslint":"^8.33.0","rollup":"^3.19.1","cheerio":"^1.0.0-rc.12","mammoth":"^1.5.1","sqlite3":"^5.1.4","ts-jest":"^29.0.5","ts-node":"^10.9.1","typeorm":"^0.3.12","prettier":"^2.8.3","cohere-ai":"^5.0.2","puppeteer":"^19.7.2","replicate":"^0.6.0","babel-jest":"^29.5.0","pdfjs-dist":"^3.4.120","release-it":"^15.10.1","typescript":"^4.9.5","@babel/core":"^7.20.12","@types/flat":"^5.0.2","@types/uuid":"^9","lint-staged":"^13.1.1","hnswlib-node":"^1.4.2","html-to-text":"^9.0.5","srt-parser-2":"^1.2.2","@jest/globals":"^29.5.0","@types/d3-dsv":"^3","@dqbd/tiktoken":"^1.0.2","@faker-js/faker":"^7.6.0","@types/pdf-parse":"^1.1.1","@babel/preset-env":"^7.20.2","@types/object-hash":"^3.0.2","@types/html-to-text":"^9","eslint-plugin-import":"^2.27.5","@supabase/supabase-js":"^2.10.0","@tsconfig/recommended":"^1.0.2","@huggingface/inference":"^1.5.1","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","eslint-plugin-tree-shaking":"^1.10.0","@pinecone-database/pinecone":"^0.0.10","@typescript-eslint/eslint-plugin":"^5.51.0"},"peerDependencies":{"epub2":"^3.0.1","redis":"^4.6.4","d3-dsv":"^3.0.1","cheerio":"^1.0.0-rc.12","mammoth":"*","typeorm":"^0.3.12","chromadb":"^1.3.0","cohere-ai":"^5.0.2","puppeteer":"^19.7.2","replicate":"^0.6.0","pdfjs-dist":"^3.4.120","hnswlib-node":"^1.4.2","html-to-text":"^9.0.5","srt-parser-2":"^1.2.2","@dqbd/tiktoken":"^1.0.2","@supabase/supabase-js":"^2.10.0","@huggingface/inference":"^1.5.1","@pinecone-database/pinecone":"^0.0.10"},"peerDependenciesMeta":{"epub2":{"optional":true},"redis":{"optional":true},"d3-dsv":{"optional":true},"cheerio":{"optional":true},"mammoth":{"optional":true},"typeorm":{"optional":true},"chromadb":{"optional":true},"cohere-ai":{"optional":true},"puppeteer":{"optional":true},"replicate":{"optional":true},"pdfjs-dist":{"optional":true},"hnswlib-node":{"optional":true},"html-to-text":{"optional":true},"srt-parser-2":{"optional":true},"@dqbd/tiktoken":{"optional":true},"@supabase/supabase-js":{"optional":true},"@huggingface/inference":{"optional":true},"@pinecone-database/pinecone":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/langchain_0.0.48_1680629141246_0.5567533675888436","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":1680629141531,"_cnpm_publish_time":1680629141531,"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"}}