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

Function useContribCount

apps/gsoc/src/api/githubContribCount.ts:3–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { useState } from "react";
2
3const useContribCount = () => {
4 // GitHub REST API doesn't return all contributors (caps at ~100).
5 // GitHub UI shows 300 contributors, so we use that as our baseline.
6 const [contribs] = useState<string>("300+");
7 const [loading] = useState(false);
8 const [error] = useState<string | null>(null);
9
10 return { contribs, loading, error };
11};
12
13export default useContribCount;

Callers 1

HomePageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected