Zwipe Mobile-first Magic: The Gathering deck builder with swipe-based navigation. Status: live on the iOS App Store and Google Play. Deck building is in the app; zwipe.net is the site. Tech stack Full-stack Rust: zwipe-core: shared domain types, validation, business rules, HTTP contracts; the single source of truth components: the Magic UI (card rows and details, oracle text, the changelog, the deck charts) over…
Mobile-first Magic: The Gathering deck builder with swipe-based navigation.
Status: live on the iOS App Store and Google Play. Deck building is in the app; zwipe.net is the site.
Tech stack
Full-stack Rust:
zwipe-core: shared domain types, validation, business rules, HTTP contracts; the single source of truth
components: the Magic UI (card rows and details, oracle text, the changelog, the deck charts) over orangui, the generic Dioxus kit it re-exports; shared by the app and the site
zwipe-client: typed API client over the shared contracts, one call function for every endpoint; used by both the app and the site
zwipe-ui: the screen logic the clients share (color bars, filter draft, swipe stack, hint copy, timings), with no UI crate, so web, desktop and terminal clients draw the same screens
# prerequisites: rust (https://rustup.rs), macos: xcode-select --install
./zcripts/development/setup_macos.sh # macos setup (postgres, dx, sqlx-cli, database)
./zcripts/development/setup_omarchy.sh # linux setup (arch)
cargo run --bin zerver # backend api
cd zwiper && dx serve # mobile app (web preview)
cargo run --bin zervice # scryfall card sync (run once to seed)
Architecture
Hexagonal architecture with domain-driven design. zwipe-core owns all shared domain types; zerver re-exports them and adds server-specific layers (database adapters, HTTP handlers, service orchestration). See context/architecture/decisions.md for the decisions and why they went that way, and zwipe-context README.md for where the rest of the documentation lives.
评论