{"_id":"@4xxi/langchain","_rev":"3-c909b3344ad0b62b6613a350adf681ef","name":"@4xxi/langchain","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"@4xxi/langchain","version":"1.0.0","keywords":["langchain","mistral","ocr","document","parser"],"license":"MIT","_id":"@4xxi/langchain@1.0.0","maintainers":[{"name":"beshkenadze","email":"beshkenadze@gmail.com"}],"homepage":"https://github.com/4xxi/langchain#readme","bugs":{"url":"https://github.com/4xxi/langchain/issues"},"dist":{"shasum":"4b3032156aa0bd3da01a98e234b1a9c057af340f","tarball":"https://registry.npmjs.org/@4xxi/langchain/-/langchain-1.0.0.tgz","fileCount":15,"integrity":"sha512-ZLvcKEX4fTOwn/qbM+uPD7b3NZgIKiJiAKN/86PClveN+apsAOe4ak2IxYIF+X8LzNCUF9QUIHmaXOsgRm2O6Q==","signatures":[{"sig":"MEUCIEI85r1ajPefNvvj7qSwUqugIroaJqPDsGCTXl0Mf24+AiEAxLs5uED4D/JqRHQc/Zp97D7KQc33e9SMjMRxYpjHKAs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":70239},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"},"./document_loaders/fs/mistral-ocr":{"types":"./dist/document_loaders/fs/mistral-ocr/index.d.ts","import":"./dist/document_loaders/fs/mistral-ocr/index.js","default":"./dist/document_loaders/fs/mistral-ocr/index.js","require":"./dist/document_loaders/fs/mistral-ocr/index.cjs"}},"gitHead":"d08ed12038335924dcb9d227eed698fb1084c103","private":false,"scripts":{"lint":"eslint src && dpdm --exit-code circular:1 src/index.ts","test":"vitest run","build":"node build.js","clean":"rm -rf dist/","format":"prettier --write \"src/**/*.ts\"","lint:fix":"eslint --fix src","test:setup":"tsx scripts/generate-test-images.ts","test:watch":"vitest watch","build:watch":"node build.watch.js","format:check":"prettier --check \"src/**/*.ts\"","test:coverage":"vitest run --coverage","prepublishOnly":"npm run clean && npm run build","test:integration":"vitest run -c vitest.integration.config.ts","test:integration:watch":"vitest watch -c vitest.integration.config.ts"},"_npmUser":{"name":"beshkenadze","email":"beshkenadze@gmail.com"},"repository":{"url":"git+https://github.com/4xxi/langchain.git","type":"git"},"_npmVersion":"10.8.2","description":"A LangChain integration for parsing OCR documents using Mistral models.","directories":{},"_nodeVersion":"20.19.0","dependencies":{"sharp":"^0.33.5","dotenv":"^16.4.7","langchain":"^0.3.19","pdf-parse":"^1.1.1","pdfjs-dist":"^5.0.375","@langchain/core":"^0.3.42","@mistralai/mistralai":"^1.5.2"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","dpdm":"^3.14.0","eslint":"^9.22.0","vitest":"^3.0.9","esbuild":"^0.25.1","prettier":"^3.5.3","@eslint/js":"^9.22.0","typescript":"^5.8.2","@types/node":"^22.13.10","@types/pdf-parse":"^1.1.4","typescript-eslint":"^8.27.0","@vitest/coverage-v8":"^3.0.9","eslint-config-prettier":"^10.1.1","eslint-plugin-prettier":"^5.2.3","@typescript-eslint/parser":"^8.27.0","@typescript-eslint/eslint-plugin":"^8.27.0"},"_npmOperationalInternal":{"tmp":"tmp/langchain_1.0.0_1742497134770_0.5678872959086658","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@4xxi/langchain","version":"1.1.0","keywords":["langchain","mistral","ocr","document","parser"],"license":"MIT","_id":"@4xxi/langchain@1.1.0","maintainers":[{"name":"beshkenadze","email":"beshkenadze@gmail.com"}],"homepage":"https://github.com/4xxi/langchain#readme","bugs":{"url":"https://github.com/4xxi/langchain/issues"},"dist":{"shasum":"14f51541f3dd5151ee4e48e51ededa00c4efd531","tarball":"https://registry.npmjs.org/@4xxi/langchain/-/langchain-1.1.0.tgz","fileCount":19,"integrity":"sha512-6lG7XeNdDGNjwcp/f5soGUxm852FAB8/Gw998Zwykgb59SSlS5MXkE6GHgSVc3mKl3Bx75CfVH8+3g8iQaf9Xw==","signatures":[{"sig":"MEYCIQCtoqqmYjlhmQBnaNGxK5Ggt5yLwZlSMHSOr+SBognjKAIhAMourDyu2tGeBKngJXvnICXkHtBUtulNYl32NVhjYGLT","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":120583},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"},"./document_loaders/fs/mistral-ocr":{"types":"./dist/document_loaders/fs/mistral-ocr/index.d.ts","import":"./dist/document_loaders/fs/mistral-ocr/index.js","default":"./dist/document_loaders/fs/mistral-ocr/index.js","require":"./dist/document_loaders/fs/mistral-ocr/index.cjs"}},"gitHead":"3e508ed5e0d54df9575cf5e1dc9393d24257e23c","private":false,"scripts":{"lint":"eslint src && dpdm --exit-code circular:1 src/index.ts","test":"vitest run","build":"node build.js","clean":"rm -rf dist/","format":"prettier --write \"src/**/*.ts\"","lint:fix":"eslint --fix src","test:setup":"tsx scripts/generate-test-images.ts","test:watch":"vitest watch","build:watch":"node build.watch.js","format:check":"prettier --check \"src/**/*.ts\"","test:coverage":"vitest run --coverage","prepublishOnly":"npm run clean && npm run build","test:integration":"vitest run -c vitest.integration.config.ts","test:integration:watch":"vitest watch -c vitest.integration.config.ts"},"_npmUser":{"name":"beshkenadze","email":"beshkenadze@gmail.com"},"repository":{"url":"git+https://github.com/4xxi/langchain.git","type":"git"},"_npmVersion":"10.8.2","description":"A LangChain integration for parsing OCR documents using Mistral models.","directories":{},"_nodeVersion":"20.19.0","dependencies":{"sharp":"^0.33.5","dotenv":"^16.4.7","langchain":"^0.3.19","pdf-parse":"^1.1.1","pdfjs-dist":"^5.0.375","@langchain/core":"^0.3.42","@mistralai/mistralai":"^1.5.2"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","dpdm":"^3.14.0","eslint":"^9.22.0","vitest":"^3.0.9","esbuild":"^0.25.1","prettier":"^3.5.3","@eslint/js":"^9.22.0","typescript":"^5.8.2","@types/node":"^22.13.10","@types/pdf-parse":"^1.1.4","typescript-eslint":"^8.27.0","@vitest/coverage-v8":"^3.0.9","eslint-config-prettier":"^10.1.1","eslint-plugin-prettier":"^5.2.3","@typescript-eslint/parser":"^8.27.0","@typescript-eslint/eslint-plugin":"^8.27.0"},"_npmOperationalInternal":{"tmp":"tmp/langchain_1.1.0_1742840409497_0.31821326161408536","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@4xxi/langchain","version":"1.1.1","private":false,"type":"module","engines":{"node":">=20"},"main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs","default":"./dist/index.js"},"./document_loaders/fs/mistral-ocr":{"types":"./dist/document_loaders/fs/mistral-ocr/index.d.ts","import":"./dist/document_loaders/fs/mistral-ocr/index.js","require":"./dist/document_loaders/fs/mistral-ocr/index.cjs","default":"./dist/document_loaders/fs/mistral-ocr/index.js"}},"scripts":{"build":"node build.js","build:watch":"node build.watch.js","build:examples":"node build.examples.js","run:examples:simple":"node examples/dist/simple.js","run:examples:nike":"node examples/dist/nike-10k.js","run:examples":"npm run build:examples && npm run run:examples:simple && npm run run:examples:nike","clean":"rm -rf dist/","lint":"eslint src && dpdm --exit-code circular:1 src/index.ts","lint:fix":"eslint --fix src","test":"vitest run","test:watch":"vitest watch","test:coverage":"vitest run --coverage","test:integration":"vitest run -c vitest.integration.config.ts","test:integration:watch":"vitest watch -c vitest.integration.config.ts","test:setup":"tsx scripts/generate-test-images.ts","format":"prettier --write \"src/**/*.ts\"","format:check":"prettier --check \"src/**/*.ts\"","prepublishOnly":"npm run clean && npm run build"},"dependencies":{"@langchain/core":"^0.3.42","@mistralai/mistralai":"^1.5.2","dotenv":"^16.4.7","langchain":"^0.3.19","pdf-parse":"^1.1.1","pdfjs-dist":"^5.0.375","sharp":"^0.33.5"},"devDependencies":{"@eslint/js":"^9.22.0","@types/node":"^22.13.10","@types/pdf-parse":"^1.1.4","@typescript-eslint/eslint-plugin":"^8.27.0","@typescript-eslint/parser":"^8.27.0","@vitest/coverage-v8":"^3.0.9","dpdm":"^3.14.0","esbuild":"^0.25.1","eslint":"^9.22.0","eslint-config-prettier":"^10.1.1","eslint-plugin-prettier":"^5.2.3","prettier":"^3.5.3","tsx":"^4.19.3","typescript":"^5.8.2","typescript-eslint":"^8.27.0","vitest":"^3.0.9"},"keywords":["langchain","mistral","ocr","document","parser"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/4xxi/langchain.git"},"_id":"@4xxi/langchain@1.1.1","gitHead":"5ff74b08e54a7f61e84909b1dee7e8c870da592b","description":"A LangChain integration for parsing OCR documents using Mistral models.","bugs":{"url":"https://github.com/4xxi/langchain/issues"},"homepage":"https://github.com/4xxi/langchain#readme","_nodeVersion":"20.19.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-Uk2Doo1I4ZqKeWN1JlIHChT6opMkTSUQekg5UuT+xlOmDrml2/o1oQZE8pXQHRY1Z4YYQLBXGBr5yrGVlqRv4g==","shasum":"0ce837232da0f8d76363f8b7c5c60c765d596fb9","tarball":"https://registry.npmjs.org/@4xxi/langchain/-/langchain-1.1.1.tgz","fileCount":19,"unpackedSize":121831,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBHO+pAtvprKw0hMZLykZAFZh5whH0zLTQDqZxpPuNyJAiBsfPeDI486u2DGKxVppTMOoT0lk6N0UYkV0eCsXkehfw=="}]},"_npmUser":{"name":"beshkenadze","email":"beshkenadze@gmail.com"},"directories":{},"maintainers":[{"name":"beshkenadze","email":"beshkenadze@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/langchain_1.1.1_1742843247480_0.8304333943877635"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-20T18:58:54.681Z","modified":"2025-03-24T19:07:27.878Z","1.0.0":"2025-03-20T18:58:54.945Z","1.1.0":"2025-03-24T18:20:09.748Z","1.1.1":"2025-03-24T19:07:27.674Z"},"bugs":{"url":"https://github.com/4xxi/langchain/issues"},"license":"MIT","homepage":"https://github.com/4xxi/langchain#readme","keywords":["langchain","mistral","ocr","document","parser"],"repository":{"type":"git","url":"git+https://github.com/4xxi/langchain.git"},"description":"A LangChain integration for parsing OCR documents using Mistral models.","maintainers":[{"name":"beshkenadze","email":"beshkenadze@gmail.com"}],"readme":"# Mistral OCR Parser\n\nA LangChain integration for parsing OCR documents using Mistral models.\n\n## Installation\n\n```bash\nnpm install @4xxi/langchain\n```\n\n## Usage\n\n```typescript\nimport { MistralOcrPDFLoader } from '@4xxi/langchain';\n\nconst loader = new MistralOcrPDFLoader(\n  'path/to/your/document.pdf', \n  { \n    apiKey: 'your-mistral-api-key',\n    modelName: 'mistral-large-latest'\n  }\n);\n\nconst docs = await loader.load();\nconsole.log(docs);\n```\n\n## Setup for Development\n\n```bash\n# Install dependencies\nnpm install\n\n# Build the project\nnpm run build\n\n# Run tests\nnpm test\n```\n\n## Development\n\n- `npm run build` - Build the project\n- `npm run build:watch` - Watch and rebuild on changes\n- `npm run test` - Run tests\n- `npm run test:watch` - Watch and run tests on changes\n- `npm run lint` - Run linting\n- `npm run format` - Format code\n\n## Releasing\n\nWe use GitHub Actions to automate the release process. For detailed instructions, see [RELEASE.md](RELEASE.md).\n\nQuick steps for manual release:\n```bash\n# Bump version (patch, minor, or major)\nnpm version patch\n\n# Build and publish to npm\nnpm publish --access public\n\n# Push changes to GitHub\ngit push && git push --tags\n```\n\n## Contributing\n\nPlease follow the [LangChain contribution guidelines](https://github.com/langchain-ai/langchainjs/blob/main/CONTRIBUTING.md) when making changes to this project.\n\n## License\n\nMIT ","readmeFilename":"README.md"}