metro-anything

Turn anything into a subway map.

A free subway map maker, and an agent skill for Claude Code, Codex, Cursor, Gemini CLI and more. Your agent writes a short text file; the renderer draws the map: 45° lines, parallel tracks, interchanges and labels that never collide.

Edit the text on the left; the map redraws as you type. Lines are ## headings, stations are "- Name @x,y", and a name used on two lines becomes an interchange. Drag the map to pan; pinch or ⌘/Ctrl + scroll to zoom; double-click to fit.

How to make a subway map of anything

1. Pick what to map

A learning path, a product roadmap, a codebase, the history of a field, the plot of a novel. Lines are the threads that run through it; stations are the steps or events.

2. Write lines and stations

In the editor above, every ## heading is a line and every "- Station @x,y" under it is a stop. A station on two or more lines becomes an interchange.

3. Download or share

Save the map as SVG or PNG, or copy a share link. Or skip the typing: ask Claude Code, Codex or Cursor for a subway map of any topic.

What can I draw as a subway map?

Anything with threads that cross: a learning path, a technology roadmap, the architecture of a codebase, the history of a field, the plot of a novel. The gallery has the history of AI, the internet, Claude Code and Journey to the West.

Is this subway map maker free?

Yes. It is open source (MIT), needs no account and runs entirely in your browser; nothing you type is uploaded.

Can AI draw the map for me?

Yes. metro-anything is also an agent skill: install it in Claude Code, Codex, Cursor or Gemini CLI and ask for a subway map of any topic. The agent picks the lines and stations and lays them out; the renderer draws the map.

Does it work in Chinese?

Yes: Chinese station names, a Chinese page and credit, and Chinese examples such as Journey to the West and Romance of the Three Kingdoms.

Use it with your agent

Then just ask: “/metro the history of the internet as a subway map”.

Claude Code

Install as a plugin.

claude plugin marketplace add zszdsze/metro-anything
claude plugin install metro@metro-anything

Any agent

Codex, Cursor, Gemini CLI, OpenCode and others, with the skills CLI.

npx skills add zszdsze/metro-anything

Just the renderer

No agent needed. Node 18+.

npx github:zszdsze/metro-anything render map.metro --png