scrobble.life
#dev

I built a THE FINALS rank tracker for my desktop

I love the game "The Finals". I have almost 2600hrs according to steam (over years of play). I pretty much exclusively play the Quick Cash mode, and I check the leaderboard more than I'd like to admit. Not in a "studying my progress" way — more in a "alt-tab out of the game, load a website, find my name, alt-tab back" way. That's a silly amount of friction for one number, so I put the number on my bar instead.

It's called Finals Rank, it's at github.com/ausbitbank/finalsRank, and it's at 1.3.0 — first public release.

image.png

I'm currently #3 globally and #1 for OCE, I play more when I'm depressed so this season I'm kicking ass lol.

What it does

The bar pill shows your rank and, if you want it, the time left in the season. Clicking it opens the card, which is where the rest lives:

  • Rank and score, pulled live from the community leaderboard API.
  • Season countdown with a progress bar and a configurable season name and date range.
  • Percentile — the "top 1.4% of 10,000" line, from a separate cheap board-size request.
  • Movement over a window from one hour to seven days, plus points-per-day once there are enough samples.
  • Trend sparklines for score and rank, built from changes the plugin records locally.
  • Past seasons and your career-best Quick Cash rank.
  • Desktop notifications when your rank changes, posted through DMS so they land in your notification history.

Same as my Hive widget: the bar popout and the desktop card render one shared panel on top of one shared logic file, so they can't drift.

The bits I cared about getting right

Leaderboards are full of opportunities to show a number that's technically computable and practically misleading. I tried to avoid those.

Off the board is not an error. The API only lists the top 10,000. If you're below that line, the card says off board. It doesn't show rank 10,001, and it doesn't show a blank that looks like a bug.

Ranks are global, and the widget says so. There's no public regional leaderboard. I went looking: the API has no region parameter, the site's only region strings are accessibility attributes, and the payload has no region field at all. The in-game filter is computed client-side from something Embark doesn't publish. So the plugin doesn't pretend it can filter by region.

Season dates are manual, because there's no feed. Start and end are settings with the current defaults baked in. When Embark announces the next season, you update them, or the countdown will be wrong. That's an honest limitation rather than a silent one.

History starts when you install it. The API has no per-player history, so movement and sparklines are built from local samples. A small JSONL file in your state directory records a row only when rank or score changes, and it's pruned by age and capped. On day one the trend charts are empty — they need at least three recorded changes before they draw, which beats drawing a line through two points and calling it a trend.

Rank is plotted inverted. Going up the leaderboard means your rank number goes down, so the rank sparkline is flipped to match the score line. Otherwise the two charts would appear to disagree while both being correct.

The rollover fallback. During a season rollover the leaderboard endpoint can 404 for a while. Rather than showing an error, the plugin retries the game's upstream leaderboard page (crossplay only) and parses the embedded __NEXT_DATA__ payload. That path is a fallback, not the primary source.

The pure helpers and the history store are covered by offline tests (npm test, Node 18+, no dependencies). There's also an optional live check if you want to hit the network: FINALS_PLAYER='YourName#1234' npm run test:live.

Installing it

You'll need DankMaterialShell >= 1.2.0 and curl on your PATH.

git clone https://github.com/ausbitbank/finalsRank.git \
  ~/.config/dms/plugins/finalsRank

Then rescan:

dms ipc call plugin-scan reload finalsRank

If it was already enabled and the new code doesn't appear, restart the shell:

systemctl --user restart dms.service

Enable Finals Rank in Settings → Plugins, then set your player name. A fresh install says No player name set — no hard-coded name shipped in the repo. Use your Embark name or platform handle, and add #1234 if the base name is ambiguous. The leaderboard defaults to s12quickcash; the board ID is <season><mode>, so s12powershift, s12 for Ranked, and s12sponsor for the sponsors board all work.

Privacy

The plugin only talks to public, keyless endpoints:

Purpose Endpoint
Live rank and score, board size, past seasons https://api.the-finals-leaderboard.com
Rollover fallback https://id.embark.games

No telemetry, analytics, accounts or API keys. The only player name queried is the one you configure.

History is local, in ~/.local/state/DankMaterialShell/plugins/finalsRank/history.jsonl, and never uploaded. Notifications are local too — they go through dms notify to your own desktop notification service. Requests use curl with an argument array rather than a shell, and the player name is URL-encoded.

Things it won't do

Worth being upfront about, since they're the questions I'd ask:

  • Regional ranks. Not available from any public source. Global only.
  • Below the top 10,000. It says off board rather than guessing.
  • Season dates. Manual, by necessity.
  • Instant refresh. Live boards are cached for around ten minutes, so polling faster just burns requests.
  • History before install. There isn't any to fetch.
  • Sponsors boards for comparison. They rank by fans, not performance, so they're excluded from past seasons by default and carry no points.

What I'd like from you

If you play THE FINALS and the number doesn't match what you see in-game, that's the feedback I want most — especially if it's a mode or platform I don't play. Same if a season rollover breaks something; that path is the most fragile part of the plugin, and it only gets tested when Embark actually rolls a season.

Issues and PRs are open, and docs/DEVELOPMENT.md has the architecture notes and the QML traps I hit along the way.

git clone https://github.com/ausbitbank/finalsRank.git \
  ~/.config/dms/plugins/finalsRank
dms ipc call plugin-scan reload finalsRank

MIT licensed.

Let me know in the comments if you're as hooked on The Finals as I am. I'm loving the season 12 changes, especially the mimic/prop hunt elements.

Comments

No comments yet — be the first.