MODDABLE HEXMAPS

One engine
Six worlds

A shared hex map rendering engine and framework. Generate, edit, and export hex boards for Nukes, Talisman, Twilight Imperium, Colony, Planet Mongo, and Endless Skies.

Generate a map Documentation GitHub
6 GAMES

Every map, one framework

FOR DEVELOPERS

Import, register, generate

Native ES modules, zero build tools. Import what you need, register a game plugin, and generate maps. Or embed a board-only iframe in any page.

<script type="module">
  import { HexApp } from './js/game-registry.js';
  import './js/hex-renderer.js';
  import './js/hex-controller.js';
  import './js/games/nukes.js';
</script>
import { registerGame } from './js/game-registry.js';

registerGame('mygame', {
  label: 'My Game',
  orientation: 'pointy',
  sizes: [{ value: 3, label: '3 Rings' }],
  generate: function(size, players, seed) {
    return HexMath.generateHexGrid(size);
  },
  getColors: function() { return { default: '#4CAF50' }; }
});
<iframe src="https://hex.moddable.games/generate/?game=nukes&boardonly=1&size=4&seed=42&bg=0d1117"
  width="600" height="400" frameborder="0"></iframe>
AI INTEGRATION

Generate maps with Claude

Connect in one command. Claude can generate hex maps, compute field-of-view, find paths, export SVGs, and inspect terrain for any supported game.

claude mcp add --transport http moddable-tools https://tools.moddable.games/mcp
🌎
Map Generation

Generate seeded hex maps for any game with configurable size, players, and layout.

👁
Field of View

Compute line-of-sight from any position with terrain blocking.

📌
Pathfinding

Find shortest paths between hexes avoiding impassable terrain.

🖼
SVG Export

Render maps as SVG strings for embedding in bots, docs, or web apps.

MODDABLE ENGINES

Part of a family

Moddable Hexmaps is one of several open-source game engines built with the same architecture: zero dependencies, embeddable, seeded RNG, and GitHub Pages deployment.