MTG Lab Source Code

Download the complete source code for this deck testing laboratory

Project Details

Framework
Next.js 15 with App Router
Language
TypeScript
Styling
Tailwind CSS + shadcn/ui
State Management
React Context API
Storage
IndexedDB + localStorage
Estimated Size
~2.5 MB (excluding node_modules)

Included Files

📁 mtg-lab-source/
📄 README.md
📄 package.json
📄 .env.example
📄 tsconfig.json
📄 next.config.js
📄 tailwind.config.ts
📁 app/
📄 layout.tsx
📄 page.tsx
📄 providers.tsx
📁 deck-builder/
📁 playtest/
📁 analysis/
📁 sideboard/
📁 source-code/
📁 components/
📁 mtg/
📁 analysis/
📁 navigation/
📁 ui/
📁 core/
📁 deck/
📁 mtg/
📁 playtest/
📁 lib/
📁 styles/
📁 public/

Key Features

  • JSON/CSV card import with live preview
  • Persistent deck management with localStorage
  • Drag-and-drop battlefield simulator
  • Advanced mathematical deck analysis
  • Sideboard guide builder
  • Mobile-responsive design

Note: This downloads a template structure with sample files. For the complete working source code, please access the actual repository.