https://github.com/simov/stars-htm
GitHub Star History and Stats
https://github.com/simov/stars-htm
Last synced: 3 months ago
JSON representation
GitHub Star History and Stats
- Host: GitHub
- URL: https://github.com/simov/stars-htm
- Owner: simov
- License: mit
- Created: 2019-01-08T10:26:25.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-08T12:07:20.000Z (about 7 years ago)
- Last Synced: 2025-02-26T09:41:52.177Z (11 months ago)
- Language: JavaScript
- Homepage: https://simov.github.io/stars-htm/
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# stars
> _Do You Even Trend?_
### [:rocket: GitHub Star History and Stats :sparkles:][app]
## tech stack
- **render:** [Preact] + [Plotly] + [htm]
- **router:** [pushState] + [URLSearchParams]
- **store:** `{}` + [Proxy]
- **request:** [fetch]
- **login:** [Grant]
- **import:** _all the things_
- **async generators:** _say whaaat_
- **var:** :scream:
## app size
> _minified + gzipped_
file | size | notes
:--- | ---: | :---
**css** | 1.0KB | -
**htm** | 1.1KB | -
**app** | 2.9KB | rollup + terser (no babel)
**preact** | 3.4KB | -
**plotly** | 281KB | :grimacing: cartesian module only
## how
This app leverages native ES [modules]:
```bash
npm i
npm run render:dev
```
The app bundling is completely optional:
```bash
npm run build
npm run render:prod
```
## limit
Currently the GitHub API have a hard limit of up to 400 pages returned for stargazers history for a given repository, meaning that only the first 40k stars can be explored with this app.
![][screenshot]
> This project was inspired by [StarTrack-js][startrack]
[app]: https://simov.github.io/stars-htm/
[Preact]: https://github.com/developit/preact
[Plotly]: https://github.com/plotly/plotly.js
[htm]: https://github.com/developit/htm
[pushState]: https://developer.mozilla.org/en-US/docs/Web/API/History_API
[URLSearchParams]: https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams
[Proxy]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy
[fetch]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
[Grant]: https://github.com/simov/grant
[modules]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import
[startrack]: https://seladb.github.io/StarTrack-js/
[<40k]: https://github.com/search?q=stars%3A%3E40000&type=Repositories
[screenshot]: https://i.imgur.com/eD7irk5.png