{"_id":"@bob-supply/sdk","_rev":"2-ffab70b196268d3956894cc4e4230aa7","name":"@bob-supply/sdk","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@bob-supply/sdk","version":"0.1.0","_id":"@bob-supply/sdk@0.1.0","maintainers":[{"name":"pondorasti","email":"pondorasti@gmail.com"}],"dist":{"shasum":"5551ad1c7ced967fe9456320b0895bfa9f58232d","tarball":"https://registry.npmjs.org/@bob-supply/sdk/-/sdk-0.1.0.tgz","fileCount":4,"integrity":"sha512-rVFpWt4hVxEXv9YWUnGTkliUWNq5HniIeUDJXlwX7SF5AVfoQEcWzZZ8xG8ErAwTGhoPmY9eyxaAo22rEhXXrw==","signatures":[{"sig":"MEYCIQCV7H/uzFaO+NIQfoo9E0kyPG7nW7Y6hifI0GNXe67qvgIhAN0Au6yi74ofX8axgYEi2sniGNGPE1QenY49W1Sy5hqj","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2256},"type":"module","types":"./dist/index.d.mts","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"}},"gitHead":"fd58103b938faab09542c3c4fc3300cb026447ce","scripts":{"test":"vp test run","build":"vp pack"},"_npmUser":{"name":"pondorasti","email":"pondorasti@gmail.com"},"_npmVersion":"11.12.1","description":"Framework-agnostic helpers for [bob.supply](https://bob.supply) avatar URLs.","directories":{},"_nodeVersion":"26.0.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite-plus":"catalog:","typescript":"catalog:"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.0_1778996430195_0.451343857629384","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-05-17T05:40:30.140Z","modified":"2026-05-17T22:08:10.403Z","0.1.0":"2026-05-17T05:40:30.319Z"},"description":"Framework-agnostic helpers for [bob.supply](https://bob.supply) avatar URLs.","maintainers":[{"email":"pondorasti@gmail.com","name":"pondorasti"},{"email":"dylan@851.sh","name":"dylanplayer-851"}],"readme":"# @bob-supply/sdk\n\nFramework-agnostic helpers for [bob.supply](https://bob.supply) avatar URLs.\n\n## Install\n\n```sh\nnpm install @bob-supply/sdk\n```\n\n## Usage\n\n```ts\nimport { bobAvatarUrl } from \"@bob-supply/sdk\";\n\nconst url = bobAvatarUrl(\"alice\");\n// https://bob.supply/alice?format=png\n```\n\nSeeds are URL-encoded before they are added to the URL:\n\n```ts\nbobAvatarUrl(\"alice bob\");\n// https://bob.supply/alice%20bob?format=png\n```\n\n## API\n\n### `bobAvatarUrl(seed, options?)`\n\nReturns a deterministic [bob.supply](https://bob.supply) avatar URL for `seed`.\n\n```ts\nfunction bobAvatarUrl(seed: string, options?: BobAvatarUrlOptions): string;\n```\n\nOptions:\n\n```ts\ntype BobAvatarUrlOptions = {\n  readonly format?: \"png\";\n};\n```\n\nAn empty or whitespace-only seed throws a `TypeError`.\n\n### `DefaultBobAvatarBaseUrl`\n\nThe production avatar service origin:\n\n```ts\nconst DefaultBobAvatarBaseUrl = \"https://bob.supply\";\n```\n","readmeFilename":"README.md"}