<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Axioms of Singularity</title>
    <description>The latest articles on DEV Community by Axioms of Singularity (@brawlerstats).</description>
    <link>https://dev.to/brawlerstats</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4070313%2Fe7a85b46-59dc-43de-8527-0357410ad249.png</url>
      <title>DEV Community: Axioms of Singularity</title>
      <link>https://dev.to/brawlerstats</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/brawlerstats"/>
    <language>en</language>
    <item>
      <title>How I built BrawlerStats: honest trophy history with Firebase and Cloud Run</title>
      <dc:creator>Axioms of Singularity</dc:creator>
      <pubDate>Sun, 09 Aug 2026 23:17:19 +0000</pubDate>
      <link>https://dev.to/brawlerstats/how-i-built-brawlerstats-honest-trophy-history-with-firebase-and-cloud-run-4bl2</link>
      <guid>https://dev.to/brawlerstats/how-i-built-brawlerstats-honest-trophy-history-with-firebase-and-cloud-run-4bl2</guid>
      <description>&lt;p&gt;BrawlerStats started with a simple question: if a Brawl Stars profile is public, why is it still difficult to understand how a player is progressing over time?&lt;/p&gt;

&lt;p&gt;I built &lt;a href="https://brawlerstats.com/" rel="noopener noreferrer"&gt;BrawlerStats&lt;/a&gt; as a free, no-login companion for public Brawl Stars data. You can search a public player tag, review trophies and brawler progress, inspect recent tracked battles, open public club rosters, and create daily trophy races between players.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;p&gt;The frontend is intentionally lightweight: HTML, CSS, and JavaScript hosted on Firebase Hosting. The API runs as an Express service on Node.js in Google Cloud Run, with Firestore storing discovered profiles, ranking snapshots, clubs, and race history.&lt;/p&gt;

&lt;p&gt;That split keeps static pages fast while letting dynamic player pages, widgets, and sitemaps come from the service.&lt;/p&gt;

&lt;h2&gt;
  
  
  The hard part: history that does not pretend
&lt;/h2&gt;

&lt;p&gt;The Brawl Stars API returns the current state. It does not hand you a complete timeline for every player and brawler. So BrawlerStats only charts snapshots that were actually captured.&lt;/p&gt;

&lt;p&gt;Race charts use daily closing values. If a player joins today, the chart starts today. When current live data is available, it is clearly marked as a live point instead of being silently rewritten into the historical series.&lt;/p&gt;

&lt;p&gt;This sounds small, but it matters. A smooth chart is not useful if it invents continuity.&lt;/p&gt;

&lt;h2&gt;
  
  
  Public discovery without accounts
&lt;/h2&gt;

&lt;p&gt;BrawlerStats does not require a user account. A player tag is enough to open a profile. Public profile pages and share cards are generated with canonical URLs and structured metadata, while dynamic sitemaps expose discovered profiles to search engines.&lt;/p&gt;

&lt;p&gt;Club data follows the same rule: show a current roster when public data is available, and say when it is not.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keeping the service efficient
&lt;/h2&gt;

&lt;p&gt;The service reuses stored discovery records and batches scheduled ranking work instead of refetching everything for each page view. Scheduled jobs capture race snapshots and country-ranking samples, while the public site reads the latest verified snapshot and displays its refresh time.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Current-state APIs need an explicit snapshot model before you can promise history.&lt;/li&gt;
&lt;li&gt;Honest empty states are better than interpolated data.&lt;/li&gt;
&lt;li&gt;Mobile layouts need separate verification; desktop success is not enough.&lt;/li&gt;
&lt;li&gt;Public pages, share images, widgets, and sitemaps are product features, not an afterthought.&lt;/li&gt;
&lt;li&gt;A fan tool should clearly disclose that it is independent and not affiliated with the game publisher.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;BrawlerStats currently supports English and German. It is an independent fan project and is not affiliated with Supercell.&lt;/p&gt;

&lt;p&gt;If you work on game-data tools, I would be interested to hear how you model sparse history or keep scheduled public-data refreshes efficient.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>firebase</category>
      <category>gamedev</category>
    </item>
  </channel>
</rss>
