{"_id":"@chatman-media/llm-router","_rev":"5-796945933c1ff8549c751f0df530c909","name":"@chatman-media/llm-router","dist-tags":{"latest":"1.3.0"},"versions":{"1.1.0":{"name":"@chatman-media/llm-router","version":"1.1.0","keywords":["lead-engine","llm","openai","openrouter","ollama"],"author":"Alexander Kireev","license":"MIT","_id":"@chatman-media/llm-router@1.1.0","maintainers":[{"name":"chatman-media","email":"ak.chatman.media@gmail.com"}],"homepage":"https://github.com/chatman-media/lead-engine/tree/main/packages/llm-router#readme","bugs":{"url":"https://github.com/chatman-media/lead-engine/issues"},"dist":{"shasum":"d90f0706a187e027ec0786e26fad090855435b0f","tarball":"https://registry.npmjs.org/@chatman-media/llm-router/-/llm-router-1.1.0.tgz","fileCount":24,"integrity":"sha512-3FuJk1dvBtCRwV0E9KDnlTPcgyo+za71oO76Vn80MDDKvitg+Y5Q4hf8K+HMslLaBtAwjExZ4RHDmyxXEuUv+A==","signatures":[{"sig":"MEQCIFj2+rf9SULbra1jGDawuTyKoj/2ei64l9WDtvAMOvTAAiBGQZfBBhK7LBcaDuPG5oyvAa/ZU5PInQTi5p6zRpjXoA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":57766},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","shasum":"d90f0706a187e027ec0786e26fad090855435b0f","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"test":"bun test","build":"bun build ./src/index.ts --outdir ./dist --target node --format esm && tsc -p tsconfig.build.json","check":"biome check ./src","format":"biome format --write ./src","typecheck":"tsc --noEmit","prepublishOnly":"bun run build"},"_npmUser":{"name":"chatman-media","email":"ak.chatman.media@gmail.com"},"_integrity":"sha512-3FuJk1dvBtCRwV0E9KDnlTPcgyo+za71oO76Vn80MDDKvitg+Y5Q4hf8K+HMslLaBtAwjExZ4RHDmyxXEuUv+A==","repository":{"url":"git+https://github.com/chatman-media/lead-engine.git","type":"git","directory":"packages/llm-router"},"_npmVersion":"10.8.3","description":"Per-tenant LLM routing: BYOK / platform-managed / Ollama. Маршрутизирует (tenantId, purpose) → конкретный ChatClient/EmbeddingClient.","directories":{},"_nodeVersion":"24.3.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"1.3.14","typescript":"^6.0.3","@biomejs/biome":"^2.4.16"},"_npmOperationalInternal":{"tmp":"tmp/llm-router_1.1.0_1780640480269_0.18580611969644134","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@chatman-media/llm-router","version":"1.1.1","keywords":["lead-engine","llm","openai","openrouter","ollama"],"author":"Alexander Kireev","license":"MIT","_id":"@chatman-media/llm-router@1.1.1","maintainers":[{"name":"chatman-media","email":"ak.chatman.media@gmail.com"}],"homepage":"https://github.com/chatman-media/lead-engine/tree/main/packages/llm-router#readme","bugs":{"url":"https://github.com/chatman-media/lead-engine/issues"},"dist":{"shasum":"3ec10488e2534b69fd6385c0f8a39fa1520644c4","tarball":"https://registry.npmjs.org/@chatman-media/llm-router/-/llm-router-1.1.1.tgz","fileCount":24,"integrity":"sha512-q+Y9WwQzw5jl4ZWNXNnYVuD0xd/YQTWSgUwq6CL6uJT5QLug9969TNcA7bb6JF0ErKM3msFobxNDHJizbyIppQ==","signatures":[{"sig":"MEUCIQCOif4zTMVf/yB6PehZhNarBBEC4UpDmf4NHHD+1DnSjQIgZ84ZwvaLLLzu9DCOfv/9DsXMKfl7KMTHK1wMb8t8/Jo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":57796},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","shasum":"3ec10488e2534b69fd6385c0f8a39fa1520644c4","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"test":"bun test","build":"bun build ./src/index.ts --outdir ./dist --target node --format esm && tsc -p tsconfig.build.json","check":"biome check ./src","format":"biome format --write ./src","typecheck":"tsc --noEmit","prepublishOnly":"bun run build"},"_npmUser":{"name":"chatman-media","email":"ak.chatman.media@gmail.com"},"_integrity":"sha512-q+Y9WwQzw5jl4ZWNXNnYVuD0xd/YQTWSgUwq6CL6uJT5QLug9969TNcA7bb6JF0ErKM3msFobxNDHJizbyIppQ==","repository":{"url":"git+https://github.com/chatman-media/lead-engine.git","type":"git","directory":"packages/llm-router"},"_npmVersion":"10.8.3","description":"Per-tenant LLM routing: BYOK / platform-managed / Ollama. Маршрутизирует (tenantId, purpose) → конкретный ChatClient/EmbeddingClient.","directories":{},"_nodeVersion":"24.3.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"1.3.14","typescript":"^6.0.3","@biomejs/biome":"^2.4.16"},"_npmOperationalInternal":{"tmp":"tmp/llm-router_1.1.1_1780703499689_0.7506645111841439","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@chatman-media/llm-router","version":"1.2.0","keywords":["lead-engine","llm","openai","openrouter","ollama"],"author":"Alexander Kireev","license":"MIT","_id":"@chatman-media/llm-router@1.2.0","maintainers":[{"name":"chatman-media","email":"ak.chatman.media@gmail.com"}],"homepage":"https://github.com/chatman-media/lead-engine/tree/main/packages/llm-router#readme","bugs":{"url":"https://github.com/chatman-media/lead-engine/issues"},"dist":{"shasum":"65a7bfa58f1e493532bf2986e4a9dd4cc0a1e11f","tarball":"https://registry.npmjs.org/@chatman-media/llm-router/-/llm-router-1.2.0.tgz","fileCount":34,"integrity":"sha512-eyFV1Mwfrct0k01Yh6TZq30t7B09qsxAyUfcO6P6NYuwT3PH/C+Ajy4yVeK5TKD9LnTR/zN4cJ+InlZVSTM9Ug==","signatures":[{"sig":"MEUCIQDRuBXBRH6OaIL5MctVRXUpSGxIb2zzX9AQg7r6wTc8AQIgExUot6FSwECqWruI6bts1kHLjkPBY5YnDY25Lcr0HuA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":58827},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","shasum":"65a7bfa58f1e493532bf2986e4a9dd4cc0a1e11f","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"test":"bun test","build":"bun build ./src/index.ts --outdir ./dist --target node --format esm && tsc -p tsconfig.build.json","check":"biome check ./src","format":"biome format --write ./src","typecheck":"tsc --noEmit","prepublishOnly":"bun run build"},"_npmUser":{"name":"chatman-media","email":"ak.chatman.media@gmail.com"},"_integrity":"sha512-eyFV1Mwfrct0k01Yh6TZq30t7B09qsxAyUfcO6P6NYuwT3PH/C+Ajy4yVeK5TKD9LnTR/zN4cJ+InlZVSTM9Ug==","repository":{"url":"git+https://github.com/chatman-media/lead-engine.git","type":"git","directory":"packages/llm-router"},"_npmVersion":"10.8.3","description":"Per-tenant LLM routing: BYOK / platform-managed / Ollama. Маршрутизирует (tenantId, purpose) → конкретный ChatClient/EmbeddingClient.","directories":{},"_nodeVersion":"24.3.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"1.3.14","typescript":"^6.0.3","@biomejs/biome":"^2.4.16"},"_npmOperationalInternal":{"tmp":"tmp/llm-router_1.2.0_1781174637522_0.19400414856048664","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@chatman-media/llm-router","version":"1.2.1","keywords":["lead-engine","llm","openai","openrouter","ollama"],"author":"Alexander Kireev","license":"MIT","_id":"@chatman-media/llm-router@1.2.1","maintainers":[{"name":"chatman-media","email":"ak.chatman.media@gmail.com"}],"homepage":"https://github.com/chatman-media/lead-engine/tree/main/packages/llm-router#readme","bugs":{"url":"https://github.com/chatman-media/lead-engine/issues"},"dist":{"shasum":"c2e0f74d2566f9cd1d686d3759a0271a19d58b7a","tarball":"https://registry.npmjs.org/@chatman-media/llm-router/-/llm-router-1.2.1.tgz","fileCount":34,"integrity":"sha512-KuImnw84uaYtN/fkepURVw6xpvgI/7DyEHcrV3Wi2BRFfPNcRubg+KZRXJoK2ol9ZJVDXZTM5XBWf2ACr8tZ4g==","signatures":[{"sig":"MEUCID91f8VTewqJgywSFEcWM+LUYZnt9D1iY7QNWj4WEVJbAiEA9TDNNLZUZgp+7fJaUzV7ZhOSAKnrHaa1GOmDfTznZ+E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":58827},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","shasum":"c2e0f74d2566f9cd1d686d3759a0271a19d58b7a","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"test":"bun test","build":"bun build ./src/index.ts --outdir ./dist --target node --format esm && tsc -p tsconfig.build.json","check":"biome check ./src","format":"biome format --write ./src","typecheck":"tsc --noEmit","prepublishOnly":"bun run build"},"_npmUser":{"name":"chatman-media","email":"ak.chatman.media@gmail.com"},"_integrity":"sha512-KuImnw84uaYtN/fkepURVw6xpvgI/7DyEHcrV3Wi2BRFfPNcRubg+KZRXJoK2ol9ZJVDXZTM5XBWf2ACr8tZ4g==","repository":{"url":"git+https://github.com/chatman-media/lead-engine.git","type":"git","directory":"packages/llm-router"},"_npmVersion":"10.8.3","description":"Per-tenant LLM routing: BYOK / platform-managed / Ollama. Маршрутизирует (tenantId, purpose) → конкретный ChatClient/EmbeddingClient.","directories":{},"_nodeVersion":"24.3.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"1.3.14","typescript":"^6.0.3","@biomejs/biome":"^2.4.16"},"_npmOperationalInternal":{"tmp":"tmp/llm-router_1.2.1_1781252495248_0.2588128101445073","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@chatman-media/llm-router","version":"1.3.0","description":"Per-tenant LLM routing: BYOK / platform-managed / Ollama. Маршрутизирует (tenantId, purpose) → конкретный ChatClient/EmbeddingClient.","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"scripts":{"build":"bun build ./src/index.ts --outdir ./dist --target node --format esm && tsc -p tsconfig.build.json","typecheck":"tsc --noEmit","check":"biome check ./src","format":"biome format --write ./src","test":"bun test","prepublishOnly":"bun run build"},"keywords":["lead-engine","llm","openai","openrouter","ollama"],"author":"Alexander Kireev","license":"MIT","devDependencies":{"@biomejs/biome":"^2.5.0","@types/bun":"1.3.14","typescript":"^6.0.3"},"repository":{"type":"git","url":"git+https://github.com/chatman-media/lead-engine.git","directory":"packages/llm-router"},"homepage":"https://github.com/chatman-media/lead-engine/tree/main/packages/llm-router#readme","bugs":{"url":"https://github.com/chatman-media/lead-engine/issues"},"publishConfig":{"access":"public"},"_id":"@chatman-media/llm-router@1.3.0","_integrity":"sha512-M9R85vGO1+CEtnrae+x2VGM29GByoRA9DSDJXC5lHiUWP/3DwCZzOpHF3hQZEFWmwwFNyotDNcg+5itoUHPIAA==","_nodeVersion":"24.3.0","_npmVersion":"10.8.3","shasum":"24ce1848ea41e6eb8c79057cc1868adce190f4ce","dist":{"integrity":"sha512-M9R85vGO1+CEtnrae+x2VGM29GByoRA9DSDJXC5lHiUWP/3DwCZzOpHF3hQZEFWmwwFNyotDNcg+5itoUHPIAA==","shasum":"24ce1848ea41e6eb8c79057cc1868adce190f4ce","tarball":"https://registry.npmjs.org/@chatman-media/llm-router/-/llm-router-1.3.0.tgz","fileCount":34,"unpackedSize":62402,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCibWD3lRspZJM3F/gmQgQRxq90BHXggN2uVpOnJkrZtgIhAJj4j1kWTK4/dxqx/YYLbCqDIPdZ8364VBZ90QDU8ARM"}]},"_npmUser":{"name":"chatman-media","email":"ak.chatman.media@gmail.com"},"directories":{},"maintainers":[{"name":"chatman-media","email":"ak.chatman.media@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/llm-router_1.3.0_1781526124380_0.4272418574037562"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-05T06:21:20.089Z","modified":"2026-06-15T12:22:04.624Z","1.1.0":"2026-06-05T06:21:20.416Z","1.1.1":"2026-06-05T23:51:39.828Z","1.2.0":"2026-06-11T10:43:57.707Z","1.2.1":"2026-06-12T08:21:35.377Z","1.3.0":"2026-06-15T12:22:04.523Z"},"bugs":{"url":"https://github.com/chatman-media/lead-engine/issues"},"author":"Alexander Kireev","license":"MIT","homepage":"https://github.com/chatman-media/lead-engine/tree/main/packages/llm-router#readme","keywords":["lead-engine","llm","openai","openrouter","ollama"],"repository":{"type":"git","url":"git+https://github.com/chatman-media/lead-engine.git","directory":"packages/llm-router"},"description":"Per-tenant LLM routing: BYOK / platform-managed / Ollama. Маршрутизирует (tenantId, purpose) → конкретный ChatClient/EmbeddingClient.","maintainers":[{"name":"chatman-media","email":"ak.chatman.media@gmail.com"}],"readme":"# @chatman-media/llm-router\n\n[![npm version](https://img.shields.io/npm/v/@chatman-media/llm-router?logo=npm&color=22c55e)](https://www.npmjs.com/package/@chatman-media/llm-router)\n[![CI](https://github.com/chatman-media/lead-engine/actions/workflows/ci.yml/badge.svg)](https://github.com/chatman-media/lead-engine/actions/workflows/ci.yml)\n[![TypeScript](https://img.shields.io/badge/TypeScript-strict-3178c6?logo=typescript&logoColor=white)](https://www.typescriptlang.org/)\n[![Bun](https://img.shields.io/badge/Bun-compatible-fbf0df?logo=bun&logoColor=black)](https://bun.sh/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n\nPer-tenant LLM routing: BYOK / platform-managed / Ollama. Routes `(tenantId, purpose)` → a concrete `ChatClient` / `EmbeddingClient`.\n\nPart of the [**lead-engine**](https://github.com/chatman-media/lead-engine) monorepo — a multi-tenant SaaS platform for AI sales bots on Telegram / WhatsApp.\n\n## Install\n\n```bash\nbun add @chatman-media/llm-router     # Bun\nnpm install @chatman-media/llm-router # npm / pnpm / yarn\n```\n\n## License\n\n[MIT](LICENSE) — Alexander Kireev / [chatman-media](https://github.com/chatman-media)\n","readmeFilename":"README.md"}