Skip to content

Instantly share code, notes, and snippets.

@sandalsoft
Created August 14, 2026 23:42
Show Gist options
  • Select an option

  • Save sandalsoft/aac59e67c4b4165ec05e726a8213531c to your computer and use it in GitHub Desktop.

Select an option

Save sandalsoft/aac59e67c4b4165ec05e726a8213531c to your computer and use it in GitHub Desktop.
Interactive Codebase Visualizer - MegaPrompt

Build an Interactive Codebase Visualization

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?

1. Visual Direction

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.


2. Color System

Use an intentionally narrow palette.

Primary environment

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.

Structural elements

Use muted gray / gunmetal tones:

#24272A
#313438
#484B4F
#676A6D

Primary accent

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.

High-energy state

For the most important active point, allow a nearly-white amber core:

#FFE7A0
#FFF2C6

Potentially surrounded by controlled warm bloom.

Secondary colors

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


3. Materials

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.


4. Spatial Metaphor

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.


5. Dimensional Architecture

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.


6. Wireframe Language

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.


7. Grid / Environment

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.


8. Nodes

Avoid generic rectangular flowchart nodes.

Different code entities should have distinct geometric identities.

Possible visual primitives:

Services

Extruded hexagonal or polygonal structures.

Modules

Low-profile plates or compact geometric tiles.

Functions

Small luminous points or compact geometry.

APIs

Ports / gates positioned at subsystem boundaries.

Database

Layered stacked structures.

Tables / Models

Nested geometric structures inside the persistence region.

Queues

Linear channels or intermediary transfer structures.

External systems

Detached floating structures outside the main topology.

Configuration

Small peripheral control nodes.

Entry points

Distinct boundary markers.

Shapes should be systematic rather than arbitrary.

A user should gradually learn the visual grammar.


9. High-Importance Nodes

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.


10. Active Node / Selection

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.


11. Connection Points

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.


12. Animated Execution Flows

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

13. Pulse Behavior

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.


14. HUD Panels

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.


15. Typography

Typography must reinforce the technical / architectural aesthetic.

Use a combination of:

Interface font

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.

Technical text

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.


16. Typography Treatment

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.


17. Geometric Iconography

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

18. First: Understand the Codebase

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.

Do not hallucinate 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.


19. Build an Intermediate Codebase Model

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.


20. Semantic Zoom

A codebase containing thousands of entities cannot be represented usefully at one scale.

Create a semantic zoom system.

Level 1 — 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?

Level 2 — Subsystem

Expose:

  • services
  • bounded contexts
  • packages
  • major modules
  • APIs
  • persistence
  • workflows

Answer:

How does this region work?

Level 3 — Module

Expose:

  • files
  • classes
  • functions
  • components
  • schemas
  • transformations
  • important dependencies

Answer:

Where is this implemented?

Level 4 — Source

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.


21. Clustering

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.


22. Trace Mode

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:

  1. Darken unrelated architecture.
  2. Illuminate the entry point.
  3. Animate the first flow segment.
  4. Pulse the destination.
  5. Continue through subsequent execution.
  6. Move the camera smoothly.
  7. 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.


23. Investigation Mode

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.


24. Relationship Inspection

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.


25. Source Inspector

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

26. Command Palette

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.


27. Impact Analysis

When an entity is selected, provide:

IMPACT

Illuminate the potential blast radius of changing it.

Visualize:

Ring 1

Direct dependencies.

Ring 2

Second-order dependencies.

Ring 3+

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.


28. Architecture Lenses

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.


29. Structural Hotspots

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.


30. Git Topology

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.


31. Layout

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.


32. Progressive Disclosure

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.


33. Microinteractions

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

34. Depth and Lighting

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.


35. Bloom

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.


36. Performance

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.


37. Generated Analysis Artifacts

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.


38. Developer Workflow

Provide a simple regeneration workflow.

Example:

npm run codeviz:analyze
npm run codeviz

or 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.


39. Accessibility

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

40. Avoid Fake Intelligence

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.


41. Implementation Process

Work autonomously.

Phase 1 — Reconnaissance

Deeply inspect the repository.

Produce an internal understanding of:

  • architecture
  • domains
  • subsystems
  • workflows
  • relationships
  • likely visualization scale

Phase 2 — Visual + Technical Design

Determine:

  • visual hierarchy
  • spatial metaphor
  • entity grammar
  • graph renderer
  • normalized model
  • layout strategy
  • semantic zoom strategy
  • analysis strategy

Phase 3 — Analyzer

Build the repository analysis pipeline.

Phase 4 — Topology

Build:

  • geometry
  • layout
  • clustering
  • connections
  • semantic zoom
  • pan / zoom

Phase 5 — Investigation

Build:

  • selection
  • inspector
  • source explorer
  • search
  • focus modes

Phase 6 — Runtime Visualization

Build applicable:

  • workflow traces
  • packet animations
  • pulsing nodes
  • impact visualization

Phase 7 — Visual Polish

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.

Phase 8 — Verification

Run the visualization against the actual repository.

Verify what it displays against real source code.


42. Tests

Add objective tests.

Analyzer

Verify:

  • entities are discovered correctly
  • relationships resolve correctly
  • duplicate entities are avoided
  • source references exist
  • invalid edges are rejected
  • graph output is deterministic

UI

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

Integration

Choose representative entities in the real repository.

Validate that displayed relationships correspond to actual source.


43. Visual Acceptance Criteria

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.


44. Functional Acceptance Criteria

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

45. Final Instruction

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:

  1. correctness of the codebase model
  2. comprehensibility of the architecture
  3. spatial interaction design
  4. performance
  5. visual execution
  6. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment