@playcaller/sdk 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +46 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # @playcaller/sdk
2
+
3
+ Official TypeScript SDK for the [PlayCaller](https://playcallerapp.com/developer) sports data API — real-time injury signals, player stats, game scores, and AI-powered ML signals for NFL, MLB, NBA, NHL, CFB, Soccer, Tennis, Golf, and UFC.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @playcaller/sdk
9
+ ```
10
+
11
+ ## Quick Start
12
+
13
+ ```typescript
14
+ import { PlaycallerApiClient } from "@playcaller/sdk";
15
+
16
+ const client = new PlaycallerApiClient({ apiKey: "pc_sbx_your_key_here" });
17
+
18
+ // Injury signals
19
+ const injuries = await client.intelligence.getIntelligenceInjuries({ sport: "nfl", severity: "high" });
20
+
21
+ // NFL players
22
+ const players = await client.nfl.listNflPlayers({ team: "KC", position: "WR" });
23
+
24
+ // MLB games today
25
+ const games = await client.mlb.listMlbGames({ date: "today" });
26
+
27
+ // Alpha metrics (Pro Insights+)
28
+ const alpha = await client.v1.getAlpha({ sport: "nfl", id: "pc_nfl_4046533" });
29
+
30
+ // Semantic similarity (Pro Insights+)
31
+ const similar = await client.v1.getSimilar({ id: "pc_nfl_4046533", sport: "nfl", limit: 10 });
32
+ ```
33
+
34
+ ## Get an API Key
35
+
36
+ [14-day free sandbox at playcallerapp.com/developer](https://playcallerapp.com/developer) — no credit card required.
37
+
38
+ ## Sports Coverage
39
+
40
+ NFL · MLB · NBA · NHL · CFB · Soccer (EPL/MLS/La Liga/Bundesliga/Serie A/UCL) · Tennis (ATP/WTA) · Golf (PGA/LPGA) · UFC
41
+
42
+ ## Links
43
+
44
+ - [API Docs](https://playcallerapp.com/developer/docs)
45
+ - [48 endpoints](https://playcallerapp.com/developer)
46
+ - [Python SDK](https://pypi.org/project/playcaller-sdk/)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playcaller/sdk",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Official TypeScript SDK for PlayCaller — real-time sports data, AI-powered analytics, and ML signals for fantasy football, baseball, and basketball",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",