MCPcopy
hub / github.com/electric-sql/pglite / fetchStarCount

Function fetchStarCount

docs/components/starCount.ts:35–45  ·  view source on GitHub ↗
(currentCount)

Source from the content-addressed store, hash-verified

33}
34
35export async function fetchStarCount(currentCount) {
36 const resp = await fetch('https://api.github.com/repos/electric-sql/pglite')
37
38 if (resp.ok) {
39 const data = await resp.json()
40
41 return data.stargazers_count
42 }
43
44 return currentCount || FALLBACK_INITIAL_COUNT
45}

Callers 2

loadFunction · 0.90
starCountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected