{"_id":"@antronic/gpustack-bridge","name":"@antronic/gpustack-bridge","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@antronic/gpustack-bridge","version":"0.1.0","description":"Universal GPUStack model catalog and integration bridge.","type":"module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/antronic/gpustack-bridge.git"},"homepage":"https://github.com/antronic/gpustack-bridge#readme","bugs":{"url":"https://github.com/antronic/gpustack-bridge/issues"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./node":{"types":"./dist/node.d.ts","import":"./dist/node.js"}},"main":"./dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=18"},"scripts":{"build":"bun build ./src/index.ts ./src/node.ts --outdir ./dist --target bun --format esm && tsc -p tsconfig.build.json","check":"bun run typecheck && bun run lint && bun test","lint":"biome check .","format":"biome check --write .","typecheck":"tsc --noEmit","test":"bun test","test:package":"bun run build && bun ./scripts/package-smoke.ts","test:jsr":"bunx jsr publish --dry-run --allow-dirty","prepack":"bun run check && bun run build"},"devDependencies":{"@biomejs/biome":"^2.2.0","@types/bun":"^1.2.21","typescript":"^5.9.2"},"gitHead":"e2926d3695dd3010bac317bf3902ed259b9403c3","_id":"@antronic/gpustack-bridge@0.1.0","_nodeVersion":"26.7.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-uHIJkmNbeEAcqscKxQmBNBNg9fx/So4KCOro+ZYv5d3CamFmnrAZzq8dJ0hdx2YHUtOHVAGf+h5vkbuleIhuog==","shasum":"8ec474598d07cfbd5fe2850cf37a2340b236bb86","tarball":"https://registry.npmjs.org/@antronic/gpustack-bridge/-/gpustack-bridge-0.1.0.tgz","fileCount":11,"unpackedSize":25095,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDJ6Gl97lDoVTW6TZmgKZVFDhqZnTsW3LJzFIcN31/IDQIhALDBIi275SmaE1yKT85lJsBDWcf8JlVO/yurq9sL0tt7"}]},"_npmUser":{"name":"antronic","email":"antronic.inc@gmail.com"},"directories":{},"maintainers":[{"name":"antronic","email":"antronic.inc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/gpustack-bridge_0.1.0_1787928671143_0.5963612371545999"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-28T14:51:10.431Z","0.1.0":"2026-08-28T14:51:11.301Z","modified":"2026-08-28T14:51:11.989Z"},"maintainers":[{"name":"antronic","email":"antronic.inc@gmail.com"}],"description":"Universal GPUStack model catalog and integration bridge.","homepage":"https://github.com/antronic/gpustack-bridge#readme","repository":{"type":"git","url":"git+https://github.com/antronic/gpustack-bridge.git"},"bugs":{"url":"https://github.com/antronic/gpustack-bridge/issues"},"license":"MIT","readme":"# gpustack-bridge\n\n`@antronic/gpustack-bridge` discovers the GPUStack models visible to an API key and returns a portable model catalog. It has no OpenCode dependency; integrations map the catalog into their own model format.\n\n## Install\n\n```sh\nnpm install @antronic/gpustack-bridge\n# or\njsr add @antronic/gpustack-bridge\n```\n\n## Universal API\n\n```ts\nimport { resolveProfile } from \"@antronic/gpustack-bridge\";\n\nconst catalog = await resolveProfile({\n  id: \"local\",\n  name: \"Local GPUStack\",\n  baseURL: \"https://gpu.example.com/v1\",\n  apiKey: process.env.GPUSTACK_API_KEY!,\n});\n\nconsole.log(catalog.models.map((model) => model.id));\n```\n\nThe root package works anywhere `fetch` is available. It validates the GPUStack `/v1/models` response, queries LLMs by default, preserves route IDs exactly, and supports include/exclude glob filters. A cache is optional and injected through the `CacheStorage` interface.\n\n## Node and Bun extras\n\n`@antronic/gpustack-bridge/node` adds environment-profile config and XDG-backed atomic caching. API keys are resolved from named environment variables and are never written to cache snapshots.\n\n```ts\nimport {\n  createXDGCacheStorage,\n  loadBridgeConfig,\n  resolveEnvironmentProfiles,\n} from \"@antronic/gpustack-bridge/node\";\n\nconst profiles = resolveEnvironmentProfiles(await loadBridgeConfig());\nconst cache = createXDGCacheStorage();\n```\n\nThe default configuration path is `$XDG_CONFIG_HOME/gpustack-bridge/config.json` (or `~/.config/...`). Set `GPUSTACK_BRIDGE_CONFIG` to choose another path.\n\n## Failure and cache policy\n\nOnly network, timeout, throttling, and server failures may fall back to cache. Authentication, client, and malformed-response failures always surface to the caller.\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-157fd9105541de6506067c72dbc821aa"}