{"_id":"@bagakit/open-agent-avatars","name":"@bagakit/open-agent-avatars","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@bagakit/open-agent-avatars","version":"0.1.0","description":"A ready-to-use set of open-agent avatar SVGs for quickly bootstrapping other projects.","license":"MIT","type":"module","sideEffects":false,"exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.cjs"},"./index.json":"./index.json","./20260202":{"types":"./20260202/index.d.ts","import":"./20260202/index.mjs","require":"./20260202/index.cjs"},"./20260202/*":{"types":"./20260202/mod/*.d.ts","import":"./20260202/mod/*.mjs","require":"./20260202/mod/*.cjs"}},"scripts":{"generate":"node ./scripts/generate-index.mjs","prepack":"node ./scripts/generate-index.mjs","publish:public":"npm publish --access public"},"publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"_id":"@bagakit/open-agent-avatars@0.1.0","gitHead":"446620a5c1b3f27625120b0ba45922859ba5b6fe","types":"./index.d.ts","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-yZE84hn+0tH2e/mLICPp3Qh4rGS6uVH+bX1er1+dQin4MRnyH44xHF7BE0B+zWAbsUA2lrOobQLpLlnzmTqGTA==","shasum":"9a41f5f304e05a821d64f91168ee86d72aff76ff","tarball":"https://registry.npmjs.org/@bagakit/open-agent-avatars/-/open-agent-avatars-0.1.0.tgz","fileCount":800,"unpackedSize":1242468,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIC0zuGbwU9lk7IQGlilph4S2G4H/XLnDYdfQ93Q0pLSgAiANP1PMso3Ka7mNVtYavwfECzomfNQzPhF4Piwwudaidg=="}]},"_npmUser":{"name":"kinghand","email":"kinghand@foxmail.com"},"directories":{},"maintainers":[{"name":"kinghand","email":"kinghand@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/open-agent-avatars_0.1.0_1769938689932_0.3941447962553406"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-01T09:38:09.866Z","0.1.0":"2026-02-01T09:38:10.112Z","modified":"2026-02-01T09:38:10.328Z"},"maintainers":[{"name":"kinghand","email":"kinghand@foxmail.com"}],"description":"A ready-to-use set of open-agent avatar SVGs for quickly bootstrapping other projects.","license":"MIT","readme":"# @bagakit/open-agent-avatars\n\nA ready-to-use set of avatar SVGs (with small built-in animations) for quickly bootstrapping other projects.\n\n## Install\n\n```bash\nnpm i @bagakit/open-agent-avatars\n```\n\n## Use\n\n### Browse / search\n\n```js\nimport { avatars } from \"@bagakit/open-agent-avatars\";\n\n// Example: pick all Panda avatars from batch 20260201\nconst panda = avatars.filter(\n  (a) => a.batch === \"20260201\" && a.tokens[0] === \"Panda\"\n);\n```\n\nEach entry includes:\n- `batch`, `filename`, `path`, `stem`, `title`, `tokens`, optional `timestamp`, and `url`\n\n### Use a versioned module (recommended; best for tree-shaking)\n\n```js\nimport CAPYBARA_CRAFTING from \"@bagakit/open-agent-avatars/20260202/CAPYBARA_CRAFTING\";\n\nconst img = document.createElement(\"img\");\nimg.src = CAPYBARA_CRAFTING;\ndocument.body.appendChild(img);\n```\n\nNotes:\n- `20260202/` is a versioned batch folder.\n- Export names are derived from the filename stem (without the trailing timestamp). If multiple versions exist, the latest timestamp wins.\n- You can also import from the version index:\n  ```js\n  import { CAPYBARA_CRAFTING } from \"@bagakit/open-agent-avatars/20260202\";\n  ```\n\n### Raw SVG access\n\nIf you need raw SVGs, use the repo files directly (this package primarily exposes per-icon JS modules).\n\n## Maintenance\n\nWhen you add new batch folders (e.g. `YYYYMMDD/`) or add/remove SVGs, regenerate exports:\n\n```bash\nnpm run generate\n```\n\nTo (re)generate the `20260202/` batch assets locally (repo maintainers):\n\n```bash\nnode ./scripts/generate-new-avatars.mjs\n```\n","readmeFilename":"README.md","_rev":"1-4fddc606c151874a53d30545fe5ffc65"}