A serverless API that generates a star-history style graph for GameBanana submissions showing likes over time.
Inspired by star-history
Embed the graph in your mods description by replacing {SECTION} and {ID} with your GameBanana submission details:
If you have a lot of likes (500+) it might time-out initially, just refresh.
<a href="https://github.com/cueki/gamebanana-likes">
<img src="https://gamebanana-likes.vercel.app/api/graph?section={SECTION}&id={ID}" alt="Likes Graph">
</a>section(required): GameBanana section type (e.g.,tool,mod,script,sound,spray,wip). Case-insensitive and automatically de-pluralized, sotools,Tools, orTOOLSall work.id(required): Your submission ID (find it in your GameBanana URL)theme(optional):light,dark, ortrans(transparent). Defaults totrans.
- The graph caches for 1 hour
- Supports up to 12,500 likes (250 pages)
- Fetches submission details from GameBanana API
- Fetches all likes with pagination from GameBanana API
- Extracts the
_tsDateAddedtimestamp from each like - Groups likes by date and creates cumulative counts
This project uses design elements adapted from star-history under the MIT License:
- xkcdify SVG filter for sketch effect
- Color palettes for light/dark themes
- Number formatting approach
- Typography and layout
For Casual Preloader (Tools #19049):
Dark: https://gamebanana-likes.vercel.app/api/graph?section=Tool&id=19049&theme=dark
Transparent theme uses the same white text.
Light: https://gamebanana-likes.vercel.app/api/graph?section=Tool&id=19049&theme=light