How scadoshi/zwipe works
Zwipe is a mobile-first Magic: The Gathering deck builder, with a companion website. The main user workflow is to browse or search cards, add and manage them in a deck, then analyze or share the result. The README documents the app/site → typed client → shared core → server architecture; the graph preserves those boundaries and the product’s card, deck, account, and site capabilities. Internal calls in unsampled code are not asserted beyond those documented relationships.
Main entry points: domain Domain and contracts · router.rs Mobile app · main.rs Website · call.rs Typed API client
Components 19
User surfaces
- Mobile app
zwiper/src/lib/inbound/router.rs - Deck workflow
zwiper/src/lib/inbound/screens/deck/card/view.rs - Website
zite/src/main.rs - Guides and sharing
zite/src/pages/shared_deck.rs
Shared platform
- Shared UI components
zwipe-components/src - Typed API client
zwipe-client/src/call.rs - Domain and contracts
zwipe-core/src/domain - Card search rules
zwipe-core/src/domain/card/models/search_card/card_filter/query.rs - Deck rules and models
zwipe-core/src/domain/deck
API and services
- Authentication API
zerver/src/lib/inbound/http/handlers/auth - Card API
zerver/src/lib/inbound/http/handlers/card - Deck API
zerver/src/lib/inbound/http/handlers/deck - Server orchestration
zerver/src/lib/domain/deck/services.rs - PostgreSQL storage
zerver/src/lib/outbound/sqlx/postgres.rs
Data integrations
- Scryfall
- Archidekt
- Email delivery
Other components
- Deck builder
- Site visitor
Connections 22
- Deck builder → Mobile app: uses
- Mobile app → Deck workflow: navigates
- Deck workflow → Shared UI components: uses
- Deck workflow → Typed API client: requests data
- Site visitor → Website: visits
- Website → Guides and sharing: renders
- Website → Typed API client: uses
- Website → Shared UI components: uses
zwipe-components/src/lib.rs - Mobile app → Typed API client: uses
- Mobile app → Shared UI components: uses
zwipe-components/src/lib.rs - Typed API client → Domain and contracts: uses contracts
- Domain and contracts → Card search rules: defines
zwipe-core/src/domain/card/models/search_card/card_filter/query.rs - Domain and contracts → Deck rules and models: defines
- Card API → Domain and contracts: uses contracts
- Deck API → Domain and contracts: uses contracts
- Authentication API → Domain and contracts: uses domain
- Server orchestration → PostgreSQL storage: persists data
- Card API → Server orchestration: delegates
- Deck API → Server orchestration: delegates
- Card API → Scryfall: syncs card data
- Deck API → Archidekt: imports decks
- Authentication API → Email delivery: sends mail