()
| 1 | // Calls worker API (no secrets in frontend) |
| 2 | |
| 3 | export async function getGitHubStats() { |
| 4 | const res = await fetch("/api/kpi/github"); |
| 5 | if (!res.ok) return { stars: 0, forks: 0, watchers: 0, error: true }; |
| 6 | return await res.json(); |
| 7 | } |
| 8 | |
| 9 | export async function getStarHistory(_days = 30) { |
| 10 | // GitHub doesn't provide star history directly |
no test coverage detected