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.

6 min read • View on GitHub • More from francescoxx

A wide tabletop spread of Rust web cards, sorted by category like a strategist laying out a deck. One card is pulled slightly forward, suggesting selection, while the rest form a readable ecosystem map rather than a pile of random collectibles. The illustration explains the project’s core idea: technical discovery as playful browsing.
The whole repo starts with a simple bet. If the Rust web stack feels abstract, turn it into a deck you can sort, scan, and remember.
Key Takeaways

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 app is easiest to understand as a pipeline. One dataset becomes a searchable deck because search, lane filters, and snippet lookup all flow from the same typed model.

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.

Francesco Ciulla, Developer Advocate at daily.dev, Content Creator · Actix Web - DEV Community

The deck is powered by data, not hand-built pages

A close-up of a JSON ledger feeding into a typed Rust data model, then branching into card fields such as cost, lane color, flavor text, and art. The scene explains that the cards are generated from one schema instead of being assembled one by one. It highlights how the app stays coherent as the collection grows.
The interface stays tidy because content and behavior come from the same schema. The card deck is data-driven, not hand-painted one page at a time.

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 methodStrengthWeaknessWhat rust-web-tcg changes
README browsingClosest to the sourceFlat, verbose, easy to skim pastTurns library facts into a browseable card system
crates.io listingsGood for lookupWeak at comparison and memoryAdds visual taxonomy and stronger recall
Blog roundup postsHelpful editorial framingStatic and time-boundMakes the ecosystem explorable, not just readable
Benchmark tablesUseful for selecting by metricNarrow and reductionistLets 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.