feat: add GitHub stars syncing to metrics sync

- Add github.ts to npm-client with functions to fetch GitHub stars
- Add parseGitHubUrl to handle various GitHub URL formats
- Update metrics sync endpoint to fetch and store GitHub stars
- GitHub stars now factor into tool quality score calculation
- Optional GITHUB_TOKEN env var for higher API rate limits

Closes #8

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Ajax Davis 2026-01-07 14:11:06 +10:00
parent a4cfea5cc3
commit 724bf18822
4 changed files with 156 additions and 3 deletions

View file

@ -11,6 +11,7 @@
"./search": "./src/search.ts",
"./package": "./src/package.ts",
"./stats": "./src/stats.ts",
"./github": "./src/github.ts",
"./rate-limiter": "./src/rate-limiter.ts"
},
"scripts": {