Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simov/stars
GitHub Stars History and Stats
https://github.com/simov/stars
Last synced: 3 months ago
JSON representation
GitHub Stars History and Stats
- Host: GitHub
- URL: https://github.com/simov/stars
- Owner: simov
- License: mit
- Created: 2018-12-27T18:12:33.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-12T14:20:00.000Z (over 4 years ago)
- Last Synced: 2024-07-18T12:14:06.552Z (4 months ago)
- Language: JavaScript
- Homepage: https://simov.github.io/stars/
- Size: 12.7 KB
- Stars: 47
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
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] + [hyper]
- **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 | -
**app** | 2.7KB | 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/
[Preact]: https://github.com/developit/preact
[Plotly]: https://github.com/plotly/plotly.js
[hyper]: https://github.com/simov/stars/blob/master/lib/hyper.js
[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