https://github.com/akhileshthite/github-release-download-stats
A simple JavaScript script that fetches and displays the total and latest download counts for all releases of a specified GitHub repository.
https://github.com/akhileshthite/github-release-download-stats
github-releases github-stats
Last synced: 11 months ago
JSON representation
A simple JavaScript script that fetches and displays the total and latest download counts for all releases of a specified GitHub repository.
- Host: GitHub
- URL: https://github.com/akhileshthite/github-release-download-stats
- Owner: akhileshthite
- License: mit
- Created: 2024-09-15T22:39:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-15T23:22:50.000Z (over 1 year ago)
- Last Synced: 2025-07-09T16:13:21.271Z (11 months ago)
- Topics: github-releases, github-stats
- Language: JavaScript
- Homepage: https://akhileshthite.github.io/github-release-download-stats/
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github-release-download-stats

Include `script.js` or copy the `getDownloadCounts` function into your code.
```javascript
// Call the function with desired parameters
getDownloadCounts('ipfs', 'ipfs-desktop')
.then((counts) => {
// Use the counts in your application
document.getElementById('totalDownloads').textContent = counts.total;
document.getElementById('latestDownloads').textContent = counts.latest;
document.getElementById('latestTag').textContent = counts.latestTag;
})
.catch((error) => {
// Handle errors
console.error('Error fetching download counts:', error);
});
```