{"_id":"@an2tha/open-fitness-data","name":"@an2tha/open-fitness-data","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@an2tha/open-fitness-data","version":"0.1.0","description":"Type-safe TypeScript client for the Open Fitness Data API","type":"module","license":"Apache-2.0","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./client":{"types":"./dist/src/client.d.ts","import":"./dist/src/client.js","default":"./dist/src/client.js"},"./schemas":{"types":"./dist/src/schemas.d.ts","import":"./dist/src/schemas.js","default":"./dist/src/schemas.js"},"./errors":{"types":"./dist/src/errors.d.ts","import":"./dist/src/errors.js","default":"./dist/src/errors.js"},"./request":{"types":"./dist/src/request.d.ts","import":"./dist/src/request.js","default":"./dist/src/request.js"},"./types":{"types":"./dist/src/types.d.ts","import":"./dist/src/types.js","default":"./dist/src/types.js"}},"scripts":{"build":"bunx tsc -p tsconfig.build.json","test":"bun test && bunx tsc -p tests/tsconfig.json","test:types":"bunx tsc -p tests/tsconfig.json","prepack":"bun run build"},"dependencies":{"zod":"^4.4.3"},"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5"},"gitHead":"2162716a1006787cb8ee9684d4fcdb4c50bd792f","_id":"@an2tha/open-fitness-data@0.1.0","_nodeVersion":"25.9.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-X8NXqBuATmOsfR4PHAkmlXC+ehLGjSK4jAZNmiPllkIkDWFoNiwyaHfRcGo0PU7LjPSWsIkalQVCvACS7wiARA==","shasum":"f944fa78edf8e5fe5630973bf74ff2d0d641a0c2","tarball":"https://registry.npmjs.org/@an2tha/open-fitness-data/-/open-fitness-data-0.1.0.tgz","fileCount":41,"unpackedSize":30143,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAQN7cti+yWRyKKc6mnLRmgBJzmX1UZqnqCzYGci5eIRAiAcilSNXB0Q1hpI1GJ5lpBncxK+I2nrSYJyKZhNPPurfQ=="}]},"_npmUser":{"name":"an2tha","email":"ripshade_sec@proton.me"},"directories":{},"maintainers":[{"name":"an2tha","email":"ripshade_sec@proton.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/open-fitness-data_0.1.0_1778327047077_0.8412364783023878"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-09T11:44:06.981Z","0.1.0":"2026-05-09T11:44:07.227Z","modified":"2026-05-09T11:44:07.406Z"},"maintainers":[{"name":"an2tha","email":"ripshade_sec@proton.me"}],"description":"Type-safe TypeScript client for the Open Fitness Data API","license":"Apache-2.0","readme":"# @an2tha/open-fitness-data\n\nType-safe TypeScript client for the Open Fitness Data API.\n\n## Docs\n\n- [Getting started](./docs/getting-started.md)\n- [API reference](./docs/README.md)\n- [Types](./docs/types.md)\n\n## Install\n\n```bash\nnpm i @an2tha/open-fitness-data\n```\n\n## Quick start\n\n```ts\nimport { createOfdClient } from '@an2tha/open-fitness-data';\n\nconst client = createOfdClient({\n  apiKey: process.env.OFD_API_KEY,\n});\n\nconst foods = await client.foods.search({ q: 'kale' });\n```\n\n## Type-safe requests\n\n```ts\nimport { createOfdClient, foodSchema } from '@an2tha/open-fitness-data';\n\nconst client = createOfdClient();\nconst food = await client.request('/foods/123', foodSchema);\n```\n\n## Build\n\n```bash\nbun run build\n```\n","readmeFilename":"README.md","_rev":"1-122814942726c51af16adcbe82b3ae84"}