Skip to content

Conversation

Copy link

Copilot AI commented Jan 1, 2026

Download counts alone can be misleading due to automated tooling and CI systems. GitHub stars provide an alternative popularity metric based on organic developer interest.

Changes

Data extraction (scripts/extractAndStorePluginData.mjs)

  • Extract GitHub repository URL from npm package metadata
  • Fetch star count via GitHub API (supports GITHUB_TOKEN for authenticated requests)
  • Add githubStars and githubRepo fields to plugin data

Frontend (vue-data-analyzer/src/components/DataTable.vue)

  • Add sortable/filterable "GitHub Stars" column
  • Star counts link to repository; "N/A" for non-GitHub packages
  • Filter supports comparison operators (=, >, <)

Example

Finding popular plugins with >100 stars quickly surfaces community favorites:

Filtered by Stars >100

Full table view with new column:

GitHub Stars Column

Implementation Notes

  • Regex handles various GitHub URL formats (git://, git+https://, .git suffix)
  • Rate limiting via 1s delay between API calls (acceptable for nightly batch job)
  • Null star counts handled gracefully (missing repos, API failures)

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/SeydX/homebridge-camera-ui
    • Triggering command: /usr/local/bin/node node test-github-stars.mjs (http block)
  • https://api.github.com/repos/dgreif/ring
    • Triggering command: /usr/local/bin/node node test-github-stars.mjs (http block)
  • https://api.github.com/repos/homebridge/homebridge-config-ui-x
    • Triggering command: /usr/local/bin/node node test-github-stars.mjs (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Add Github Star Count to Homebridge Plugins stats</issue_title>
<issue_description>### Current Situation

I recently visited the Homebridge Plugins Analytics page with the intention of browsing popular plugins to see if there were any cool ones I was missing.

No disrespect to the plugin developers, but I was surprised to find homebridge-melcloud-control, homebridge-enphase-envoy, and homebridge-syntex among the top. They all have fewer than 100 stars, and homebridge-syntex only has 3.

By contrast, homebridge-camera-ui, which I am not surprised is popular, has almost 700.

Proposed Change

It seems like some plugins have artificially inflated download counts (not sure why), so personally, I feel like GitHub star count might be, if not a better measure, then at least a different way to determine the popularity of plugins.

Is it easy or even possible to add a column and filter/sort by GitHub star count?

Additional Context

I took a brief look at the homebridge/analytics repo. Is this the right place to start? I'm happy to try and make the updates myself and create a pull request if somebody could give me a little guidance.

Thanks for considering!</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits January 1, 2026 21:28
Co-authored-by: NorthernMan54 <19808920+NorthernMan54@users.noreply.github.com>
… attributes

Co-authored-by: NorthernMan54 <19808920+NorthernMan54@users.noreply.github.com>
Co-authored-by: NorthernMan54 <19808920+NorthernMan54@users.noreply.github.com>
Copilot AI changed the title [WIP] Add GitHub star count to Homebridge plugins stats Add GitHub star count to plugin analytics Jan 1, 2026
Copilot AI requested a review from NorthernMan54 January 1, 2026 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Github Star Count to Homebridge Plugins stats

2 participants