---
id: 16587
lang: en
title: "A Developer Fit a Steam Tag Recommender Into the Browser: 390 MB Database, 1 MB Ranker"
published_at: "2026-11-21 01:24:12"
source_name: "Habr AI"
source_url: "https://habr.com/ru/articles/1107436/?utm_campaign=1107436&utm_source=habrahabr&utm_medium=rss"
canonical_url: "https://news.hamidun.com/en/news/16587"
categories: ["llm"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# A Developer Fit a Steam Tag Recommender Into the Browser: 390 MB Database, 1 MB Ranker

> **Краткая суть (BLUF):** Smart tag suggestions usually require a server running a neural network and a monthly bill, but the author of Pocket Cat Desktop got by with a static site. The game description is turned into a vector right in the browser, while data on 199,541 Steam apps sits in a 390 MB database on a CDN. A 1 MB ranker sorts roughly 430 tags, and everything stays within free-tier limits. For a small team, this is a way to launch recommendations without paid inference.  - The SQLite database loads through sql.js (WASM) from Cloudflare R2, which charges no egress fees - Int8 embedding models take up 23 to 111 MB and run in a Web Worker - A nightly GitHub Action refreshes the data, and the site is built on GitHub Pages

To suggest tags to a developer for a Steam game, you usually need a server running a neural network, and with it a monthly bill. The author of Pocket Cat Desktop chose to skip that and built an analyzer that runs entirely in the browser. The "weight" sits in files served by a CDN: the database is roughly 390 MB (more precisely, 388 MB), and the tag ranker, stored as JSON, is only about 1 MB. So far everything fits within free-tier limits, and the only recurring cost is a domain the author already owned.

## Why games need the right tags

Steam tags affect recommendations, the "Similar products" block, and search filters, and they also shape player expectations. An overly generic tag hides what makes a niche game distinctive, while an inaccurate one brings in the wrong audience. The author wanted to answer three questions: whether his genre is oversaturated, which tags successful similar games use, and what kind of performance a game like his can realistically expect.

The analyzer takes a game description and returns three lists: core tags, secondary tags, and tags that may mislead players and need double-checking. Each comes with justifications and similar games. The final decision remains with the developer.

## How it works without a server

Data is collected and models are trained separately, and a CDN serves the finished results. The components are:

- a SQLite database of about 390 MB, which the browser loads through sql.js (WASM) from Cloudflare R2, where outgoing traffic is free;
- embedding models (they turn text into a set of numbers that reflect semantic closeness) running through Transformers.js in a Web Worker; int8-quantized ONNX weights take between 23 and 111 MB per model;
- a LightGBM ranker exported to a 1 MB JSON file; computing its output takes roughly 50 lines of JavaScript;
- a set of game vectors totaling 8 MB, searched by brute force using dot products;
- a nightly GitHub Action that updates the database and analytics files, while a separate public repository rebuilds the site daily on GitHub Pages.

The main drawback is the first load: before returning results, the analyzer and tag checker need the entire database. The analytics pages get by with small, precomputed JSON files.

The system works in two steps. First, the description is converted into a vector and candidates are gathered: the 120 nearest tag "centroids," tags explicitly named in the text, and up to 15 tags strongly supported by similar games. A tag centroid is the averaged vectors of up to 500 game descriptions carrying that tag, so "Cozy" is represented by descriptions of cozy games rather than just the word. Then the ranker sorts the candidates, and rules select up to 5 core tags and, as a rule, 10 secondary tags.

The author fine-tuned three models (all-MiniLM-L6-v2, bge-small-en-v1.5, and gte-base) on Steam descriptions and tags. For each run he used up to 100 thousand released games and held out 3,000 games as a control set. A game's first three tags count as correct examples, and for each one a semantically close but unassigned tag is picked as a "wrong" example. The author openly notes that such a tag may in fact fit. On an RTX 5080, the small models need minutes, while gte-base needs up to an hour.

The ranker receives five features for each game-tag pair, including semantic similarity and how characteristic the tag is of successful games in the segment. Training used about 2 million rows: 600 iterations, up to 31 leaves per tree. More realistic "wrong" tags helped noticeably: a random "Racing" tag for a deckbuilding game is too obvious, whereas the live system has to choose among 120 close centroids.

## Pitfalls in data collection

The author gathered 199,541 apps, about 130 thousand released games, and more than three million tag assignments. Four problems came up along the way:

- a limit of 120 requests per minute caused endless 429 responses; the store consistently sustained 40–60 requests, and with a limit of 50 the collection finished faster;
- 8,547 games, including Quake, Hitman, and Deus Ex, had no tags because of an age check; a cookie with a birth date fixed it;
- the day_range parameter did not limit the summary of reviews, so for several months the "trend" was simply the total review count;
- a nightly run over 5,000 games returned empty responses with HTTP 200 and no error; now such a response counts as a failure, and the update aborts if more than 80% of requests fail.

## What this means in practice

For tasks where you need to choose from a limited list of options, tiny embeddings and a decision-tree ranker fit within browser constraints and require no paid inference. A chat model could also rank tags, but the author did not run a controlled comparison.

There are limitations too. Training was based on the tag order as saved, so the system does not predict sales or the benefit of swapping a tag. Reviews serve only as an indirect engagement signal. Text preprocessing must match between training and search, and the encoder, tag centroids, ranker, and game vectors must stay in sync: the daily data updates do not rebuild them.

---
- **Первоисточник:** [Habr AI](https://habr.com/ru/articles/1107436/?utm_campaign=1107436&utm_source=habrahabr&utm_medium=rss)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/16587
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
