rust-web-tcg: A Trading Card Game for the Rust Web Stack
A Dioxus app that turns frameworks, runtimes, and middleware into collectible cards, then uses search, filters, and code snippets to make the ecosystem feel navigable instead of abstract.
- rust-web-tcg works because it turns ecosystem discovery into a browsing problem, not a reading problem.
- The card taxonomy is the product. Frameworks, runtimes, and middleware stay legible because the metaphor stays consistent.
- The app feels lightweight because one typed card schema drives filtering, rendering, and code snippets.
- Its real value is not gameplay. It is a sharper mental map of the Rust web stack.
The Rust web stack, turned into a deck
Most developer directories ask you to compare tools in your head. rust-web-tcg does the opposite. It gives the ecosystem a physical shape: cards, packs, lanes, costs, flavor text, and a search loop that makes the whole thing feel like something you can actually browse.
That matters because the Rust web world is broad enough to be disorienting. Frameworks, runtimes, middleware, frontend libraries, and utility crates do not naturally sort themselves into a clean mental model. This repo is basically an argument that a strong metaphor can do the job better than another table of links.
Why the mapping works
The mapping is not cute for its own sake. In the repo, frameworks become creatures, runtimes become lands, and middleware becomes enchantments. That gives each card type a job in the mental model, so the browser feels coherent instead of decorative.
The important part is consistency. A lane color, a cost pip, and a card class are all part of the same system, so the UI can explain itself without extra prose. Once the taxonomy is stable, browsing becomes a kind of recognition game.
A great plus for JavaScript Developers is that Actix looks similar to Express, so if you are familiar with Express, you will find Actix easy to learn.
The deck is powered by data, not hand-built pages
Under the hood, the project leans on Rust the way you would want it to: one source of truth, strong types, and serialization that keeps the data honest. The card database lives in JSON, then gets parsed into structured models with serde before the UI ever renders a deck.
That is why the project scales cleanly. When the schema knows what a card is, the rendering layer can stay generic. A new card adds content, not new UI logic.
// Conceptual shape of the data flow
let cards = serde_json::from_str::<Vec<Card>>(CARDS_JSON)?;
let visible = cards
.into_iter()
.filter(|card| matches_search(card, query))
.filter(|card| matches_lane(card, active_lane))
.collect::<Vec<_>>();
Search feels simple because the state model is simple
The search loop is the quiet achievement here. In Dioxus, signals hold the query and the active lane, and the filtered list recomputes from one parsed dataset. There is no scattered state to reconcile, and no separate mental model for the filters versus the cards.
That keeps the interaction fast and predictable. Type a term, switch a lane, and the deck narrows instantly. The app feels playful because the state model refuses to be complicated.
let query = use_signal(String::new);
let lane = use_signal(|| None::<Lane>);
let filtered = use_memo(move || {
all_cards
.iter()
.filter(|card| card.matches(&query(), lane()))
.collect::<Vec<_>>()
});
The card UI does the heavy lifting
The card component is where the metaphor becomes visual truth. card_view.rs assembles the frame, CostPip renders the resource glyphs, and the art layer gives each card enough personality to feel collectible rather than clinical.
That composability matters. Every card inherits styling from the data model, so the UI is less like a gallery of bespoke pages and more like a template that can absorb new content without losing its shape.
The result is polished, but not fragile. The design does a lot of work because the structure underneath is disciplined.
How it compares to ordinary framework discovery
| Discovery method | Strength | Weakness | What rust-web-tcg changes |
|---|---|---|---|
| README browsing | Closest to the source | Flat, verbose, easy to skim past | Turns library facts into a browseable card system |
| crates.io listings | Good for lookup | Weak at comparison and memory | Adds visual taxonomy and stronger recall |
| Blog roundup posts | Helpful editorial framing | Static and time-bound | Makes the ecosystem explorable, not just readable |
| Benchmark tables | Useful for selecting by metric | Narrow and reductionist | Lets readers search by role, not only performance |
This is where the repo earns its place. It does not replace documentation, package registries, or serious comparisons. It gives them a faster front end for pattern recognition.
What this project is really demonstrating
At a glance, rust-web-tcg is a Dioxus demo with a strong theme. Underneath, it is a design thesis: open-source discovery gets better when the taxonomy itself is interactive.
That is why the project sticks. It does not just describe the Rust web stack. It teaches you how to think about it.





