A Home Assistant custom integration that exposes rich activity metrics for any public GitHub repository — commits, releases, download counts, stars, followers and issues — using a personal access token to benefit from the full API rate limit.
How is this different from the built-in
githubintegration? Home Assistant core already ships agithubintegration (stars, forks, issues, latest release, latest commit…). GitHub Insights focuses on the metrics core does not provide: total commit count, number of releases, release download counts (latest and total), followers, and open/closed issue counts.
Each configured repository is exposed as a device with the following sensors:
| Sensor | Description | State class |
|---|---|---|
| Commits | Total number of commits on the default branch | total_increasing |
| Releases | Number of published releases | measurement |
| Latest release | Tag of the latest published release (name & URL as attributes) | – |
| Latest release downloads | Downloads of the latest release assets | total_increasing |
| Total downloads | Downloads across every release asset | total_increasing |
| Stars | Number of stargazers | measurement |
| Followers | Followers of the repository owner | measurement |
| Open issues | Open issues, excluding pull requests | measurement |
| Closed issues | Closed issues, excluding pull requests | total_increasing |
- In HACS, open the three-dot menu → Custom repositories.
- Add
https://github.com/ReikanYsora/github-insightswith category Integration. - Install GitHub Insights and restart Home Assistant.
Copy custom_components/github_insights into your Home Assistant
config/custom_components directory and restart Home Assistant.
- Go to Settings → Devices & Services → Add Integration.
- Search for GitHub Insights.
- Provide:
- a GitHub personal access token — a fine-grained token with public read access, or a classic token (no scope required for public repositories), is enough to raise the rate limit to 5000 requests/hour;
- the repository to track, in
owner/nameformat (e.g.home-assistant/core).
Add the integration again for each additional repository you want to track.
Data is refreshed every 15 minutes.
- Only public repositories are supported out of the box; a token with
reposcope is required for private repositories. - Issue counts use the GitHub Search API and exclude pull requests, unlike the
raw
open_issues_countfield.
Released under the MIT License. Data is provided by the GitHub API.