{"_id":"@cohesiumai/browser-ai","_rev":"3-26815bd844fccc3b8fabfa6eadfd573a","name":"@cohesiumai/browser-ai","dist-tags":{"latest":"2.1.2"},"versions":{"0.2.0":{"name":"@cohesiumai/browser-ai","version":"0.2.0","keywords":["ai","browser","local-ai","webgpu","webnn","wasm","llm","machine-learning","inference","privacy"],"license":"MIT","_id":"@cohesiumai/browser-ai@0.2.0","maintainers":[{"name":"cohesiumai","email":"renald@cohesium.ai"}],"homepage":"https://github.com/CohesiumAI/browser-ai#readme","bugs":{"url":"https://github.com/CohesiumAI/browser-ai/issues"},"dist":{"shasum":"f241b880313902c18fb1e586db5c32782f2c40b0","tarball":"https://registry.npmjs.org/@cohesiumai/browser-ai/-/browser-ai-0.2.0.tgz","fileCount":6,"integrity":"sha512-b2XFxRK/K21ZimrMA8srZhIqF69LT0UVWwvx7I0uRIIxFgtdk00py0DFu755jIfoi0GX5Kl62rkqsuhKpEND+Q==","signatures":[{"sig":"MEQCIFd7btrXXXe453tWWDj0YazjHc/L18YgHkOhvl4wd+IdAiBReJnh0fT8MwxUphDkpzgjE1CUABEFneA+GcolMh97aQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3226},"main":"dist/index.js","type":"module","_from":"file:cohesiumai-browser-ai-0.2.0.tgz","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"lint":"eslint src/","test":"vitest run --passWithNoTests","build":"tsup","typecheck":"echo 'skip - simple re-export'"},"_npmUser":{"name":"cohesiumai","email":"renald@cohesium.ai"},"_resolved":"/tmp/e78480ea2b533c60d9ca82d7db74c5ac/cohesiumai-browser-ai-0.2.0.tgz","_integrity":"sha512-b2XFxRK/K21ZimrMA8srZhIqF69LT0UVWwvx7I0uRIIxFgtdk00py0DFu755jIfoi0GX5Kl62rkqsuhKpEND+Q==","repository":{"url":"git+https://github.com/CohesiumAI/browser-ai.git","type":"git","directory":"packages/browser-ai"},"_npmVersion":"10.8.2","description":"The jQuery of local AI — A unified API that abstracts browser AI runtime fragmentation (Native / WebNN / WebGPU / WASM)","directories":{},"_nodeVersion":"20.19.6","dependencies":{"@browser-ai/core":"0.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/browser-ai_0.2.0_1768898133916_0.520775475746561","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@cohesiumai/browser-ai","version":"0.2.1","keywords":["ai","browser","local-ai","webgpu","webnn","wasm","llm","machine-learning","inference","privacy"],"license":"MIT","_id":"@cohesiumai/browser-ai@0.2.1","maintainers":[{"name":"cohesiumai","email":"renald@cohesium.ai"}],"homepage":"https://github.com/CohesiumAI/browser-ai#readme","bugs":{"url":"https://github.com/CohesiumAI/browser-ai/issues"},"dist":{"shasum":"6cdb3f6f4f8738dd38444f933f1216f02ea6fa20","tarball":"https://registry.npmjs.org/@cohesiumai/browser-ai/-/browser-ai-0.2.1.tgz","fileCount":6,"integrity":"sha512-11VwQT7GwaRtxPzX8INhGjNdXWMWnXpfMNUmTvoB3HYKPupSCaBgr0UQgxmGsbVk3TY2saVEi8ZyJZURaQ08jQ==","signatures":[{"sig":"MEYCIQDNBLcrpyStK8qk0KGzuoA5vpf9Aii/J9JPolE6zO7i9gIhAPYx1iqAtka1rrMhdqO2adOyR5o1BqKQ5dtBq2Dh6Ebi","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3226},"main":"dist/index.js","type":"module","_from":"file:cohesiumai-browser-ai-0.2.1.tgz","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"lint":"eslint src/","test":"vitest run --passWithNoTests","build":"tsup","typecheck":"echo 'skip - simple re-export'"},"_npmUser":{"name":"cohesiumai","email":"renald@cohesium.ai"},"_resolved":"/tmp/6079fdbdf8f43da1465cdd6f40d2391f/cohesiumai-browser-ai-0.2.1.tgz","_integrity":"sha512-11VwQT7GwaRtxPzX8INhGjNdXWMWnXpfMNUmTvoB3HYKPupSCaBgr0UQgxmGsbVk3TY2saVEi8ZyJZURaQ08jQ==","repository":{"url":"git+https://github.com/CohesiumAI/browser-ai.git","type":"git","directory":"packages/browser-ai"},"_npmVersion":"10.8.2","description":"The jQuery of local AI — A unified API that abstracts browser AI runtime fragmentation (Native / WebNN / WebGPU / WASM)","directories":{},"_nodeVersion":"20.19.6","dependencies":{"@cohesiumai/core":"0.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/browser-ai_0.2.1_1768905733220_0.666961332839584","host":"s3://npm-registry-packages-npm-production"}},"2.1.2":{"name":"@cohesiumai/browser-ai","version":"2.1.2","description":"The jQuery of local AI — A unified API that abstracts browser AI runtime fragmentation (Native / WebNN / WebGPU / WASM)","type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"dependencies":{"@cohesiumai/core":"2.1.2"},"peerDependencies":{"typescript":"^5.0.0"},"publishConfig":{"access":"public"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/CohesiumAI/browser-ai.git","directory":"packages/browser-ai"},"homepage":"https://github.com/CohesiumAI/browser-ai#readme","bugs":{"url":"https://github.com/CohesiumAI/browser-ai/issues"},"keywords":["ai","browser","local-ai","webgpu","webnn","wasm","llm","machine-learning","inference","privacy"],"scripts":{"build":"tsup","typecheck":"echo 'skip - simple re-export'","lint":"eslint src/","test":"vitest run --passWithNoTests"},"_id":"@cohesiumai/browser-ai@2.1.2","_integrity":"sha512-MTNL1xTQAGVo7+INqHn2AgXNw/Bk3MTWudKUR8JY3oAWUAl+CYNkGnXRudltXCdHALOcFX1UFTUMm7H2P/FL6g==","_resolved":"/tmp/dde413120ea6b9596ffca84c38d6d481/cohesiumai-browser-ai-2.1.2.tgz","_from":"file:cohesiumai-browser-ai-2.1.2.tgz","_nodeVersion":"20.19.6","_npmVersion":"10.8.2","dist":{"integrity":"sha512-MTNL1xTQAGVo7+INqHn2AgXNw/Bk3MTWudKUR8JY3oAWUAl+CYNkGnXRudltXCdHALOcFX1UFTUMm7H2P/FL6g==","shasum":"1f77115520f55abdb626f907430a9504fd3758d0","tarball":"https://registry.npmjs.org/@cohesiumai/browser-ai/-/browser-ai-2.1.2.tgz","fileCount":6,"unpackedSize":3226,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICcv0qXNyVy9qrDrM+R3kGWbepsqo+RKK+QMOAVGsC6FAiEAsGPgPwqgCFxZ5iG54Po8wA6JhuEl+dwVYvoV+sbDZs0="}]},"_npmUser":{"name":"cohesiumai","email":"renald@cohesium.ai"},"directories":{},"maintainers":[{"name":"cohesiumai","email":"renald@cohesium.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/browser-ai_2.1.2_1768910610777_0.32402195129081557"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-20T08:35:33.712Z","modified":"2026-01-20T12:03:31.059Z","0.2.0":"2026-01-20T08:35:34.083Z","0.2.1":"2026-01-20T10:42:13.369Z","2.1.2":"2026-01-20T12:03:30.933Z"},"bugs":{"url":"https://github.com/CohesiumAI/browser-ai/issues"},"license":"MIT","homepage":"https://github.com/CohesiumAI/browser-ai#readme","keywords":["ai","browser","local-ai","webgpu","webnn","wasm","llm","machine-learning","inference","privacy"],"repository":{"type":"git","url":"git+https://github.com/CohesiumAI/browser-ai.git","directory":"packages/browser-ai"},"description":"The jQuery of local AI — A unified API that abstracts browser AI runtime fragmentation (Native / WebNN / WebGPU / WASM)","maintainers":[{"name":"cohesiumai","email":"renald@cohesium.ai"}],"readme":"# @cohesiumai/browser-ai\n\n> **\"The jQuery of local AI\"** — A unified API that abstracts browser AI runtime fragmentation (Native / WebNN / WebGPU / WASM).\n\n## Installation\n\n```bash\nnpm install @cohesiumai/browser-ai\n```\n\n## Quick Start\n\n```typescript\nimport { createBrowserAI } from '@cohesiumai/browser-ai';\n\nconst ai = createBrowserAI({\n  config: { providerPolicy: { order: ['native', 'webllm'] } },\n  providers: [/* your providers */],\n});\n\nawait ai.init();\n\nconst { result } = ai.generate({\n  messages: [{ role: 'user', content: 'Hello!' }],\n});\n\nconst response = await result;\nconsole.log(response.text);\n```\n\n## Documentation\n\nFull documentation: https://github.com/CohesiumAI/browser-ai\n\n## License\n\nMIT\n","readmeFilename":"README.md"}