{"versions":{"0.1.0":{"name":"@tokenlens/fetch","version":"0.1.0","private":false,"description":"Typed client for models.dev to fetch model catalogs with friendly errors.","type":"module","sideEffects":false,"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/xn1cklas/tokenlens.git","directory":"packages/fetch"},"keywords":["ai","llm","models.dev","fetch","client","http","model registry","catalog"],"author":{"name":"Nicklas Scharpff","email":"hi@n1cklas.com","url":"https://n1cklas.com"},"license":"MIT","bugs":{"url":"https://github.com/xn1cklas/tokenlens/issues"},"homepage":"https://github.com/xn1cklas/tokenlens/tree/HEAD/packages/fetch#readme","dependencies":{"@tokenlens/core":"0.1.0"},"devDependencies":{"typescript":"^5.9.2","vitest":"^1.6.1"},"scripts":{"build":"tsc","typecheck":"tsc --noEmit","test":"vitest","test:run":"vitest run"},"_id":"@tokenlens/fetch@0.1.0","_integrity":"sha512-c1OQO4gvw6FYMHB6ty66EiXjjqvKmwC248eyAqkRMW3NoP2yFMtW0pUNHUtL5Qzr1uKs1xk/o5X75HOLBJ+/ug==","_resolved":"/private/var/folders/nr/h4ytbdsn2kjb89jlv81b99wr0000gn/T/703185da2c6ed8f6932b0bfd83576ef0/tokenlens-fetch-0.1.0.tgz","_from":"file:tokenlens-fetch-0.1.0.tgz","_nodeVersion":"22.19.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-c1OQO4gvw6FYMHB6ty66EiXjjqvKmwC248eyAqkRMW3NoP2yFMtW0pUNHUtL5Qzr1uKs1xk/o5X75HOLBJ+/ug==","shasum":"25cdd88cc9b655688cde6881acb1d55d98c1987a","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@tokenlens/fetch/-/fetch-0.1.0.tgz","fileCount":7,"unpackedSize":13773,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCTCW9J9RF6TAncItmAYQN4rIkw/6GnTbPkKbRVHc2IwQIhAOhT9LYMZB1Fx2Ffjjvmp61fH6fDleevqZyLEYYiJDAe"}],"size":4641},"_npmUser":{"name":"anonymous","email":"hi@n1cklas.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"hi@n1cklas.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fetch_0.1.0_1757596779072_0.47566245157464127"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-11T13:19:39.276Z","publish_time":1757596779276,"_source_registry_name":"default","contributors":[]},"1.0.0-beta.0":{"name":"@tokenlens/fetch","version":"1.0.0-beta.0","private":false,"description":"Typed client for models.dev to fetch model catalogs with friendly errors.","type":"module","sideEffects":false,"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/xn1cklas/tokenlens.git","directory":"packages/fetch"},"keywords":["ai","llm","models.dev","fetch","client","http","model registry","catalog"],"author":{"name":"Nicklas Scharpff","email":"hi@n1cklas.com","url":"https://n1cklas.com"},"license":"MIT","bugs":{"url":"https://github.com/xn1cklas/tokenlens/issues"},"homepage":"https://github.com/xn1cklas/tokenlens/tree/HEAD/packages/fetch#readme","dependencies":{"@tokenlens/core":"1.0.0-beta.0"},"devDependencies":{"typescript":"^5.9.2","vitest":"^1.6.1"},"scripts":{"build":"tsc","typecheck":"tsc --noEmit","test":"vitest","test:run":"vitest run"},"_id":"@tokenlens/fetch@1.0.0-beta.0","readmeFilename":"README.md","_integrity":"sha512-tv1IXqehHMYp8XY9hDVApV/VXfDg0rtfLYqF2+h+WTJBSdGtE3ivMgmPO36sTjPAtwiZggVFM4DqnGRD54VqJQ==","_resolved":"/private/var/folders/nr/h4ytbdsn2kjb89jlv81b99wr0000gn/T/d55e89371e0201c888ec7454d57e2d94/tokenlens-fetch-1.0.0-beta.0.tgz","_from":"file:tokenlens-fetch-1.0.0-beta.0.tgz","_nodeVersion":"22.19.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-tv1IXqehHMYp8XY9hDVApV/VXfDg0rtfLYqF2+h+WTJBSdGtE3ivMgmPO36sTjPAtwiZggVFM4DqnGRD54VqJQ==","shasum":"8d4302625bad8a23bdfd219f7e940440b9b80e6a","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@tokenlens/fetch/-/fetch-1.0.0-beta.0.tgz","fileCount":7,"unpackedSize":14153,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDUMsPru6H0smLcXhxp82RvJCrdn6lfnEErC04Na2k2pQIgcVdMSOLUgifUtAkB2BtZxyoLKXRtgbhnIiSN4j1Z9TM="}],"size":4723},"_npmUser":{"name":"anonymous","email":"hi@n1cklas.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"hi@n1cklas.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fetch_1.0.0-beta.0_1757604575667_0.20349559426421648"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-11T15:29:35.897Z","publish_time":1757604575897,"_source_registry_name":"default","contributors":[]},"1.0.0-beta.1":{"name":"@tokenlens/fetch","version":"1.0.0-beta.1","private":false,"description":"Typed client for models.dev to fetch model catalogs with friendly errors.","type":"module","sideEffects":false,"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/xn1cklas/tokenlens.git","directory":"packages/fetch"},"keywords":["ai","llm","models.dev","fetch","client","http","model registry","catalog"],"author":{"name":"Nicklas Scharpff","email":"hi@n1cklas.com","url":"https://n1cklas.com"},"license":"MIT","bugs":{"url":"https://github.com/xn1cklas/tokenlens/issues"},"homepage":"https://github.com/xn1cklas/tokenlens/tree/HEAD/packages/fetch#readme","dependencies":{"@tokenlens/core":"1.0.0-beta.2"},"devDependencies":{"typescript":"^5.9.2","vitest":"^1.6.1"},"scripts":{"build":"tsc","typecheck":"tsc --noEmit","test":"vitest","test:run":"vitest run"},"_id":"@tokenlens/fetch@1.0.0-beta.1","readmeFilename":"README.md","_integrity":"sha512-YTTg7+9u5SZGPq6peeOHXZ+DFN4p5Jfs59SgUesd1i9RwCU7lXIalAW5/APCEIlfDNK8Gzk361Nq96hTs7t7CQ==","_resolved":"/private/var/folders/nr/h4ytbdsn2kjb89jlv81b99wr0000gn/T/5a78ed65cb81c46e7ff9ac5d8c5883e0/tokenlens-fetch-1.0.0-beta.1.tgz","_from":"file:tokenlens-fetch-1.0.0-beta.1.tgz","_nodeVersion":"22.19.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-YTTg7+9u5SZGPq6peeOHXZ+DFN4p5Jfs59SgUesd1i9RwCU7lXIalAW5/APCEIlfDNK8Gzk361Nq96hTs7t7CQ==","shasum":"b502f79381decd9105c2e93362cb328b9f2b8ddf","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@tokenlens/fetch/-/fetch-1.0.0-beta.1.tgz","fileCount":7,"unpackedSize":14583,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCKp08Nd6JbmFC7Buy6ZdJGlFPCUbNd4s+XjsG4SkgEEwIgMTQed167hxpZQNvn2kpBCmplZudmTKs/ut7iHp4aL9k="}],"size":4824},"_npmUser":{"name":"anonymous","email":"hi@n1cklas.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"hi@n1cklas.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fetch_1.0.0-beta.1_1757665448957_0.71657588423145"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-12T08:24:09.132Z","publish_time":1757665449132,"_source_registry_name":"default","contributors":[]},"1.3.0":{"name":"@tokenlens/fetch","version":"1.3.0","private":false,"description":"Typed client for models.dev to fetch model catalogs with friendly errors.","type":"module","sideEffects":false,"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/xn1cklas/tokenlens.git","directory":"packages/fetch"},"keywords":["ai","llm","models.dev","fetch","client","http","model registry","catalog"],"author":{"name":"Nicklas Scharpff","email":"hi@n1cklas.com","url":"https://n1cklas.com"},"license":"MIT","bugs":{"url":"https://github.com/xn1cklas/tokenlens/issues"},"homepage":"https://github.com/xn1cklas/tokenlens/tree/HEAD/packages/fetch#readme","dependencies":{"@tokenlens/core":"1.3.0"},"devDependencies":{"typescript":"^5.9.2","vitest":"^1.6.1"},"scripts":{"build":"tsc","typecheck":"tsc --noEmit","test":"vitest","test:run":"vitest run"},"_id":"@tokenlens/fetch@1.3.0","_integrity":"sha512-RONDRmETYly9xO8XMKblmrZjKSwCva4s5ebJwQNfNlChZoA5kplPoCgnWceHnn1J1iRjLVlrCNB43ichfmGBKQ==","_resolved":"/private/var/folders/nr/h4ytbdsn2kjb89jlv81b99wr0000gn/T/610a98e6e7e6773518fc1b7a2bf41c26/tokenlens-fetch-1.3.0.tgz","_from":"file:tokenlens-fetch-1.3.0.tgz","_nodeVersion":"22.19.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-RONDRmETYly9xO8XMKblmrZjKSwCva4s5ebJwQNfNlChZoA5kplPoCgnWceHnn1J1iRjLVlrCNB43ichfmGBKQ==","shasum":"1e0f6e33ced792b89fc74f6a041cb0797d53577f","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@tokenlens/fetch/-/fetch-1.3.0.tgz","fileCount":7,"unpackedSize":14569,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCsAFWpFIgTsptvYUPhuE0GiDx8EeGAx8kmvZdDjlp1mwIhAIzoOqZO217LDFiDlfd50dUiuWXn7rZmqfM/lNt9YXqO"}],"size":4817},"_npmUser":{"name":"anonymous","email":"hi@n1cklas.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"hi@n1cklas.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fetch_1.3.0_1758282473473_0.8179177254035086"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-19T11:47:53.654Z","publish_time":1758282473654,"_source_registry_name":"default","contributors":[]},"2.0.0-alpha.1":{"name":"@tokenlens/fetch","version":"2.0.0-alpha.1","private":false,"description":"Typed client for models.dev to fetch model catalogs with friendly errors.","type":"module","sideEffects":false,"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/xn1cklas/tokenlens.git","directory":"packages/fetch"},"keywords":["ai","llm","models.dev","fetch","client","http","model registry","catalog"],"author":{"name":"Nicklas Scharpff","email":"hi@n1cklas.com","url":"https://n1cklas.com"},"license":"MIT","bugs":{"url":"https://github.com/xn1cklas/tokenlens/issues"},"homepage":"https://github.com/xn1cklas/tokenlens/tree/HEAD/packages/fetch#readme","dependencies":{"@tokenlens/core":"2.0.0-alpha.1"},"devDependencies":{"typescript":"^5.9.2"},"scripts":{"build":"tsc","typecheck":"tsc --noEmit","test":"vitest --config ../../vitest.config.ts --project fetch","test:run":"vitest run --config ../../vitest.config.ts --project fetch"},"_id":"@tokenlens/fetch@2.0.0-alpha.1","readmeFilename":"README.md","_integrity":"sha512-R17Y9elcwIiD1YWokpWzK/FiC8Cs2jozpI/etVw0+IEB53zX4U5+HzzUanPg89+fDX6V1YvS6hZuPzxtogR+sw==","_resolved":"/private/var/folders/nr/h4ytbdsn2kjb89jlv81b99wr0000gn/T/6948c69db7e35230c2f5f11a7bbaeade/tokenlens-fetch-2.0.0-alpha.1.tgz","_from":"file:tokenlens-fetch-2.0.0-alpha.1.tgz","_nodeVersion":"22.19.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-R17Y9elcwIiD1YWokpWzK/FiC8Cs2jozpI/etVw0+IEB53zX4U5+HzzUanPg89+fDX6V1YvS6hZuPzxtogR+sw==","shasum":"62361a8de10ee10f759ff51d22e523361f00cf66","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@tokenlens/fetch/-/fetch-2.0.0-alpha.1.tgz","fileCount":7,"unpackedSize":19565,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDZR2nqn6WTWVa1E7dvFuhCdQgj5OAyZkwL69dxIRK0dwIgSN4/hd0+H6QQsb2ZLBxd0qEP7Xv7mwAZtnCvrrKcHog="}],"size":6059},"_npmUser":{"name":"anonymous","email":"hi@n1cklas.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"hi@n1cklas.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fetch_2.0.0-alpha.1_1758822360497_0.8732210804888336"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-25T17:46:00.687Z","publish_time":1758822360687,"_source_registry_name":"default","contributors":[]},"2.0.0-alpha.2":{"name":"@tokenlens/fetch","version":"2.0.0-alpha.2","private":false,"description":"Typed client for models.dev to fetch model catalogs with friendly errors.","type":"module","sideEffects":false,"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/xn1cklas/tokenlens.git","directory":"packages/fetch"},"keywords":["ai","llm","models.dev","fetch","client","http","model registry","catalog"],"author":{"name":"Nicklas Scharpff","email":"hi@n1cklas.com","url":"https://n1cklas.com"},"license":"MIT","bugs":{"url":"https://github.com/xn1cklas/tokenlens/issues"},"homepage":"https://github.com/xn1cklas/tokenlens/tree/HEAD/packages/fetch#readme","dependencies":{"@tokenlens/core":"2.0.0-alpha.2"},"devDependencies":{"typescript":"^5.9.2"},"scripts":{"build":"tsc","typecheck":"tsc --noEmit","test":"vitest --config ../../vitest.config.ts --project fetch","test:run":"vitest run --config ../../vitest.config.ts --project fetch"},"_id":"@tokenlens/fetch@2.0.0-alpha.2","readmeFilename":"README.md","_integrity":"sha512-eOenZjnQJITysH4yZpMDJifA2RUjOoBXhvbi3TV7jO5b/H1n9Yqwt0Mk+Yvg8KA8AN4YebWiLO5wLe5wZ85WRQ==","_resolved":"/private/var/folders/nr/h4ytbdsn2kjb89jlv81b99wr0000gn/T/2683e1ee32166882a10c1eece1232b78/tokenlens-fetch-2.0.0-alpha.2.tgz","_from":"file:tokenlens-fetch-2.0.0-alpha.2.tgz","_nodeVersion":"22.19.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-eOenZjnQJITysH4yZpMDJifA2RUjOoBXhvbi3TV7jO5b/H1n9Yqwt0Mk+Yvg8KA8AN4YebWiLO5wLe5wZ85WRQ==","shasum":"2173e5fb20f20b434d4247fe45380d7321d3670d","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@tokenlens/fetch/-/fetch-2.0.0-alpha.2.tgz","fileCount":7,"unpackedSize":19557,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD8w+TV58psEn27kJ1rpwK0H17HiUZRsVSnTZ2JGhgqKgIgNtdaGMhjGCPj1wgzsFi0bf2rZ1+TwJIB4o8E1aWJZME="}],"size":6057},"_npmUser":{"name":"anonymous","email":"hi@n1cklas.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"hi@n1cklas.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fetch_2.0.0-alpha.2_1758824053874_0.5917460119140106"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-25T18:14:14.121Z","publish_time":1758824054121,"_source_registry_name":"default","contributors":[]},"2.0.0-alpha.3":{"name":"@tokenlens/fetch","version":"2.0.0-alpha.3","private":false,"description":"Typed client for models.dev to fetch model catalogs with friendly errors.","type":"module","sideEffects":false,"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/xn1cklas/tokenlens.git","directory":"packages/fetch"},"keywords":["ai","llm","models.dev","fetch","client","http","model registry","catalog"],"author":{"name":"Nicklas Scharpff","email":"hi@n1cklas.com","url":"https://n1cklas.com"},"license":"MIT","bugs":{"url":"https://github.com/xn1cklas/tokenlens/issues"},"homepage":"https://github.com/xn1cklas/tokenlens/tree/HEAD/packages/fetch#readme","dependencies":{"@tokenlens/core":"2.0.0-alpha.3"},"devDependencies":{"@types/node":"^22.10.5","typescript":"^5.9.2"},"scripts":{"build":"tsc","typecheck":"tsc --noEmit","test":"vitest --config ../../vitest.config.ts --project fetch","test:run":"vitest run --config ../../vitest.config.ts --project fetch"},"_id":"@tokenlens/fetch@2.0.0-alpha.3","readmeFilename":"README.md","_integrity":"sha512-/v5QDXjfUCiQz4iu+CjG4R9qAhNkExfIM5H0Yo1+/jPzxrvB7HCu/60i0lZJQltJS44wEqlgA55qrohpZTY3tw==","_resolved":"/private/var/folders/nr/h4ytbdsn2kjb89jlv81b99wr0000gn/T/41257d69d7dea3bab1606f89947bd8e6/tokenlens-fetch-2.0.0-alpha.3.tgz","_from":"file:tokenlens-fetch-2.0.0-alpha.3.tgz","_nodeVersion":"22.19.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-/v5QDXjfUCiQz4iu+CjG4R9qAhNkExfIM5H0Yo1+/jPzxrvB7HCu/60i0lZJQltJS44wEqlgA55qrohpZTY3tw==","shasum":"d4bd8bed4563bbc96f9b57274f3a7ec15fd2b033","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@tokenlens/fetch/-/fetch-2.0.0-alpha.3.tgz","fileCount":7,"unpackedSize":14583,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD3bdG25zDDbKSMdmiaktOXkLf/PR2jCtsBwTRIncjOAAIgS0Re9iWe+Zto7WPATronLtA6hPiaFvACbEeYSlUFxpU="}],"size":4977},"_npmUser":{"name":"anonymous","email":"hi@n1cklas.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"hi@n1cklas.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fetch_2.0.0-alpha.3_1759613439295_0.5257908425298454"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-10-04T21:30:39.489Z","publish_time":1759613439489,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"alpha":"2.0.0-alpha.3","beta":"1.0.0-beta.1","latest":"1.3.0"},"name":"@tokenlens/fetch","time":{"created":"2025-09-11T13:19:45.133Z","modified":"2025-10-04T21:30:46.778Z","0.1.0":"2025-09-11T13:19:39.276Z","1.0.0-beta.0":"2025-09-11T15:29:35.897Z","1.0.0-beta.1":"2025-09-12T08:24:09.132Z","1.3.0":"2025-09-19T11:47:53.654Z","2.0.0-alpha.1":"2025-09-25T17:46:00.687Z","2.0.0-alpha.2":"2025-09-25T18:14:14.121Z","2.0.0-alpha.3":"2025-10-04T21:30:39.489Z"},"readme":"@tokenlens/fetch\n================\n\n[![npm version](https://img.shields.io/npm/v/%40tokenlens%2Ffetch.svg)](https://www.npmjs.com/package/@tokenlens/fetch)\n[![npm downloads](https://img.shields.io/npm/dm/%40tokenlens%2Ffetch.svg)](https://www.npmjs.com/package/@tokenlens/fetch)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](../../LICENSE)\n[![TypeScript](https://img.shields.io/badge/TypeScript-5.x-blue.svg)](https://www.typescriptlang.org/)\n\n\n![TokenLens overview](https://raw.githubusercontent.com/xn1cklas/tokenlens/HEAD/assets/tokenlens.png)\n\nTiny typed client for https://models.dev/api.json with friendly error codes.\n\n\nInstall\n- npm: `npm i @tokenlens/fetch`\n- pnpm: `pnpm add @tokenlens/fetch`\n- yarn: `yarn add @tokenlens/fetch`\n\nAPI\n- `fetchModels({ provider?, model?, fetch?, signal?, baseUrl? })`\n- `getModelMeta(providers, ...)` \n\nUsage\n```\nimport { fetchModels, getModelMeta, FetchModelsError } from '@tokenlens/fetch';\n\nconst catalog = await fetchModels();\nconst openai = await fetchModels({ provider: 'openai' });\nconst gpt4o = await fetchModels({ provider: 'openai', model: 'gpt-4o' });\n\n// Pick raw metadata directly from the fetched catalog\nconst prov = getModelMeta({ providers: catalog, provider: 'openai' });\nconst model = getModelMeta({ providers: catalog, id: 'openai:gpt-4o' });\n\ntry {\n  await fetchModels();\n} catch (err) {\n  if (err instanceof FetchModelsError) {\n    // 'UNAVAILABLE' | 'NETWORK' | 'HTTP' | 'PARSE'\n    console.error(err.code, err.status, err.message);\n  }\n}\n```\n\nLicense\nMIT","users":{}}