No description
Find a file
2026-05-11 09:45:15 +02:00
.github fix: Show rarity setting not respected, :docs: Update README, fix: card preview clipping 2026-05-11 09:45:15 +02:00
art fix: Show rarity setting not respected, :docs: Update README, fix: card preview clipping 2026-05-11 09:45:15 +02:00
jest fix: Price should obey setting, Comment should be part of Name 2026-05-06 15:26:43 +02:00
src fix: Show rarity setting not respected, :docs: Update README, fix: card preview clipping 2026-05-11 09:45:15 +02:00
test Initial commit 2026-04-30 19:51:30 +02:00
.editorconfig Initial commit 2026-04-30 19:51:30 +02:00
.gitignore Initial commit 2026-04-30 19:51:30 +02:00
.npmrc buid: Bump version 2026-05-01 21:03:31 +02:00
.prettierignore build: Remove husky 2026-04-30 19:56:15 +02:00
.prettierrc.json Initial commit 2026-04-30 19:51:30 +02:00
esbuild.config.mjs feat: Add card type summary 2026-05-11 09:11:34 +02:00
eslint.config.mjs fix: 14 eslint errors to go 2026-05-02 00:48:07 +02:00
jest.config.js Initial commit 2026-04-30 19:51:30 +02:00
LICENSE Initial commit 2026-04-30 19:51:30 +02:00
main.ts feat: Add rarity indicators 2026-05-10 20:25:22 +02:00
manifest.json fix: Show rarity setting not respected, :docs: Update README, fix: card preview clipping 2026-05-11 09:45:15 +02:00
mtg-deck.code-workspace build: More dependabot groups 2026-04-30 21:10:04 +02:00
package-lock.json build(deps): Bump the jest group with 3 updates 2026-05-08 19:14:40 +00:00
package.json fix: Show rarity setting not respected, :docs: Update README, fix: card preview clipping 2026-05-11 09:45:15 +02:00
README.md fix: Show rarity setting not respected, :docs: Update README, fix: card preview clipping 2026-05-11 09:45:15 +02:00
register.js fix: Down to 3 eslint errors 2026-05-02 01:07:30 +02:00
styles.css fix: Show rarity setting not respected, :docs: Update README, fix: card preview clipping 2026-05-11 09:45:15 +02:00
svg.d.ts feat: Add card type summary 2026-05-11 09:11:34 +02:00
tsconfig.json fix: Price should obey setting, Comment should be part of Name 2026-05-06 15:26:43 +02:00
version-bump.mjs Initial commit 2026-04-30 19:51:30 +02:00
versions.json fix: Show rarity setting not respected, :docs: Update README, fix: card preview clipping 2026-05-11 09:45:15 +02:00

MTG Deck

An Obsidian plugin for Magic: The Gathering players. Paste a decklist into a code block and get a richly formatted, interactive deck view — with card previews, mana costs, prices, type grouping, and more.

Features

  • Instant rendering — card names appear immediately, card data loads in the background
  • Card previews — hover over any card to see a preview image
  • Double-faced card support — click the preview image to flip between card faces
  • Mana cost symbols — displays official mana symbols from Scryfall
  • Rarity indicators — colored dot before each card count (black = common, silver = uncommon, gold = rare, orange = mythic)
  • Type grouping — cards are automatically sorted and grouped by type (Planeswalker, Creature, Instant, Sorcery, Artifact, Enchantment, Land)
  • Type summary — footer shows a count per card type with official card type icons
  • Card prices — shows prices in USD, EUR, or TIX via Scryfall
  • Visual grid view — toggle between list view and a visual grid of card images per section
  • Collection tracking — tracks how many copies you own and highlights missing cards
  • Buylist — automatically generates a buylist of missing cards
  • Multiple decklist formats — supports standard MTGO, Arena, and Moxfield export formats
  • Hyperlinked card names — optionally link card names to their Scryfall page
  • Section support — supports multiple sections (Deck, Sideboard, Commander, etc.)

🖼️ Screenshots

⬇️ Installation

This plugin is not yet available in the Obsidian Community Plugin directory. Install it using BRAT (Beta Reviewers Auto-update Tool).

  1. Install BRAT from Settings → Community Plugins → Browse, search for BRAT, install and enable it
  2. Open Settings → BRAT and click Add Beta Plugin
  3. Enter the repository URL: https://github.com/sboulema/mtg-deck and click Add Plugin
  4. Enable the plugin under Settings → Community Plugins

BRAT will automatically notify you when updates are available.

🤲 Usage

Create a code block with the language set to mtg-deck:

```mtg-deck
Deck:
4 Ragavan, Nimble Pilferer
4 Dragon's Rage Channeler
4 Murktide Regent
4 Counterspell
4 Brainstorm
4 Ponder
4 Force of Will
4 Daze
4 Lightning Bolt
4 Wasteland
12 Island
4 Volcanic Island
4 Scalding Tarn

Sideboard:
2 Pyroblast
2 Red Elemental Blast
3 Surgical Extraction
2 Grafdigger's Cage
2 Flusterstorm
4 Back to Basics
```

Supported Decklist Formats

Standard format:

4 Lightning Bolt
4 Ragavan, Nimble Pilferer (MH2) 138

Headed format:

Deck:
4 Lightning Bolt

Sideboard:
2 Pyroblast

Arena format:

About
Name My Deck Name
Deck
4 Lightning Bolt
Sideboard
2 Pyroblast

Comments

Inline comments can be added with #:

4 Otawara, Soaring City # Is this necessary?
1 Boseiju, Who Endures # Maybe cut?

Full-line comments start with # :

# Creatures
4 Ragavan, Nimble Pilferer

Settings

Open Settings → MTG Deck to configure the plugin:

Setting Description
Show mana costs Display mana cost symbols in a Cost column
Show card prices Display card prices in a Price column
Preferred currency Choose between USD ($), EUR (€), or TIX (Tx)
Show card previews Show card image on hover
Show card names as hyperlinks Link card names to their Scryfall page
Show buylist Show a buylist section for missing cards

Collection Tracking

This plugin expects your collection to be stored as csv files with the extension .mtg.collection.csv by default. This extension is configurable in settings:

These files are expected to be properly formed CSVs such as those generated by tools like Deckbox

Example CSV Files

Name,Count,Set
Delver of Secrets // Insectile Aberration,8,MID
"Otawara, Soaring City",4,NEO
"Rona's Vortex",2,DMU
Name,Count,Set
Delver of Secrets // Insectile Aberration,1,MID
"Otawara, Soaring City",6,NEO
"Rona's Vortex",3,DMU
Ledger Shredder,5,SNC

Note that your collection will consist of the merged result of all of your CSV files.

Credits

Built with the Obsidian Plugin API and Scryfall API.

This is a fork from the original obsidian-mtg plugin which seems unmaintained.