D&D battle map
A battle-map editor for tabletop sessions: paint terrain, place tokens, undo and redo, export the map as JSON. Ported here from its Next.js app to a client-side island.

Still loading. Large builds take a moment on a slow connection.
D&D battle map isn't available right now.
Its origin didn't answer within a few seconds. It may be asleep, down, or blocked on this network.
What it is
The editor paints a grid by dragging, with six terrain types and an eraser, and places four kinds of tokens. Undo and redo use the command pattern with a 100-step history, and each step carries a readable description, so the buttons say what they will undo. Keyboard shortcuts cover the common actions, and the map exports as JSON in the app’s own BattleMapData shape, holding the grid size, the painted cells and the tokens.
The engineering
The multiplayer design is described here, not run. Sessions use 6-character join codes without look-alike characters, checked for uniqueness with retries and expired after 24 hours. A Socket.IO protocol carries presence, cursors, map sync, initiative and turns, chat, dice and game-master-only role changes. For this page the editor was ported from its Next.js app to a React island that runs only in the browser.
In the Lab
The Lab runs the ported editor: everything happens in your browser and nothing is saved to a server. Paint, place tokens, undo and redo, then export the map as a JSON file. The grid works by keyboard as well as by pointer: the arrow keys move a cursor cell and Space or Enter applies the current tool. The server, session and Socket.IO code from the original app is not part of this port, so nothing here connects to anything.