MCPcopy Create free account
hub / github.com/pollinations/pollinations / getGitHubStats

Function getGitHubStats

apps/operation/kpi/src/api/github.js:3–7  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1// Calls worker API (no secrets in frontend)
2
3export 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
9export async function getStarHistory(_days = 30) {
10 // GitHub doesn't provide star history directly

Callers 2

fetchAllDataFunction · 0.90
getStarHistoryFunction · 0.85

Calls 2

jsonMethod · 0.80
fetchFunction · 0.50

Tested by

no test coverage detected