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.
<img src="https://gamebanana-likes.vercel.app/api/graph?section={SECTION}&id={ID}&theme={THEME}" alt="Likes Graph">section: GameBanana section type. Examples:Tool,Mod,Scipt,Sound,Spray,Wip(find it in your GameBanana URL, notice the capitalization)id: Your submission ID (also find it in your GameBanana URL)theme:light,dark, ortrans(transparent, optional, defaults tolight)- For GameBanana, I recommend the trans theme.
- 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