TopStats.gg
How I rebuilt DBL Statistics as TopStats.gg: a React frontend, a public API about twice as fast, and free statistics for Discord servers.
52,778bots tracked

- Role
- Founder & Full Stack Engineer
- Period
- Oct 2024 – Present
- Team
- Built with Marco and Luke
- Stack
- TypeScript
- React
- Fastify
- Redis
Rebuilding DBL Statistics as TopStats
DBL Statistics tracked statistics for Discord bots, but it ran on EJS templates, plain HTML and MongoDB. It had become hard to maintain and slowed down every new feature, so we announced a full rebuild under a new name: TopStats.
I moved the frontend from EJS to React, first with Chakra UI v3 and later migrating to shadcn/ui. The redesign also targeted the most visible problem on the old site: graphs that could take nine seconds to load.
On the data side, Luke migrated 1.8 billion rows from MongoDB to Timescale with zero downtime. He wrote about it on the blog (opens in a new tab).


DBL Statistics before the rebuild, and TopStats today. Drag to compare. Original post: The Future of DBL Statistics (opens in a new tab)
Closed beta
Just over a month after the announcement, the redesigned home and bot pages went to a closed beta for supporters. It ran for a few weeks to gather feedback and catch bugs while we finished the API and the remaining pages.
Original post: Sneak Peeks and Closed Beta (opens in a new tab)
A faster public API
I built the new public API and its documentation at docs.topstats.gg (opens in a new tab). Requests take about half the time they did on the legacy DBL Statistics API, and the bot graph route went from almost 13 seconds on a first request to 153 ms.
First-request response times, legacy API vs. TopStats API. Route Legacy TopStats Bot data 397 ms 134 ms Bot graph data 12.99 s 153 ms Rankings 660 ms 193 ms User bots 395 ms 185 ms It also returns more data than before, such as a bot's Discord tags and the percentage change in its votes.
Original post: TopStats API Is Now Available (opens in a new tab)
Open beta
The redesigned site opened to everyone the same day. Bot pages could show all monthly data at once instead of a one-year limit, rankings got better sorting, search could jump straight to a bot, and the compare page took bot names instead of IDs.
Original post: TopStats Open Beta now available! (opens in a new tab)
Full release
After about seven months in open beta, bots.topstats.gg (opens in a new tab) left beta with its full release on 4 July 2025.
Discord server statistics
I built the frontend for servers.topstats.gg (opens in a new tab), which brings the same kind of analytics to Discord servers, free for servers of any size. It shows which games members play, how active each channel is, whether members stay or leave, and overall message activity.

The Members page: joins and leaves over time, member growth, and activity per member. Premium adds deeper views, like underused channels, when members are most active, and individual member activity. TopStats never reads message contents.
Original post: Discord Server Statistics are here! (opens in a new tab)