About the project
ghapi is our own GitHub statistics API, powering dualfroz.com, vulcode.com and profile READMEs with raw JSON and SVG cards. It shows commits, languages, frameworks, tests, streaks and open source contributions. It has two parts that never share secrets: a collector holding the GitHub token gathers the data and saves snapshots (ready summaries), and the API reads only those snapshots, so a page refresh costs no request to GitHub. A Discord app answers the same questions from any chat.
The challenge
The statistics should be current, but a page refresh cannot cost a request to GitHub, and the names of private repositories must never reach a public card. Ordinary date-based queries also miss commits pushed later or with a backdated date.