Skip to content

About

Inspect saved HTML, HAR and JavaScript captures into redacted route maps and API skeletons.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Surface Map: website evidence connected to clear answers and unknowns

Surface Map

Give your agent a map it can check.

Turn website evidence into routes, source references, change reports, and clear unknowns.
Free to run. No AI account or API key required.

Try it locally · Use with an agent · Check pull requests · Five-minute trial

Tests on main Browser checks on main MIT license

A form points to an endpoint. A script hints at a request. A HAR records traffic. Surface Map keeps those facts separate, shows where they came from, and makes missing information visible before you hand the work to another developer or agent.

Run

Requires Python 3.11 or later. The bundled basic trial needs no signup, Node.js, or paid service.

git clone https://github.com/Jgolding1998/surface-map.git
cd surface-map
python -m surface_map --open

Prefer no Git? Download the source ZIP, extract it, and open a terminal in the folder containing surface_map. Run the final command above. Replace python with py -3 on Windows or python3 on macOS/Linux if that is your Python command.

Choose Saved web artifacts → Basic lexical hints → Try an example agent brief. Review the evidence, choose a simple, developer, or Gen Z introduction, and copy the brief for your agent. Styles change the wording; facts and uncertainty stay the same.

If the browser does not open, visit http://127.0.0.1:8768. Keep the terminal running; press Ctrl+C to stop. For a busy port:

python -m surface_map --port 9000 --open

For stronger JavaScript, JSX, and TypeScript inspection, install Node.js 24.22.1 or later in the 24.x line, then explicitly install the pinned parser:

python -m surface_map setup-js

Setup installs locked dependencies with lifecycle scripts disabled. Analysis does not install packages. Basic mode recognizes fewer patterns; required syntax analysis reports failures rather than silently switching to weaker parsing.

See the workspace

Workspace with routes, evidence locations, and a capture comparison

This screenshot shows the saved-artifact workspace with synthetic data. The trial guide covers current example-brief and public-URL controls.

The HAR view explains which bodies were inspected and why others were omitted:

Actual HAR coverage panel showing inspected, omitted and unrecorded body counts from a synthetic capture

See the same panel on mobile.

What can I use it for?

Your task What you get Start here
Hand an unfamiliar web flow to a developer or agent Routes, source references, a brief, and explicit unknowns Local trial
Review a pull request Supported endpoint, field, script/domain, navigation, and tracking changes Automatic Git comparison
Inspect a public page A bounded HTTPS capture and a brief from the same evidence Public-page mode
Inventory selected implementation files Minimized language, dependency, capability, and literal-import hints Source inspection
Investigate a saved network capture JSON shapes, form-field repeat counts, and explicit body-inspection gaps HAR evidence
Ask an agent about one part of a large report Filtered evidence pages with counts, source references and coverage warnings Compact review

Use from an agent with MCP

Claude, Codex, and other local MCP clients can call the same evidence tools. The MCP installation guide includes setup, schemas, examples, and limits. The recorded agent demo shows what was tested.

Surface Map makes no model API calls. If you give its output to an external agent, that agent's normal account terms and usage costs apply.

Check changes in a pull request

The companion GitHub Action reads selected HTML, JavaScript, and TypeScript from two Git commits. No screenshots or hand-made capture files are required. It does not build or run the proposed app.

It flags supported changes to form destinations and methods, hidden fields and duplicate controls, resources/domains, page-local navigation, and tracking calls. Incomplete comparisons are identified explicitly. Private identifiers become comparison-local opaque IDs in the report.

Add it to your PR workflow →

Privacy choices

Saved-artifact analysis runs locally without uploading captures or executing their source. Reports exclude raw source, filenames, headers, cookies, query values, and body values. Unknown web paths and field names become aliases; Git review adds comparison-local IDs. Unrecognized manifest declarations are counted; unrecognized imports can be omitted without a count. A zero count is not a complete dependency inventory.

Public HTTPS page mode makes explicit network requests from your computer. It uses no browser login or cookies and does not render pages, crawl links, submit forms, or replay API requests.

Minimization can hide distinctions and still reveal application facts. Review exports before sharing. See the security boundaries.

Practical limits

  • Source evidence does not prove an endpoint works, a server accepts a request, or an analytics event is delivered.
  • Dynamic code, framework routing, arbitrary tracking wrappers, and unsupported syntax can leave gaps. Reports keep coverage limits visible.
  • This does not clone a working app or perform a security audit. Optional generated mock handlers return 501 until implemented.
  • Saved web selections have a six-artifact cap; project inspection accepts up to 24 explicitly selected files. This is not a whole-site scanner.

Full reference · PR coverage · Rebuild plans

Check it

python -m unittest discover -s tests -v

JavaScript checks need the optional pinned parser. CI separately exercises MCP, browser workflows, the PR Action, privacy controls, and regression collections on Linux and Windows. Test counts and development fixtures do not establish accuracy on every website or superiority over another tool.

Evaluation results and caveats · Alternative tools and research

We tested the HAR improvements against our previous release and Craft Anything's actual released offline CLI using the same 18 frozen synthetic inputs. The new version recovers base64 JSON and observed form fields missed by our old version, while retaining minimization and inspection limits. Craft supports larger captures and historical timings; this test does not establish an overall winner. Read the results and reproduce them.

The local workbench takes visual inspiration from Handy: clear navigation, warm colors and readable results. The screenshots above show the actual interface with synthetic data. REA comparison and verified inventory changes explain where a broader reverse-engineering tool is stronger and what this bounded evidence tool can demonstrate.

Interface refinement also used Unslop by Damir Sokolovsky, licensed under CC BY 4.0. The product behavior and validation remain this repository's own work.

Help us find what it misses

Try one flow you own or are authorized to inspect. Tell us what was wrong, what was missing, and whether it saved you any work. A small synthetic example is enough; keep private captures and credentials out of public issues.

Share trial feedback · Contribute · Report a vulnerability privately

Licensed under MIT.

About

Inspect saved HTML, HAR and JavaScript captures into redacted route maps and API skeletons.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages