dannynatha-max/morph-map

Turn any codebase or public website into an animated, editable map. Scan a repo or site, see how its parts connect, drag and edit boxes, sketch the plan you want, then press play to watch it morph. For onboarding, explaining systems to non-coders, planning refactors and learning how real projects are built.

HTML

3

11 commits

updated Oct 14, 2026

See the code

See what people are saying

README

Morph Map

See how a codebase or website really works, sketch how it should work, and press play to watch it change.

Morph Map scans a real project and draws it as an editable map. You draw the plan next to it, check the plan is actually simpler, then hand the change to your AI coder as a ready-made brief. One HTML file, no install, no account, and nothing leaves your browser.

Morph Map demo

Open Morph Map and pick an example from the Examples menu, or browse 7 scanned projects.

What you can do

ScanTurn a code folder or a public website into a map. Files or pages become boxes, imports or links become arrows.
PlanEdit a second map called Planned. Add, delete, rename and connect boxes, and leave notes for the build.
PlayAnimate Today into Planned. The complexity score counts down as the map changes.
ReportScores and findings worked out from the scan, each one a plain rule you can check.
BriefTurn the difference between the two maps into a step-by-step plan for Claude Code, Cursor or any AI coder.
LearnFor code: where to start reading, the core files, import loops, big files, and a quiz built from the scan.
Blast radiusPick any box and see everything reachable from it by following the arrows. Useful for asking "if an AI tool were plugged in here, what could it touch?"

Quick start

1. Map a code project (Node 18 or newer, nothing to install)

node scanner/morph-scan.js ./your-project --out my-map.json

Open index.html, press Import and pick my-map.json. Reads JavaScript, TypeScript, Python, Vue, Svelte and HTML.

2. Map a website Open the site in your browser, open the console, paste scanner/morph-web.js and press Enter. It reads up to 40 public pages and copies a map you can Import.

3. Plan and play Switch to Planned, change the map, then press Play the change. Open the Report tab and press Write the AI coder brief when you are happy.

How the score works

Complexity runs from 0 to 100 and uses the same formula for Today and Planned, so you can compare them fairly.

PartUp toMeasured from
Size30Number of boxes (full marks at 40)
Tangle35Arrows per box (full marks at 3)
Depth20Most steps from the top box (full marks at 6)
Copies15Dashed arrows touching a data store, meaning the same data kept in two places (full marks at 3)

Under 35 is Light, under 65 is Medium, and 65 and up is Heavy.

What the report checks

Code (Learn mode): where the program starts, the files most others depend on, import loops, files over 400 lines, files that connect to nothing, and outside packages.

Websites (Audit mode):

  • Structure: a menu repeated on every page, look-alike pages that could be one page with filters, a checkout no link reaches, pages more than 3 clicks deep, broken links, and outside services.
  • Security (passive): HTTPS, HSTS, Content Security Policy, frame protection, content-type and referrer settings, and session-like cookies that scripts can read.

Security checks use only what any visitor's browser already receives. Morph Map never logs in, sends forms or probes a site.

Plan check: tick which findings your plan fixes. The report shows how many issues the plan covers, and the brief tells your AI coder exactly what to fix.

Tested on real projects

ProjectTypeWhat it showed
Express 2014 and todayCode13 files down to 7 as the router moved out, complexity 45 to 36
python.org, gov.uk, daraz.pkWebsitesBig repeated menus on two of them, no Content Security Policy on two, HTTPS enforced for 1 to 2 years on two

Each real site exposed a rule that was too eager. Those rules were fixed before this release. If you find a false alarm, please open an issue with the site and the finding.

Use it responsibly

  • Scan only code you are allowed to read, and only the public pages of websites.
  • The website scanner reads robots.txt first and skips anything a site asks crawlers to avoid. It waits between pages and stops at 40.
  • Share security findings privately with the site owner, never in public.
  • A map is a reading aid. It is not a copy of anyone's product.

What's in the box

FileWhat it does
index.htmlThe app: map editor, player, report, brief, quiz and blast radius
report.jsThe scoring and finding rules, readable on their own
scanner/morph-scan.jsReads a code folder into a map
scanner/morph-web.jsReads a public website into a map
examples/Ready-made maps: a fictional shop audit, Express 2014 vs today
demo-scans.htmlSeven scanned projects to explore

Coming next

  • npx morph-map ./your-project to scan and open in one step
  • A GitHub Action that posts the complexity change on every pull request
  • Clearer maps for sites with very large menus

Licence and credit

Morph Map is free for individuals, learners, open-source projects and non-commercial use. Companies and other commercial users need a paid licence. See LICENSE for the full terms.

Using Morph Map in a video, course, article or research? Please credit it. GitHub's Cite this repository button gives you the citation.

Built by Danny Natha.

architecture
code-map
code-mapping
diagram
flowchart
interactive
learning
mapping
visualization

