{"_id":"@buzzr/dfs-provider-espn","_rev":"6-ad02e47f1b12f654660765ddcb11ce41","name":"@buzzr/dfs-provider-espn","dist-tags":{"latest":"5.0.0"},"versions":{"2.0.0":{"name":"@buzzr/dfs-provider-espn","version":"2.0.0","author":{"name":"Sarvesh Chidambaram"},"license":"MIT","_id":"@buzzr/dfs-provider-espn@2.0.0","maintainers":[{"name":"sarveshsea","email":"sarveshjax@gmail.com"}],"dist":{"shasum":"b5bfe8035c526cbf97514ac5d24c748ad78f4f03","tarball":"https://registry.npmjs.org/@buzzr/dfs-provider-espn/-/dfs-provider-espn-2.0.0.tgz","fileCount":9,"integrity":"sha512-Ns9UJ3lg+7yUCXEWxhBfy8YEnt+MCq+cBJK0E8F6FuWVZCxTV5nyvO/3vZB6wwTpdIsHkcteEofT4KiUr8N7hw==","signatures":[{"sig":"MEYCIQCHk/cIcOG4XQsaaDf1qnQzVk/CBPs5tHk0f0u/ZI4LjAIhAPf+PKOv/XMAshtr/vUQVEwZwsmdUPtK4YBhBIAtrVIx","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8488},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"afa8d3ae11197be34b013d3cf8470ee7594e8cd9","scripts":{"lint":"eslint src tests","test":"vitest run","build":"tsup src/index.ts --format esm,cjs --dts --sourcemap --clean --treeshake --target es2022","format":"prettier --write src tests","typecheck":"tsc --noEmit","format:check":"prettier --check src tests"},"_npmUser":{"name":"sarveshsea","email":"sarveshjax@gmail.com"},"_npmVersion":"10.9.2","description":"Optional ESPN-shaped stat provider contract for @buzzr/dfs-engine.","directories":{},"_nodeVersion":"22.17.0","dependencies":{"@buzzr/dfs-engine":"^2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/dfs-provider-espn_2.0.0_1778641830378_0.03940822913882602","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@buzzr/dfs-provider-espn","version":"3.0.0","author":{"name":"Sarvesh Chidambaram"},"license":"MIT","_id":"@buzzr/dfs-provider-espn@3.0.0","maintainers":[{"name":"sarveshsea","email":"sarveshjax@gmail.com"}],"dist":{"shasum":"c531b78602de9e79b96259cfc4e8991120eaa9a3","tarball":"https://registry.npmjs.org/@buzzr/dfs-provider-espn/-/dfs-provider-espn-3.0.0.tgz","fileCount":9,"integrity":"sha512-6P9DO9F4YkD67VhbrWfnT2Se3bunuIgVAnmLy7dBeYDw84Q7PUj26HLIz1zfJiIEfCbzBwUYJD5yUCfkcJ0sxw==","signatures":[{"sig":"MEUCIQDEFzM8VRT4/4Hxiky+yy8UHYxuBHaayO+PBhzbEp5QHwIgOcyuvJ4JRTpkKBqWqQRHUEkckdEIquBqgprChcz1Ssw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8488},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"2dcb5f56e54c6d92d5326b6ed6b48a33ce0d7421","scripts":{"lint":"eslint src tests","test":"vitest run","build":"tsup src/index.ts --format esm,cjs --dts --sourcemap --clean --treeshake --target es2022","format":"prettier --write src tests","typecheck":"tsc --noEmit","format:check":"prettier --check src tests"},"_npmUser":{"name":"sarveshsea","email":"sarveshjax@gmail.com"},"_npmVersion":"10.9.2","description":"Optional ESPN-shaped stat provider contract for @buzzr/dfs-engine.","directories":{},"_nodeVersion":"22.17.0","dependencies":{"@buzzr/dfs-engine":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/dfs-provider-espn_3.0.0_1778679588496_0.8591553807274368","host":"s3://npm-registry-packages-npm-production"}},"3.0.1":{"name":"@buzzr/dfs-provider-espn","version":"3.0.1","author":{"name":"Sarvesh Chidambaram"},"license":"MIT","_id":"@buzzr/dfs-provider-espn@3.0.1","maintainers":[{"name":"sarveshsea","email":"sarveshjax@gmail.com"}],"dist":{"shasum":"c4cd15c4643a64458fbbbcc293679bb079ea4754","tarball":"https://registry.npmjs.org/@buzzr/dfs-provider-espn/-/dfs-provider-espn-3.0.1.tgz","fileCount":9,"integrity":"sha512-VLDqvJfW3uBPxjBZd/oHCM4nJ2Qll97J/cm9krlt3DmOHkIv2J13OlrX6M1X42C/FhQuHD+Nb4GQv2q6MFx++w==","signatures":[{"sig":"MEQCIBAwp7nySVZGrOLyelkzkBcbVkgEQ7jeVMJUQi9NyLSkAiBN7gDCjFJMIg7Ny3ZFZw25AYY9I9e7xUAP0qiaB7WCkg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8488},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"de0d5dfb980d58d42c6dd5036b2fd6ee66414331","scripts":{"lint":"eslint src tests","test":"vitest run","build":"tsup src/index.ts --format esm,cjs --dts --sourcemap --clean --treeshake --target es2022","format":"prettier --write src tests","typecheck":"tsc --noEmit","format:check":"prettier --check src tests"},"_npmUser":{"name":"sarveshsea","email":"sarveshjax@gmail.com"},"_npmVersion":"10.9.2","description":"Optional ESPN-shaped stat provider contract for @buzzr/dfs-engine.","directories":{},"_nodeVersion":"22.17.0","dependencies":{"@buzzr/dfs-engine":"^3.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/dfs-provider-espn_3.0.1_1778692882685_0.9464085982930432","host":"s3://npm-registry-packages-npm-production"}},"4.0.0":{"name":"@buzzr/dfs-provider-espn","version":"4.0.0","author":{"name":"Sarvesh Chidambaram"},"license":"MIT","_id":"@buzzr/dfs-provider-espn@4.0.0","maintainers":[{"name":"sarveshsea","email":"sarveshjax@gmail.com"}],"dist":{"shasum":"89842cdbb0a160bb0c8e69939fb13b7c9ccea628","tarball":"https://registry.npmjs.org/@buzzr/dfs-provider-espn/-/dfs-provider-espn-4.0.0.tgz","fileCount":9,"integrity":"sha512-EKlU/tFd1ICAeXWJbyLwM25v53LC882+yL84/ILHYnP1uULJoMUIQU/5v8OJvP8sphi0mK/LGCb551u2+YNzrg==","signatures":[{"sig":"MEQCICg5TyWqD/f748Jbqa06hF4CAuw2afGycx8wDUqzyBrAAiBVxVjHrxgtGkCNcNFw6g8L4UKv8WALEhaT7/9Aw8vbpg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8632},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"e6c5436b631c3fc31bbc8ec2c925c9443fcde9be","scripts":{"lint":"eslint src tests","test":"vitest run","build":"tsup src/index.ts --format esm,cjs --dts --sourcemap --clean --treeshake --target es2022","format":"prettier --write src tests","typecheck":"tsc --noEmit","format:check":"prettier --check src tests"},"_npmUser":{"name":"sarveshsea","email":"sarveshjax@gmail.com"},"_npmVersion":"10.9.2","description":"Optional ESPN-shaped stat provider contract for @buzzr/dfs-engine.","directories":{},"_nodeVersion":"22.17.0","dependencies":{"@buzzr/dfs-engine":"^4.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/dfs-provider-espn_4.0.0_1779851169724_0.3837447745269531","host":"s3://npm-registry-packages-npm-production"}},"5.0.0":{"name":"@buzzr/dfs-provider-espn","version":"5.0.0","description":"Optional ESPN-shaped stat provider contract for @buzzr/dfs-engine.","license":"MIT","author":{"name":"Sarvesh Chidambaram"},"repository":{"type":"git","url":"git+https://github.com/Buzzr-app/dfs-engine.git","directory":"packages/dfs-provider-espn"},"homepage":"https://github.com/Buzzr-app/dfs-engine/tree/main/packages/dfs-provider-espn#readme","bugs":{"url":"https://github.com/Buzzr-app/dfs-engine/issues"},"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"build":"tsup src/index.ts --format esm,cjs --dts --sourcemap --clean --treeshake --target es2022","typecheck":"tsc --noEmit","test":"vitest run","lint":"eslint src tests","format":"prettier --write src tests","format:check":"prettier --check src tests"},"keywords":["dfs","daily-fantasy-sports","espn","stat-provider","sports-data","gamelog","player-stats","settlement","adapter","typescript","buzzr"],"dependencies":{"@buzzr/dfs-engine":"^5.0.0"},"engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"@buzzr/dfs-provider-espn@5.0.0","gitHead":"b727ec77a02352d6e3a5b21265889c41daedb4f4","_nodeVersion":"22.22.3","_npmVersion":"10.9.8","dist":{"integrity":"sha512-LgpJ7J7X0bVtEFw93c/pDevsrNTaC4d+A78uOFzFWQ9pMqh/v7lLmk5yuWtWsPEwUMfQHXmCEODmCC0gG5S4qA==","shasum":"0a0580eb72d97da728a4a6874afe34ef3e53e627","tarball":"https://registry.npmjs.org/@buzzr/dfs-provider-espn/-/dfs-provider-espn-5.0.0.tgz","fileCount":9,"unpackedSize":12714,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAvumdjFcPhK65gynXUAknPIkGaH/OL5B9mFY4DiY4EIAiAXXiVsgtJKHjgRGjcGn7Yg9v8qsyivvjEuRUtExDLXOA=="}]},"_npmUser":{"name":"sarveshsea","email":"sarveshjax@gmail.com"},"directories":{},"maintainers":[{"name":"sarveshsea","email":"sarveshjax@gmail.com"},{"name":"gangisettyrushil8","email":"gangisettyrushil@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dfs-provider-espn_5.0.0_1783385548503_0.14943512080536703"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-13T03:10:30.287Z","modified":"2026-07-07T00:52:28.783Z","2.0.0":"2026-05-13T03:10:30.557Z","3.0.0":"2026-05-13T13:39:48.696Z","3.0.1":"2026-05-13T17:21:22.842Z","4.0.0":"2026-05-27T03:06:09.868Z","5.0.0":"2026-07-07T00:52:28.655Z"},"author":{"name":"Sarvesh Chidambaram"},"license":"MIT","description":"Optional ESPN-shaped stat provider contract for @buzzr/dfs-engine.","maintainers":[{"name":"sarveshsea","email":"sarveshjax@gmail.com"},{"name":"gangisettyrushil8","email":"gangisettyrushil@gmail.com"}],"readme":"# @buzzr/dfs-provider-espn\n\n[![npm version](https://img.shields.io/npm/v/@buzzr/dfs-provider-espn)](https://www.npmjs.com/package/@buzzr/dfs-provider-espn)\n[![npm downloads](https://img.shields.io/npm/dm/@buzzr/dfs-provider-espn)](https://www.npmjs.com/package/@buzzr/dfs-provider-espn)\n[![CI](https://github.com/Buzzr-app/dfs-engine/actions/workflows/ci.yml/badge.svg)](https://github.com/Buzzr-app/dfs-engine/actions/workflows/ci.yml)\n[![types](https://img.shields.io/npm/types/@buzzr/dfs-provider-espn)](https://www.npmjs.com/package/@buzzr/dfs-provider-espn)\n[![license](https://img.shields.io/npm/l/@buzzr/dfs-provider-espn)](https://github.com/Buzzr-app/dfs-engine/blob/main/LICENSE)\n\n**Wire ESPN-shaped gamelog data into [`@buzzr/dfs-engine`](https://www.npmjs.com/package/@buzzr/dfs-engine) as a typed `StatProvider`.** You bring the fetch — an ESPN client, a scraper, a cache, or a paid data feed. This package gives you the ergonomic, strongly-typed loader contract: it unpacks the leg into `playerId` / `playerName` / `league` / `gameId` / `gameDate` so your loader reads like a data query instead of engine plumbing.\n\nThis package does **no network I/O itself**. The loader you provide is the only code that touches ESPN, so auth, rate limits, and caching stay entirely under your control.\n\n## Install\n\n```bash\nnpm install @buzzr/dfs-provider-espn @buzzr/dfs-engine\n```\n\n## 30-second quick start\n\n```ts\nimport { createDfsEngine } from '@buzzr/dfs-engine';\nimport { createEspnStatProvider } from '@buzzr/dfs-provider-espn';\n\nconst espn = createEspnStatProvider({\n  getGameLog: async ({ playerId, playerName, league, gameDate }) => {\n    // Your fetch. Return PlayerGameLogEntryShape[] rows:\n    const rows = await myEspnClient.gamelog(playerId ?? playerName, league, gameDate);\n    return rows; // [{ date, minutes, points, rebounds, assists, ... }]\n  },\n});\n\nconst engine = createDfsEngine({ statProviders: [espn] });\nconst result = await engine.settleEntry(entry, { statProviderId: 'espn' });\n```\n\nThe engine validates every returned row at the provider boundary and reports `invalid_provider_data` if your loader emits malformed gamelog entries — bad data fails loudly instead of silently mis-grading a slip.\n\n## API\n\n| Export                     | Purpose                                                                     |\n| -------------------------- | ---------------------------------------------------------------------------- |\n| `createEspnStatProvider()` | Build a `StatProvider` (id `'espn'` by default) from your gamelog loader     |\n| `EspnStatProviderOptions`  | Type: `{ id?, getGameLog }` options bag                                      |\n| `EspnGameLogLoaderInput`   | Type: unpacked leg context handed to your loader (player, game, entry, leg)  |\n\n## When to use this vs siblings\n\n| You want to…                                | Reach for                                                                                        |\n| ------------------------------------------- | ------------------------------------------------------------------------------------------------ |\n| Feed ESPN-shaped stats into the engine      | **this package**                                                                                  |\n| Feed Sportradar stats into the engine       | [`@buzzr/dfs-provider-sportradar`](https://www.npmjs.com/package/@buzzr/dfs-provider-sportradar)  |\n| A deterministic provider for tests          | [`@buzzr/dfs-testkit`](https://www.npmjs.com/package/@buzzr/dfs-testkit)                          |\n| A custom provider for any other data source | `defineStatProvider` in [`@buzzr/dfs-engine`](https://www.npmjs.com/package/@buzzr/dfs-engine)    |\n\n## Links\n\n- [Engine API docs](https://buzzr-app.github.io/dfs-engine/)\n- [Monorepo & full package family](https://github.com/Buzzr-app/dfs-engine)\n- [Issues](https://github.com/Buzzr-app/dfs-engine/issues)\n\n## License\n\nMIT\n","readmeFilename":"README.md","homepage":"https://github.com/Buzzr-app/dfs-engine/tree/main/packages/dfs-provider-espn#readme","keywords":["dfs","daily-fantasy-sports","espn","stat-provider","sports-data","gamelog","player-stats","settlement","adapter","typescript","buzzr"],"repository":{"type":"git","url":"git+https://github.com/Buzzr-app/dfs-engine.git","directory":"packages/dfs-provider-espn"},"bugs":{"url":"https://github.com/Buzzr-app/dfs-engine/issues"}}