Readme
# ALPHA40::BOX // COMMONS EDITION
**Privacy-first MTG Alpha deckbuilder. No cloud. No tracking. Runs offline.**
[](LICENSE)
[](#)
[](#)
[](#)
[](#)
---
## What It Is
A single HTML file that is a complete MTG Alpha deckbuilder and goldfish simulator.
Open `BOX-1.html` in any browser. No install. No account. No server. Your data never leaves your machine.
## Features
### Deckbuilder
- **220+ Alpha Set cards** — most of the set, Power Nine to basic lands
- **Two formats**: Alpha 40 (40-card, Power/Fast Mana limits) and Commander/EDH (100-card singleton)
- **Format rules enforced**: Power 9 max 1, Fast Mana max 4 total, 4-copy limit, Commander singleton
- **Color filters**: W / U / B / R / G / Artifacts / Lands — single-click filtering
- **Mana curve chart**: live Canvas bar chart updates as you build
- **Type breakdown**: Creatures · Spells · Lands · Artifacts counted live
- **Commander zone**: search and set your commander card
- **Text export**: one-click deck list for MTGO / paper / sharing
- **Sample decks**: Classic Alpha 40 and Atraxa Commander (99-card + commander)
### Tome
- Full searchable card reference with color-coded cards
- Filter by color, search by name or type
- Power Nine and Fast Mana flags
### Arena (Goldfish Simulator)
- Load any saved deck, draw 7, draw, mulligan
- Cards color-coded in hand view
### 8-Point Tether (WebRTC P2P)
- Direct peer-to-peer connection via WebRTC data channel
- Manual copy-paste signaling (no server required)
- Works air-gapped on LAN
- Chat / message passing between two boxes
### Lineage Log
- Every saved deck gets a timestamped lineage entry
- Records: author, who taught you, deck name, card hash, format
- Export full provenance as JSON
---
## Run
```bash
# Just open in browser
start BOX-1.html
# Or launch in Edge kiosk mode (PowerShell)
.\Launch-BOX1.ps1
```
No build step. No dependencies. Zero.
---
## Offline Image Mode
```bash
pip install requests
python dow