Anvil Chrome extension popup running on D&D Beyond's Create a Magic Item page

Anvil: A Homebrew D&D Beyond Magic Items Importer

If you’ve ever tried building a custom homebrew magic item inside D&D Beyond, you already know the pain: it’s a great character sheet tool, but the homebrew creator feels like filing taxes in 14 separate browser tabs. Want to slap in a cool magic sword you grabbed off Reddit, a PDF, or your own campaign notes? Enjoy clicking through dozens of dropdowns, modifier sub-forms, charge trackers, and spell attachments by hand.

Enter Anvil—a Chrome extension I cooked up that takes plain-text 5e magic item descriptions, parses out the mechanics, and automatically drives D&D Beyond’s homebrew forms to build the whole thing for you in seconds.


The Tech Stack

  • Platform: Chrome Extension (Manifest V3)
  • Language: Vanilla JavaScript, HTML, CSS
  • State & Orchestration: chrome.storage multi-page state machine across content scripts
  • Parsing: Custom 5e plain-text & Markdown-to-HTML parser
  • Monetization: Freemium (3 free imports/day) with Gumroad license key verification for Anvil Pro

Links: Install on Chrome Web Store | User Guide & Releases on GitHub

How’s it work?

You paste in a standard 5e-style magic item block (even if your formatting isn’t spotless), click Start Full Import, and take your hands off the mouse while Anvil does the heavy lifting across D&D Beyond’s multi-step pipeline:

  1. Text & Mechanics Parsing (parser.js): Extracts the item’s name, rarity, base type (weapon, armor, wondrous item, etc.), attunement rules, charge counts and reset conditions, Markdown formatting, and mechanical modifiers like +2 bonus to attack and damage rolls, damage resistances, or stat overrides (your Strength score becomes 21).
  2. Multi-Page DOM Automation (content.js): Because D&D Beyond splits item creation across multiple URLs and reloads, Anvil tracks an active import session in chrome.storage—filling out the initial /create form, bouncing to /edit for charges and tags, and stepping through /modifier/create/ for every detected modifier.
  3. Automatic Custom Spells: If your item has a charge-based ability (like “As a reaction, you can expend 1 charge…”), D&D Beyond normally makes you build a custom spell separately and hook it up. Anvil initializes a quiet placeholder Artificer subclass (“Artificer - Item Abilities”) on first run so it can auto-create and attach those abilities directly to your item.
Finished Aegis of the Stormcaller magic item in D&D Beyond with auto-populated modifiers and custom spells

100% Local in the Browser

No sketchy servers sniffing your homebrew lore or D&D Beyond account. The parser and form-filling logic run completely locally inside your browser tab, and if D&D Beyond throws an edge-case mechanic it can’t natively support, Anvil pops up an intercept screen so you can decide how to handle it before continuing.

Want to give it a spin?

Grab it straight from the Chrome Web Store, pin it to your toolbar, and kiss tedious homebrew data entry goodbye.