dannynatha-max/morph-map

Turn any codebase or public website into an animated, editable map. Scan a repo or site, see how its parts connect, drag and edit boxes, sketch the plan you want, then press play to watch it morph. For onboarding, explaining systems to non-coders, planning refactors and learning how real projects are built.

HTML

3

11 commits

updated Oct 14, 2026

See the code

See what people are saying

README

Morph Map

See how a codebase or website really works, sketch how it should work, and press play to watch it change.

Morph Map scans a real project and draws it as an editable map. You draw the plan next to it, check the plan is actually simpler, then hand the change to your AI coder as a ready-made brief. One HTML file, no install, no account, and nothing leaves your browser.

Morph Map demo

Open Morph Map and pick an example from the Examples menu, or browse 7 scanned projects.

What you can do

ScanTurn a code folder or a public website into a map. Files or pages become boxes, imports or links become arrows.
PlanEdit a second map called Planned. Add, delete, rename and connect boxes, and leave notes for the build.
PlayAnimate Today into Planned. The complexity score counts down as the map changes.
ReportScores and findings worked out from the scan, each one a plain rule you can check.
BriefTurn the difference between the two maps into a step-by-step plan for Claude Code, Cursor or any AI coder.
LearnFor code: where to start reading, the core files, import loops, big files, and a quiz built from the scan.
Blast radiusPick any box and see everything reachable from it by following the arrows. Useful for asking "if an AI tool were plugged in here, what could it touch?"

Quick start

1. Map a code project (Node 18 or newer, nothing to install)

node scanner/morph-scan.js ./your-project --out my-map.json

Open index.html, press Import and pick my-map.json. Reads JavaScript, TypeScript, Python, Vue, Svelte and HTML.

2. Map a website Open the site in your browser, open the console, paste scanner/morph-web.js and press Enter. It reads up to 40 public pages and copies a map you can Import.

3. Plan and play Switch to Planned, change the map, then press Play the change. Open the Report tab and press Write the AI coder brief when you are happy.

How the score works

Complexity runs from 0 to 100 and uses the same formula for Today and Planned, so you can compare them fairly.

PartUp toMeasured from
Size30Number of boxes (full marks at 40)
Tangle35Arrows per box (full marks at 3)
Depth20Most steps from the top box (full marks at 6)
Copies15Dashed arrows touching a data store, meaning the same data kept in two places (full marks at 3)

Under 35 is Light, under 65 is Medium, and 65 and up is Heavy.

What the report checks

Code (Learn mode): where the program starts, the files most others depend on, import loops, files over 400 lines, files that connect to nothing, and outside packages.

Websites (Audit mode):

  • Structure: a menu repeated on every page, look-alike pages that could be one page with filters, a checkout no link reaches, pages more than 3 clicks deep, broken links, and outside services.
  • Security (passive): HTTPS, HSTS, Content Security Policy, frame protection, content-type and referrer settings, and session-like cookies that scripts can read.

Security checks use only what any visitor's browser already receives. Morph Map never logs in, sends forms or probes a site.

Plan check: tick which findings your plan fixes. The report shows how many issues the plan covers, and the brief tells your AI coder exactly what to fix.

Tested on real projects

ProjectTypeWhat it showed
Express 2014 and todayCode13 files down to 7 as the router moved out, complexity 45 to 36
python.org, gov.uk, daraz.pkWebsitesBig repeated menus on two of them, no Content Security Policy on two, HTTPS enforced for 1 to 2 years on two

Each real site exposed a rule that was too eager. Those rules were fixed before this release. If you find a false alarm, please open an issue with the site and the finding.

Use it responsibly

  • Scan only code you are allowed to read, and only the public pages of websites.
  • The website scanner reads robots.txt first and skips anything a site asks crawlers to avoid. It waits between pages and stops at 40.
  • Share security findings privately with the site owner, never in public.
  • A map is a reading aid. It is not a copy of anyone's product.

What's in the box

FileWhat it does
index.htmlThe app: map editor, player, report, brief, quiz and blast radius
report.jsThe scoring and finding rules, readable on their own
scanner/morph-scan.jsReads a code folder into a map
scanner/morph-web.jsReads a public website into a map
examples/Ready-made maps: a fictional shop audit, Express 2014 vs today
demo-scans.htmlSeven scanned projects to explore

Coming next

  • npx morph-map ./your-project to scan and open in one step
  • A GitHub Action that posts the complexity change on every pull request
  • Clearer maps for sites with very large menus

Licence and credit

Morph Map is free for individuals, learners, open-source projects and non-commercial use. Companies and other commercial users need a paid licence. See LICENSE for the full terms.

Using Morph Map in a video, course, article or research? Please credit it. GitHub's Cite this repository button gives you the citation.

Built by Danny Natha.

architecture
code-map
code-mapping
diagram
flowchart
interactive
learning
mapping
visualization