Skip to content

The code map

An interactive graph of every source file in the repository and how the files call each other, coloured by component.

Each dot is one file under stealth_name_service/. A line from file A to file B means a symbol in A uses a symbol in B; its width grows with the number of such symbol edges. Click a dot to see its path, component, symbol count and a link to the page that explains that component. Without JavaScript, the table below lists the components and their main files.

Component Main files Deep dive
backend stealth_name_service/backend/testing_backend/src/server.rs, stealth_name_service/backend/testing_backend/src/main.rs The backend HTTP server
relayer stealth_name_service/backend/testing_backend/src/bin/event_listener.rs, stealth_name_service/backend/testing_backend/src/bin/event_handler.rs The event handler
committee stealth_name_service/backend/testing_backend/src/consensus/, stealth_name_service/backend/testing_backend/src/bin/consensus_committee.rs The consensus committee inside
bridge library stealth_name_service/backend/testing_backend/src/bridge/ Account abstraction and BridgeAA
tools stealth_name_service/backend/testing_backend/src/bin/ (loadtest.rs, bench_sweep.rs, and the other one-shot binaries) Binaries and scripts
move stealth_name_service/Move/*/sources/*.move (absent from the graph) The Move packages
scripts stealth_name_service/backend/deploy.sh, stealth_name_service/backend/consensus_smoke.sh, the compose files Binaries and scripts
analysis stealth_name_service/backend/agent/plotting_results/ Reading the results

The Move packages are not part of the code graph (it holds no .move files). The Move files stealth_name_service/Move/*/sources/*.move are added by the generator as file nodes with no symbol edges.

How to regenerate

The map is built from the knowledge graph in graphify-out/graph.json and stored as docs/assets/code-map.json. Run this from the repository root after the graph changes:

python3 tools/docs/build_code_map.py graphify-out/graph.json docs/assets/code-map.json

The script keeps only files under stealth_name_service/, sums the edges between symbols of different files, and drops edges inside one file. Every file must match a component in COMPONENTS inside tools/docs/build_code_map.py; an unmatched path stops the run with an error, so add a pattern there when you add a new kind of file.