You are working directly inside an existing codebase. Your task is to analyze the repository and build a working, interactive visualization of its architecture, dependencies, execution paths, and data flows.
Do not create a generic architecture diagram. Build an exploratory interface that makes the codebase feel spatial and understandable — something between an architecture map, debugger, dependency explorer, observability console, and futuristic systems-control interface.
The user should feel as if they are looking at a living digital model of the software system.
The end result should help an engineer answer:
- What are the major subsystems?
- How is this application put together?
- What depends on what?
- Where does data enter, move, transform, and leave?
- What code executes for a particular workflow?
- Which components are central or high-risk?
- Where are the architectural boundaries?
- What happens if I change this module?
- Where should I start reading to understand feature X?
The visual language is critically important.
Use the attached reference images as the primary aesthetic direction.
The design should combine:
- dark technical surfaces
- architectural wireframes
- fine geometric grids
- isometric / pseudo-3D depth
- matte black and graphite materials
- colors should be used sparingly: restrained metallic gold, dark cyan, with amber highlights
- luminous connection lines
- glowing points of activity
- geometric node structures
- thin technical typography
- precision instrumentation
- subtle HUD-like information panels
- map / terrain visualization concepts
- dimensional layering
The result should feel like:
A high-end command interface for exploring the topology of a complex software system.
Think:
- aerospace mission control
- advanced geospatial intelligence
- architectural CAD
- industrial digital twins
- scientific visualization
- premium automotive interfaces
- futuristic financial infrastructure
- defense/aerospace visualization software
- a sophisticated 3D map of a digital city
Not:
- cyberpunk game UI
- Tron
- hacker terminal
- Matrix rain
- neon rainbow
- generic SaaS dashboard
- React Flow demo
- PowerPoint architecture diagram
The sophistication should come from geometry, composition, depth, motion, precision, and restrained illumination, not excessive visual effects.
Use an intentionally narrow palette.
Use near-black and graphite surfaces such as:
#050607
#080A0B
#0D0F10
#121416
#17191B
The background should rarely be pure flat black.
Use subtle variation in darkness to establish depth.
Use muted gray / gunmetal tones:
#24272A
#313438
#484B4F
#676A6D
Use a sophisticated warm metallic gold / amber.
Examples:
#B58A37
#C99B42
#D6AA50
#E1B95F
#F0C96B
The brightest gold should be rare and reserved for:
- selected entities
- important relationships
- active execution
- major interaction points
- hover/focus states
Most gold elements should remain subdued.
For the most important active point, allow a nearly-white amber core:
#FFE7A0
#FFF2C6
Potentially surrounded by controlled warm bloom.
Avoid introducing arbitrary blue, purple, green, and red.
If semantic colors are required for states such as errors or warnings, keep them:
- desaturated
- dark
- contextual
- subordinate to the gold system
The default visualization should read almost entirely as:
black + graphite + warm gold + restrained white
The visual system should feel physical without becoming skeuomorphic.
Major surfaces can feel like:
- anodized black metal
- dark ceramic
- etched glass
- carbon
- graphite
- precision-machined components
Avoid:
- plastic-looking cards
- large blurry glassmorphism
- glossy gradients
- excessive transparency
Use extremely subtle:
- bevels
- inner borders
- rim lighting
- ambient occlusion
- specular highlights
These should generally be noticed subconsciously rather than consciously.
Treat the software architecture as a digital landscape.
The codebase should resemble an abstract map, circuit board, or computational terrain.
Major systems can appear as:
- districts
- islands
- plates
- elevated regions
- structural clusters
- geometric complexes
Examples:
Frontend API Gateway
\ /
\ /
Domain Layer
/ | \
/ | \
Database Workers ML Pipeline
But render this spatially rather than as a conventional box diagram.
Subsystems should have:
- recognizable boundaries
- spatial separation
- hierarchy
- visual weight
- meaningful elevation or scale
The visualization should communicate architecture even when labels are hidden.
Use subtle pseudo-3D or true 3D presentation where beneficial.
The reference aesthetic includes extruded physical surfaces sitting inside a dark technical environment.
Apply this concept to software.
For example:
- a subsystem can be an elevated black plate
- packages can sit on that plate
- modules can appear as structures on its surface
- dependency edges can run across or between structures
- database entities can form dense geometric clusters
- external services can float outside the application's main topology
Do not build a free-flight 3D environment that becomes hard to navigate.
The user must retain the clarity and usability of a high-quality 2D interface.
Preferred approach:
2.5D
Use perspective, depth, elevation, lighting, and parallax while preserving predictable interaction.
Fine wireframe geometry should be a defining visual element.
Use:
- thin gold outlines
- dark gray structural lines
- geometric polygons
- grid intersections
- fine circuit-like paths
- architectural contours
- coordinate guides
Relationships can resemble traces on a sophisticated circuit board.
For example:
───────────────┐
├──────────────
┌────────┘
──────┘
Prefer intelligently routed orthogonal or gently angular paths over random curved spaghetti.
Edges can contain:
- corners
- junctions
- connection points
- branching
- convergence
They should feel engineered.
The canvas should sit in a subtle technical environment.
Possible elements:
- perspective grid
- isometric grid
- cartographic lines
- coordinate intersections
- extremely faint geometry
- subtle topographic contours
- spatial guide lines
The grid should disappear into darkness.
It must never compete with architecture.
Think:
something you see more clearly only when you look for it.
Avoid generic rectangular flowchart nodes.
Different code entities should have distinct geometric identities.
Possible visual primitives:
Extruded hexagonal or polygonal structures.
Low-profile plates or compact geometric tiles.
Small luminous points or compact geometry.
Ports / gates positioned at subsystem boundaries.
Layered stacked structures.
Nested geometric structures inside the persistence region.
Linear channels or intermediary transfer structures.
Detached floating structures outside the main topology.
Small peripheral control nodes.
Distinct boundary markers.
Shapes should be systematic rather than arbitrary.
A user should gradually learn the visual grammar.
Architecturally important entities should feel physically significant.
Use signals such as:
- slightly increased size
- elevation
- stronger edge illumination
- larger surrounding topology
- greater structural complexity
Avoid simply making important things bright yellow.
A central subsystem might appear as a larger architectural mass with many fine dependency traces connecting into it.
Selection should evoke the large illuminated location marker in the supplied reference image.
When selecting an important entity:
- surrounding architecture dims
- its edges gain warm illumination
- a luminous focal marker appears
- subtle concentric rings radiate along the plane
- connected paths illuminate
- the inspector updates
- the camera gently reframes
Consider a marker composed of geometric rings rather than literally using a map pin.
Example:
◉
╱ ╲
────●────
╲ ╱
The selection should feel like the system has locked onto a target.
Use this sparingly.
Connection intersections should use tiny points of warm illumination.
These can resemble:
- city lights
- circuit vias
- network junctions
- stars on a technical map
Most should be dim.
Only meaningful activity should increase their intensity.
This should create the impression that the architecture is quietly alive.
Animated flow is one of the most important visual effects.
Represent execution or data movement as small packets of light moving through wireframe paths.
These might represent:
- HTTP requests
- events
- records
- function invocations
- messages
- transformations
- database operations
- model inference
For example:
API ─────●──────── Service ───●──── Repository ───●──── DB
→ → →
Packets should resemble energy moving through circuitry, not cartoon particles.
Use:
- tiny gold points
- subtle trails
- controlled bloom
- slow acceleration/deceleration
- directional motion
Never animate meaningless traffic just to make the application look alive.
Each flow must correspond to:
- a directly observed relationship, or
- a clearly marked inferred execution path
When execution reaches an entity, use a restrained pulse:
·
· ● ·
·
or expanding wireframe rings.
The pulse should:
- briefly illuminate surrounding geometry
- communicate sequence
- then decay
Avoid permanent glow.
Activity should create temporary light within an otherwise dark environment.
Context panels should borrow heavily from the Kuwait reference image.
Use floating dark instrumentation panels containing:
- thin borders
- tiny labels
- compact values
- fine separators
- geometric icons
- restrained gold emphasis
Example:
┌─────────────────────────────┐
│ PROJECTION SERVICE › │
│ │
│ TYPE SERVICE │
│ MODULE predictions │
│ FAN-IN 14 │
│ FAN-OUT 7 │
│ │
│ SOURCE │
│ src/services/projection.ts │
└─────────────────────────────┘
Panels should feel almost like technical readouts mounted over the topology.
Avoid large padded cards.
Information density can be moderately high.
Typography must reinforce the technical / architectural aesthetic.
Use a combination of:
A precise geometric sans-serif.
Appropriate characteristics:
- narrow or moderately condensed
- highly legible
- technical
- neutral
- uppercase-friendly
Potential directions:
- Geist
- Inter
- IBM Plex Sans
- DIN-like typography
- Space Grotesk
- Söhne-like geometry
Choose based on what is available and appropriately licensed.
Use a clean monospace font for:
- symbols
- filenames
- types
- routes
- IDs
- metrics
- code
Potential directions:
- Geist Mono
- JetBrains Mono
- IBM Plex Mono
- Berkeley Mono-like styling where available
Do not import commercial fonts without proper availability.
Use uppercase micro-labels extensively, but not everywhere.
Example:
DEPENDENCIES
14 DIRECT
SOURCE
src/core/prediction.ts
LAST MODIFIED
2 DAYS AGO
Micro-labels can use:
- increased letter spacing
- muted gray
- small font size
Important values can use:
- warm off-white
- subdued gold
Avoid giant headings.
This interface should feel information-dense and technical rather than marketing-oriented.
Use minimal technical line icons.
Characteristics:
- thin stroke
- angular
- geometric
- consistent stroke weight
- primarily monochrome/gold
Icons should feel etched or instrument-like.
Avoid:
- colorful icon libraries
- filled cartoon icons
- emoji
- oversized pictograms
Before writing UI code, deeply inspect the repository.
Determine:
- languages
- frameworks
- build system
- entry points
- packages/workspaces
- services
- modules
- APIs
- database access
- schemas/models
- queues/events
- background jobs
- external integrations
- shared libraries
- configuration
- tests
- infrastructure
- deployment topology, where discoverable
- major domain concepts
- important execution paths
Inspect actual source code rather than relying primarily on filenames.
Use imports, exports, calls, type references, schemas, routes, configuration, dependency injection, events, database usage, API clients, tests, and infrastructure definitions to derive relationships.
Every visual relationship must be based on evidence found in the repository.
Where a relationship is inferred rather than explicit, record:
- the inference
- supporting evidence
- confidence level
Do not imply that a static code-analysis inference represents actual runtime activity unless runtime telemetry exists.
Do not tightly couple source analysis to rendering.
Create a normalized graph/model layer representing the repository.
At minimum:
type CodeEntity = {
id: string
type: EntityType
name: string
path?: string
language?: string
description?: string
subsystem?: string
domain?: string
metadata: Record<string, unknown>
importance?: number
confidence?: number
sourceReferences: SourceReference[]
}
type Relationship = {
id: string
source: string
target: string
type:
| "imports"
| "calls"
| "reads"
| "writes"
| "publishes"
| "subscribes"
| "routes-to"
| "depends-on"
| "implements"
| "extends"
| "configures"
| "contains"
| "transforms"
| "returns"
| "inferred"
confidence: number
sourceReferences: SourceReference[]
}
type SourceReference = {
file: string
lineStart?: number
lineEnd?: number
symbol?: string
}Extend this model where useful.
Keep the analyzer extensible so additional parsers and analysis techniques can be added later.
A codebase containing thousands of entities cannot be represented usefully at one scale.
Create a semantic zoom system.
Show major architectural regions.
Potential examples:
WEB
API
DOMAIN
DATA
WORKERS
ML
INTEGRATIONS
INFRASTRUCTURE
These should resemble major regions on the topology.
Answer:
What is this system?
Expose:
- services
- bounded contexts
- packages
- major modules
- APIs
- persistence
- workflows
Answer:
How does this region work?
Expose:
- files
- classes
- functions
- components
- schemas
- transformations
- important dependencies
Answer:
Where is this implemented?
Expose:
- symbol
- source excerpt
- filename
- line numbers
- callers
- callees
- related graph entities
Answer:
What does the actual code do?
Geometry should physically reveal additional structure as the user zooms.
Do not simply scale text up and down.
Major subsystems should form geographic-style clusters.
Within each cluster:
- high-coupling entities should sit close together
- architectural boundaries should remain apparent
- internal relationships can become visible on zoom
- external relationships should connect through meaningful boundary points
Think of the codebase as an abstract map.
For example:
┌──────────── API REGION ────────────┐
Routes
│
Controllers
└──────────────┬─────────────────────┘
│
│
┌──────── DOMAIN REGION ─────────────┐
Services ───── Models
│ │
└─────────────┘
└──────────────┬─────────────────────┘
│
│
DATA REGION
But render this spatially rather than literally as boxes.
Automatically identify important application workflows where possible.
Examples:
- application startup
- authentication
- important API request
- database write
- queue processing
- event processing
- ML inference
- ingestion pipeline
- major user interaction
Create a TRACE mode.
When activated:
- Darken unrelated architecture.
- Illuminate the entry point.
- Animate the first flow segment.
- Pulse the destination.
- Continue through subsequent execution.
- Move the camera smoothly.
- Update source context alongside execution.
Controls:
◀ STEP ▶ PLAY ❚❚ PAUSE STEP ▶
Show:
TRACE
POST /predictions
03 / 09
ProjectionController
→ ProjectionService.generate()
This should feel like tracing electrical current through a highly complex machine.
Selecting an entity should reveal a compact contextual inspector.
Show useful information such as:
- name
- entity type
- role
- source
- subsystem
- domain
- dependencies
- dependents
- callers
- callees
- database reads
- database writes
- events produced
- events consumed
- external systems contacted
- tests
- structural metrics
- confidence
- supporting evidence
Provide actions such as:
FOCUS
DEPENDENCIES
DEPENDENTS
CALLERS
CALLEES
DATA FLOW
TESTS
SOURCE
TRACE FROM
TRACE TO
IMPACT
Do not bury primary actions inside multiple menus.
Selecting a relationship should explain why it exists.
For example:
PROJECTION SERVICE
↓
PLAYER REPOSITORY
CALLS
generateProjection()
↓
getPlayerHistory()
src/services/projection.ts:184
Highlight the corresponding edge within the topology.
Where possible, illuminate only that path while dimming others.
Provide a code panel integrated tightly with the topology.
Support:
- syntax highlighting
- filename
- breadcrumbs
- symbol
- line numbers
- contextual code
- highlighted relevant lines
- incoming references
- outgoing references
Selecting something on the map should focus its code.
Selecting a reference within code should focus the corresponding topology entity.
The user should fluidly move between:
SYSTEM
↓
ARCHITECTURE
↓
MODULE
↓
SYMBOL
↓
CODE
Include:
⌘K / Ctrl+K
Search:
- files
- symbols
- services
- APIs
- tables
- events
- workflows
- domain concepts
Support queries like:
ProjectionService
POST /predictions
player_stats
If reliable metadata enables it, support structured queries such as:
who writes player_stats
what calls generateProjection
dependencies of ProjectionService
Do not fake natural-language functionality if it cannot be supported reliably.
When an entity is selected, provide:
IMPACT
Illuminate the potential blast radius of changing it.
Visualize:
Direct dependencies.
Second-order dependencies.
Broader downstream impact.
Include:
- modules
- consumers
- tests
- APIs
- data
- workflows
Use progressively dimmer gold traces for increasing dependency distance.
The selected component should remain the visual anchor.
Allow the user to change which topology is emphasized.
Possible lenses:
ARCHITECTURE
RUNTIME
DATA
API
EVENTS
DEPENDENCIES
DOMAIN
TESTS
GIT
Only expose lenses supported by evidence in the repository.
Switching lenses should smoothly transform the visualization rather than completely replacing it.
Calculate useful structural signals where practical:
- fan-in
- fan-out
- dependency depth
- number of dependents
- centrality
- coupling
- function complexity
- file size
- test coverage, if available
- Git change frequency, if available
Do not create arbitrary composite health scores.
Hotspots can be communicated through:
- structure height
- topology density
- small halo
- subtle architectural emphasis
Avoid turning the map into a heatmap unless explicitly selected.
If .git history exists, derive:
- recently changed files
- frequently changed files
- co-change relationships
- architectural churn
- contributors
- change hotspots
A powerful visualization could show temporal activity as tiny illumination events across the architecture.
Optionally provide a timeline.
For example:
◀────────────── 6 MONTHS ───────────────── NOW
Scrubbing the timeline can reveal how the architecture evolved.
Do this only after the core experience is excellent.
The primary visualization must dominate the viewport.
A possible composition:
┌─────────────────────────────────────────────────────────────────────┐
│ CODEMAP ⌘K Search ARCHITECTURE TRACE IMPACT │
├───────────────┬───────────────────────────────────────┬─────────────┤
│ │ │ │
│ NAVIGATION │ │ INSPECTOR │
│ │ │ │
│ System │ │ ENTITY │
│ API │ SPATIAL CODE TOPOLOGY │ SOURCE │
│ Domain │ │ RELATIONS │
│ Data │ │ METRICS │
│ Workflows │ │ │
│ │ │ │
├───────────────┴───────────────────────────────────────┴─────────────┤
│ TRACE 03 / 09 ProjectionService → ModelInference │
└─────────────────────────────────────────────────────────────────────┘
But do not make the frame visually heavy.
Panels should float over the environment where appropriate.
Use narrow separators rather than large borders.
The topology is always the hero.
The initial view should be extremely restrained.
For a large repository, initially show perhaps:
5–20 architectural objects
not thousands of source files.
More information appears through:
- zoom
- focus
- selection
- trace
- search
- lenses
- drill-down
The visualization should initially feel almost calm.
Complexity emerges as the user investigates.
Use tiny details to make the application feel expensive.
Examples:
- border illumination travels briefly when a panel opens
- connection node brightens on hover
- focus ring expands subtly from a selected entity
- graph edge illuminates from origin to target
- code reference line briefly pulses when selected
- tooltip emerges with slight depth
- cluster geometry smoothly separates during drill-down
Animations should generally be:
150–350 ms
except camera movements and traces, which can be slower.
Avoid bounce physics.
Prefer:
- ease-out
- precision
- inertia
- damped motion
Lighting should tell the user where attention belongs.
Base state:
95% darkness / structure
5% illumination / activity
Do not illuminate the entire map.
A useful mental model:
The system exists in darkness. Interaction reveals it with light.
When the user focuses an area:
- nearby geometry becomes slightly more visible
- relevant edges illuminate
- distant geometry fades
- the selected object receives subtle rim light
This creates depth without visual clutter.
Use glow extremely carefully.
Good:
tiny luminous point
thin gold edge
small controlled bloom
Bad:
giant neon aura
glowing panel
glowing text everywhere
Bloom should communicate energy or active state.
Static UI generally should not glow.
The visualization must remain fluid.
Target approximately:
60 FPS
during ordinary:
- pan
- zoom
- hover
- trace animation
Design for thousands of entities.
Consider:
- WebGL
- Canvas
- PixiJS
- Sigma.js
- Cytoscape
- D3
- React Flow
Select based on graph scale and required visual control.
If thousands of entities are expected, avoid creating thousands of complex DOM nodes.
Use:
- semantic LOD
- clustering
- virtualization
- cached layouts
- memoization
- incremental analysis
- GPU rendering where justified
Labels should aggressively disappear with distance.
Generate normalized analysis artifacts such as:
.codeviz/
├── graph.json
├── workflows.json
├── metadata.json
├── layout.json
└── analysis-version.json
Keep:
SOURCE CODE
↓
ANALYZER
↓
NORMALIZED GRAPH
↓
WORKFLOW / TOPOLOGY ANALYSIS
↓
LAYOUT
↓
VISUALIZATION
separate.
The browser should not need to repeatedly perform expensive repository analysis.
Provide a simple regeneration workflow.
Example:
npm run codeviz:analyze
npm run codevizor the appropriate equivalent.
Where practical:
- cache unchanged analysis
- incrementally parse changed files
- preserve stable entity IDs
- preserve layout positions between analysis runs
Stable positioning is especially important.
When a developer reloads after changing three files, the entire map should not randomly reorganize.
Support:
- keyboard navigation
- visible focus states
- reduced motion
- sufficient contrast
- non-color-only entity encoding
- screen-reader metadata where practical
If:
prefers-reduced-motion
is enabled:
- remove animated particles
- reduce camera movement
- replace motion traces with progressive highlighting
Never present unsupported information as fact.
Do not invent:
- request frequency
- runtime latency
- traffic
- business importance
- execution order
- data contents
- runtime behavior
Static analysis must remain clearly differentiated from telemetry.
Possible labels:
OBSERVED
STATIC ANALYSIS
INFERRED
RUNTIME
if runtime information actually exists.
Work autonomously.
Deeply inspect the repository.
Produce an internal understanding of:
- architecture
- domains
- subsystems
- workflows
- relationships
- likely visualization scale
Determine:
- visual hierarchy
- spatial metaphor
- entity grammar
- graph renderer
- normalized model
- layout strategy
- semantic zoom strategy
- analysis strategy
Build the repository analysis pipeline.
Build:
- geometry
- layout
- clustering
- connections
- semantic zoom
- pan / zoom
Build:
- selection
- inspector
- source explorer
- search
- focus modes
Build applicable:
- workflow traces
- packet animations
- pulsing nodes
- impact visualization
Spend meaningful effort on:
- geometry
- materials
- lighting
- typography
- spacing
- panel density
- transition timing
- wireframe rendering
- subtle background environment
Do not treat visual polish as an optional final pass. It is part of the product.
Run the visualization against the actual repository.
Verify what it displays against real source code.
Add objective tests.
Verify:
- entities are discovered correctly
- relationships resolve correctly
- duplicate entities are avoided
- source references exist
- invalid edges are rejected
- graph output is deterministic
Verify:
- graph loads
- semantic zoom works
- selection works
- search works
- focus mode works
- lenses work
- source references resolve
- impact traversal works
- trace playback works where implemented
Choose representative entities in the real repository.
Validate that displayed relationships correspond to actual source.
The implementation is not visually complete unless:
- the first impression is dark, premium, technical, and spatial
- the application uses an almost-black / graphite environment
- metallic amber/gold is the dominant accent
- gold is used sparingly enough to preserve visual hierarchy
- the topology contains fine wireframe geometry
- the architecture feels dimensional rather than flat
- subsystem clusters feel like distinct geographic or structural regions
- dependency paths feel engineered rather than casually drawn
- important connection points can appear as small lights
- active traces resemble energy or data moving through circuitry
- selected components create a restrained focal glow / ring interaction
- floating detail panels resemble sophisticated HUD instrumentation
- typography is small, precise, geometric, and highly legible
- monospace typography is used intentionally for code identifiers
- the interface avoids generic SaaS card layouts
- the interface avoids standard flowchart aesthetics
- the interface does not resemble a video game
- visual effects remain restrained enough for daily engineering use
- the graph remains understandable with animations disabled
- the experience remains functional at realistic repository scale
Most importantly:
If the architecture data were removed and replaced by country/terrain data, the visual system should plausibly resemble the sophisticated futuristic map language shown in the references.
But when populated with software architecture, it should unmistakably feel like a professional developer tool.
The project is complete when:
- the actual repository is analyzed rather than represented with mock data
- developers can launch the visualization locally
- the opening view communicates the broad architecture
- architectural regions are distinct
- users can drill from system → subsystem → module → code
- nodes link to actual source
- relationships link to supporting evidence
- search works across important code entities
- dependency and dependent exploration works
- source inspection works
- major workflows can be traced where they are inferable
- animated flows correspond to meaningful relationships
- impact analysis exposes downstream dependencies
- unrelated architecture can be hidden
- the visualization handles this repository's scale
- generated relationships are verified through tests
- unsupported architectural claims are not presented as facts
- there are no significant console/runtime errors
- unrelated application code has not been unnecessarily rewritten
Do not stop after producing mockups, a design system, an architecture proposal, or an implementation plan.
Build the working visualization.
Start by exploring the repository and deriving its actual topology.
Treat the reference images as a design system reference, not a literal composition to copy.
The essential visual language is:
OBSIDIAN / GRAPHITE
+
METALLIC AMBER
+
WIRE-FRAME GEOMETRY
+
ISOMETRIC DEPTH
+
PRECISION TYPOGRAPHY
+
CIRCUIT-LIKE CONNECTIONS
+
CONTROLLED ILLUMINATION
+
SPATIAL ARCHITECTURE
+
TECHNICAL HUD PANELS
When tradeoffs arise, prioritize:
- correctness of the codebase model
- comprehensibility of the architecture
- spatial interaction design
- performance
- visual execution
- advanced features
Do not allow the visual design to obscure the data, and do not allow functional implementation to regress into a generic graph viewer.
The target is a visualization that feels like a digital twin of the codebase: precise, explorable, alive, and visually exceptional.