DAGDA SEARCH | Back to results | Support

Code-XR-Project · GitHub

Source: https://github.com/Code-XR-Project

@Code-XR-Project

Code-XR-Project

README.md

CodeXR: Code analysis you can walk through

The CodeXR room: the dependency graph on the pedestal table, two participants with name tags, the in-room guide and a shared virtual screen

CodeXR is a Visual Studio Code extension that analyzes your code (complexity, size, structure, dependencies, history) and turns the numbers into something you can actually look at: a 3D scene served locally and opened in the browser you already have. Walk around your codebase like a city, watch it update live as you edit, compare two points of its Git history side by side, or replay its whole evolution as a film.

No VR headset required. Everything works on a normal desktop with mouse and keyboard, and the 2D LivePanel mode doesn't even leave VS Code. If you do have a headset, the same scene becomes immersive. That's the XR in CodeXR: an extra dimension when you want it, never a requirement.

Everything runs on your machine: local analysis, local servers, no telemetry, no account, and nothing is downloaded without asking you first (your answer is remembered, so you are asked once).

VISSOFT 2025 Distinguished Artifact Award DOI License: GPLv3 VS Code Marketplace Latest release A-Frame Version WebXR BabiaXR VS Code HTTPS Python Documentation Author Support

Published and awarded at VISSOFT 2025

CodeXR is the artifact behind "Real-Time XR Visualizations of Code Metrics in the IDE" by David Moreno-Lumbreras, Gregorio Robles and Adrián Montes Linares, a paper accepted and presented at VISSOFT 2025, the IEEE Working Conference on Software Visualization, co-located with ICSME 2025.

The artifact received the conference's Distinguished Artifact Award.

Paper IEEE Xplore · DOI 10.1109/VISSOFT67405.2025.00034
Award Official announcement · Certificate

If CodeXR is useful in your own research, citing the paper above is the best way to support it.

Official Documentation

Visit our comprehensive documentation website: https://code-xr.adrianmonteslinares.com/

Our official documentation includes:

You can also access the documentation directly from VS Code through the CodeXR tree view → "Learn More" section.

See it working

If you only have time for one thing, watch the complete tutorial: the whole extension in twelve minutes, from the VS Code sidebar to the four analyses inside the XR room.

CodeXR complete tutorial: the whole extension, from the sidebar to XR

Tried on three real projects

Not on toy fixtures. These are silent walkthroughs of the four analyses on three real, public codebases, the same three used to test every release.

BabiaXR (aframe-babia-components), the A-Frame library CodeXR renders its charts with, so the code being measured is the code drawing the scene. Watch the walkthrough

BabiaXR analyzed with CodeXR: the four analyses on the aframe-babia-components repository

Express (expressjs/express), a small core with a very long history, which makes fan-in obvious and the evolution movie long. Watch the walkthrough

Express analyzed with CodeXR: the four analyses on the expressjs/express repository

JetUML (prmr/JetUML), a Java desktop application whose deliberate package layering is exactly what the dependency graph is for. Watch the walkthrough

JetUML analyzed with CodeXR: the four analyses on the prmr/JetUML repository

Every video on the channel, with its GIF and duration, is listed in media/v1.2.0/videos/VIDEOS.md.

What's New in v1.2.0: "Threads, Timelines & Global Networks"

Threads are the new dependency graph: the lines that tie your codebase together. Timelines are the two Git analyses: compare two points in your project's history, or replay the whole thing as a film. Global Networks are the sessions you can now open to someone who is not on your network at all.

One analysis table now serves four analyses, and you switch between them from inside the scene without losing the state of any of them.

Classic analysis, sharper and live

The city you know, now on a rebuilt table: one building per file, sized and coloured by the metrics you choose. Every chart type (bars, cylinders, pie, donut, bubbles, boats and more) now presents correctly and can be changed live from the Field Mapping panel, big projects stay readable by showing the top files per metric, and any change you save in the editor updates the scene by itself.

Classic analysis demo: the boats city, live chart switching from the Field Mapping panel

The classic analysis in the room: the code city on the cyan table, the in-room guide open on its Normal tab and the Field Mapping panel on the right The Field Mapping panel: the chart picker on top, then Area, Height and Color, each with the full metric list
The result: the city on its table, with the guide and your editor around it The panel: pick the chart, then the metric that drives area, height and colour

▶ Watch the full demo on YouTube

Dependency graph: see the architecture, not just the files

A new analysis that answers what depends on what, and what happens if I touch this. Relations are extracted statically from your working directory across the supported languages, and rendered as a navigable 3D graph with three layouts: force-3d, hierarchical and metric-space with real axes. Any node metric (fan-in, fan-out, cycle size, blast radius…) can drive size, height, colour or position, so "the thing that breaks the most if you touch it" becomes something you see across the room. Click a node to pin its metric card; large projects open in group view and you drill in.

Dependency graph demo: three layouts, node cards and relation filters

The pinned node card: fan-in, fan-out, degree, relations, cycle, lines and instability for a directory The dependency panel: layout selector, metric mapping, relation filters, edge mode, detail level and flow controls
The result: pin a node and read its coupling, its cycle and its blast radius The panel: choose the layout, map the metrics and filter which relations are drawn

▶ Watch the full demo on YouTube

Historical comparison: what changed between two points in time

Pick two sources (working copy, branch, tag or commit) and CodeXR puts both states on one dual table, same chart, same mapping, same scale, so a height difference is a real difference. A comparison card reports added / removed / modified counts and per-metric deltas. It never runs checkout or fetch and never writes inside .git: your branch, index and files stay exactly where you left them.

Historical comparison demo: two revisions of the same project, side by side

The dual table: the working copy on the left and an older revision on the right, both labelled, on one shared scale The comparison panel: the LEFT and RIGHT source slots, filters for branches, tags, commits and merges, and the Compare button
The result: both revisions side by side, each with its own label and date The panel: choose what goes on the left and on the right, then compare

▶ Watch the full demo on YouTube

Project Evolution: your Git history as a film

Where the comparison shows two photographs, Project Evolution plays the movie: the chart walks the project's own history, commit by commit, from the first revision to the current state of the branch. The timeline is sampled evenly in time (favouring merges and tags), or you pick a range, or exactly the commits you want. Play, pause, step, change speed, jump anywhere. Every frame is a full analysis, labelled with its commit and date.

Project Evolution demo: the city rising and reorganising through the project's commits

A frame of the movie on the amber table, stamped with the commit hash and date it belongs to The player panel: Auto, Range and Manual timeline modes, the frame list, Generate movie, transport buttons and playback speeds
The result: every frame is a real analysis, stamped with its commit and date The panel: build the timeline, generate the movie, then play, step and change speed

▶ Watch the full demo on YouTube

And the rest of 1.2.0

The analysis selector panel with the four colour-coded analyses

The complete list, including a long round of chart, containment and collaboration fixes, is in the CHANGELOG.

Tutorial: sharing a session across networks

A VR session over your own network needs none of this: a headset on the same Wi-Fi opens the scene directly. Cross-network access exists for the other case, someone who is not on your network. It is enabled by default (turn it off in Server Configuration if you prefer): cloudflared opens an outbound tunnel, so your router never has to accept an incoming connection and your IP is never published, and nobody enters without the code you read out.

The whole point of the flow below is that a link alone is never enough to get in. Whoever opens it still has to receive a code from you, through a channel you already trust.

Two people are involved, and each step below says which one acts: the host runs the analysis in VS Code and owns the session, and the guest joins from a browser anywhere in the world.

1. Host: start the server, the tunnel follows

Cross-network connections are enabled by default, so when your analysis server starts, CodeXR opens the tunnel with it (the first time it will offer to download cloudflared, once). The sidebar shows the Cross-network address, the trycloudflare.com invitation link, which also lands on your clipboard; the link stays valid for as long as you keep sharing. If you stopped the connection, Start remote access on the server row brings it back. Send the link to your guest however you normally talk to them.

The CodeXR sidebar with the cross-network address on a trycloudflare.com link, plus View remote status and Stop remote connection

Right below it sit View remote status and Stop remote connection, and further down the list of connected users, so the whole session lives in one place.

2. Guest: pick how you will appear

The link opens this page. Continue as anonymous, with an alias CodeXR reserves for you, or type a custom name of 2 to 32 characters. Then press Request access, which puts you in the waiting room: no code, no entry.

The join page: continue as anonymous with a reserved alias, or choose a custom display name The same page after requesting access: a six-digit field and a Connect button, waiting for the host's code
Step 1: how you appear in the room Step 2: waiting for the code the host reads out

3. Host: read them the code

The moment the guest requests access, VS Code shows you the code with a Copy code button:

VS Code notification reading "Remote request from Anakin. Temporary code: 957797", with a Copy code button

The sidebar reflects the same thing, so a dismissed notification is never a dead end: the connection row reads 1 request waiting and a Generate new pairing code action appears next to it.

The sidebar showing "Cross-network connection · Shared | 1 request waiting" and the Generate new pairing code action

Pass those six digits to your guest through whatever channel you already use, a call or a message. Guest: type them, press Connect, and you are in the session.

4. If the code fails, the host issues a new one

A wrong code is burnt immediately on the server, so it can never be retried. The host gets a warning naming the guest and their address, with a Generate new code button that mints a fresh one on the spot, and the same Generate new pairing code action stays in the sidebar. There is no limit to how many times you can do this. If instead the guest runs out of attempts, the pairing request itself is over and they need a brand new invitation link.

The join page rejecting a code: the field is cleared and a red message reads "The code is not valid" An invitation that no longer works: "This invitation has expired or was already used. Ask the host for a new link."
A burnt code: the guest is told to ask for a new one A dead link: expired or already used, so it needs a new invitation

5. Host: stay in control of the room

Connected users lists everyone in the session, and each row states how they got there, so a guest who came through the tunnel is never confused with someone on your own network:

Connected users (2): Anakin as Azure, CodeXR, Local; and Anakin 2 as Amber, Browser, Remote

Click any of them to open their card: display name, role, avatar, when they connected, whether they arrived through the tunnel or from your local network, and the IP address they connected from. Guests carry a Remove from Session action; the host cannot be removed.

Removing a remote guest also revokes their session, so the link they have stops working and they need both a new invitation and a new code to come back. Someone on your local network can still reopen the server address, since nothing is gating that beyond the server itself, so stop the server if that is what you want. Either way the person sees a message telling them they were removed rather than the session dying on them.

Stop remote connection ends everything at once: invitations, sessions and credentials are revoked, and the random trycloudflare.com address simply stops existing.

The tunnel is a Cloudflare Quick Tunnel: free, no account, and explicitly best effort. It has no SLA, it does not support Server-Sent Events, and the address changes every time. cloudflared is pinned to version 2026.5.2, downloaded only with your consent and checked against its SHA-256 before it ever runs. The full picture is in the cross-network access document.

Video walkthroughs for v1.2.0

Four narrated videos, one per analysis:

Classic analysis walkthrough Dependency graph walkthrough
Classic analysis: the 3D city, Field Mapping and live updates Dependency graph: layouts, node cards, filters and flow
Historical comparison walkthrough Project Evolution walkthrough
Historical comparison: two revisions, one table Project Evolution: your repository as a film

Tested in real XR sessions

You don't have to take the immersive mode on faith. This release's VR and AR experience was driven and debugged end to end inside real WebXR sessions, emulated from a desktop browser with Meta's Immersive Web Emulator: entry height and positioning, stick locomotion and flight, laser aim and hand switching, what AR hides and keeps, AR lighting, and grabbing screens with the controller. The screenshots below come straight from those test sessions. Where you see extra panels and RGB gizmos around the controllers, that is the emulator's own tooling, not CodeXR.

Want to reproduce it (or validate on your own headset)? The WebXR emulator tutorial explains the setup and the manual VR/AR checklist is the validation script.

VR testing cockpit: the scene surrounded by the emulator's controller panels Standing at the table edge in VR, the code city across the pedestal
The XR testing cockpit: a live VR session with the emulator's controller panels and gizmos around the scene At the table: standing in VR at the pedestal's edge, the city one step away
Flying over the code city in VR AR entry: the pedestal recentered into your own space, room and environment gone
Flying over the codebase: look up, push the stick, and read the skyline of your project AR brings the table to you: recentered a step away, virtual room gone, charts fully lit
AR close-up: a highlighted building with its metrics legend floating in passthrough Developing in AR: the pedestal, guide, screens and the Field Mapping panel in passthrough
Point and read, in your own room: a hovered building shows its file, lines, functions and complexity in passthrough A full workspace in AR: pedestal, guide, screens and the Field Mapping panel, with the emulator's key maps overlaid

Base tutorials

Everything above builds on the workflows introduced up to v1.1.0: the UI, the analysis commands, LivePanel and the XR scene basics. These tutorials still describe that foundation accurately:

Core interface

Complete UI tutorial File XR analysis workflow
Complete UI tutorial: the entire CodeXR interface and workflow File XR analysis workflow: single-file analysis in XR

File analysis

File analysis in LivePanel File analysis in XR
LivePanel mode: right-click & UI methods XR mode: immersive 3D file analysis

Directory & project analysis

Directory analysis in LivePanel Directory analysis in XR
Directory in LivePanel: detailed directory metrics Directory in XR: 3D directory visualization
Directory and project XR workflow Project analysis
Directory/project XR workflow: the updated XR flow Project analysis: LivePanel and XR modes

DOM & AR

DOM visualization AR programming experience
DOM visualization: interactive HTML structure analysis AR programming experience: real-world augmented reality coding

Quick Start Guide

Get Started in 30 Seconds

Method 1: From Explorer (Right-Click)

  1. Right-click any file in VS Code Explorer
  2. Choose your analysis mode:
    • "CodeXR: Analyze File (LivePanel)" - Detailed metrics panel
    • "CodeXR: Analyze File (XR)" - Immersive 3D visualization
    • "CodeXR: Visualize DOM" - HTML structure analysis (HTML files only)

Method 2: From Tree View

  1. Open the CodeXR tree view in VS Code sidebar
  2. Expand "Project Structure" section
  3. Click on any file to analyze it (respects your configuration preferences)
  4. HTML files automatically open DOM visualization
  5. Other files use your preferred mode (LivePanel or XR)

Method 3: From Command Palette

  1. Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS)
  2. Type "CodeXR" to see all available commands
  3. Select your preferred analysis mode

Directory Analysis

  1. Right-click any folder in the Explorer
  2. Choose your analysis mode:
    • "CodeXR: Analyze Directory (LivePanel)" - Standard directory analysis
    • "CodeXR: Analyze Directory (XR)" - 3D directory visualization
    • "CodeXR: Analyze Directory (LivePanel Deep)" - Recursive subdirectory analysis
    • "CodeXR: Analyze Directory (XR Deep)" - Recursive 3D analysis with subdirectories

Understanding Your Results

LivePanel Analysis Features

XR Visualization Features

DOM Visualization Features

Analysis Modes Overview

CodeXR offers powerful analysis modes, each optimized for different file types and use cases. All analysis modes support 24 code languages plus HTML DOM visualization with comprehensive file, directory, and project analysis capabilities.

LivePanel Analysis Mode

Best for: Detailed metrics review, reporting, and comprehensive code analysis without leaving VS Code

Features:

XR Analysis Mode

Best for: Spatial exploration of a codebase, in your desktop browser and optionally in VR/AR

Features:

DOM Visualization Mode

Best for: HTML structure analysis and web development

Features:

Comprehensive Analysis Capabilities

Common Analysis Features (All Types)

Universal capabilities available for files, directories, and projects:

File Analysis Specifics

Individual file deep-dive analysis:

Directory Analysis Specifics

Complete directory analysis implementation

Project Analysis Specifics

Workspace-wide comprehensive analysis:

Supported Languages

CodeXR provides comprehensive analysis for 24 code languages, plus HTML DOM visualization, through its unified analysis engine:

Complete Language Support Matrix

Language Extensions Analysis Types Comment Detection Class Detection
JavaScript .js, .mjs, .cjs LivePanel, XR C-style (//, /* */) ES6 Classes
TypeScript .ts, .tsx LivePanel, XR C-style (//, /* */) Classes & Interfaces
Python .py, .pyw, .pyi LivePanel, XR Hash (#) + Docstrings Classes & Methods
C/C++ .c, .cpp, .cc, .cxx, .h, .hpp, .hxx LivePanel, XR C-style (//, /* */) Classes & Structs
C# .cs LivePanel, XR C-style (//, /* */) Classes & Namespaces
Java .java LivePanel, XR C-style (//, /* */) Classes & Interfaces
Ruby .rb, .rbw LivePanel, XR Hash (#) + Block (=begin/=end) Classes & Modules
Go .go LivePanel, XR C-style (//, /* */) Structs & Interfaces
PHP .php, .phtml, .php3, .php4, .php5 LivePanel, XR C-style + Hash (//, #, /* */) Classes & Traits
Swift .swift LivePanel, XR C-style (//, /* */) Classes & Structs
Kotlin .kt, .kts LivePanel, XR C-style (//, /* */) Classes & Objects
Scala .scala, .sc LivePanel, XR C-style (//, /* */) Classes & Objects
Lua .lua LivePanel, XR Double dash (--) Table-based OOP
Erlang .erl, .hrl LivePanel, XR Percent (%) Modules
Zig .zig LivePanel, XR C-style (//) Structs
Perl .pl, .pm LivePanel, XR Hash (#) Packages
Solidity .sol LivePanel, XR C-style (//, /* */) Contracts
TTCN-3 .ttcn, .ttcn3 LivePanel, XR C-style (//, /* */) Modules
Objective-C .m, .mm LivePanel, XR C-style (//, /* */) Classes & Categories
Fortran .f90, .f95, .f03, .f08, .f LivePanel, XR Exclamation (!) Modules & Types
GDScript .gd LivePanel, XR Hash (#) Classes
Vue.js .vue LivePanel, XR HTML () Component Analysis
HTML .html, .htm, .xhtml DOM Visualization HTML Comments Element Structure

Analysis Capabilities by Language

All Languages Support:

Advanced Features:

Navigation Controls

Desktop (no headset needed)

VR Controllers (optional)

The standard VR scheme, driven by A-Frame's native controls:

Controller support is implemented through standard A-Frame/WebXR bindings, but this release has not been validated on physical headset hardware. See Feedback below.

Managing Active Analyses

The "Active Analyses" section in the tree view provides comprehensive session management:

Configuration and Customization

Analysis Settings

Access settings directly from the tree view or VS Code preferences:

XR Environment Settings

Customize your scene:

Installation & Setup

Prerequisites

Quick Installation

  1. Open Visual Studio Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "CodeXR"
  4. Click "Install"
  5. Restart VS Code for full functionality

First-Time Setup

Real-World Use Cases

Code Quality Assessment

Team Collaboration

Educational Purposes

Performance Tips & Best Practices

Performance Optimization

VR/AR Best Practices (if you use a headset)

Analysis Workflow

  1. Start with LivePanel: Get overview with LivePanel analysis
  2. Explore in 3D: Open the XR mode in your browser for spatial exploration of complex code
  3. Use Active Analyses: Monitor all open visualizations from tree view
  4. Configure Settings: Adjust debounce timing based on your coding style
  5. Directory Analysis: Start with standard mode, use deep mode for comprehensive coverage

Technical Architecture

Analysis Engine

Visualization Engine

Session Management

Dependencies and Requirements

End-User Requirements

Automatic Dependencies

CodeXR automatically manages the following dependencies:

Technical Documentation

Optional Dependencies

Development

Building from Source

# Clone the repository
git clone https://github.com/Code-XR-Project/Code-XR.git
cd CodeXR

# Install dependencies
npm install

# Compile the extension
npm run compile

# Build for production
npm run package

Build Commands

# One-time build
npm run compile

# Watch mode for development
npm run watch

# Create VSIX package
npm run package:vsix

# Run tests
npm run test

Development Requirements (Contributors)

Contributing

We welcome contributions! Here's how you can help:

  1. Fork the repository on GitHub
  2. Create a feature branch for your changes
  3. Make your changes with appropriate tests
  4. Submit a pull request with detailed description
  5. Follow our coding standards and include documentation

Areas for Contribution

Support, Feedback & Community

A note on VR hardware

This release was validated on desktop browsers, through CodeXR's automated test suites (unit tests, Python analysis suites and browser harnesses), and end to end on emulated WebXR sessions using Meta's Immersive Web Emulator. That emulator is what let us find and fix real immersive bugs before shipping: entry height and positioning, what AR hides and keeps (environment, room walls, invisible colliders), stick locomotion and flight, laser aim and hand switching, AR lighting, and grabbing screens with the controller. It still could not be tested on a physical VR headset: everything is built on standard WebXR/A-Frame bindings and should work, so if you run CodeXR on real hardware and anything misbehaves (the manual VR/AR checklist is a good script to follow), please open an issue: a device name and a couple of lines about what went wrong are enough, and every report directly improves the next release.

Getting Help

Enjoying CodeXR? It helps more than you think

License

This project is licensed under the GNU General Public License v3.0 (GPLv3) - see the LICENSE file for details.

GPLv3 Summary

Acknowledgments


CodeXR v1.2.0: understand your code by standing in it. Metrics, architecture and history as places you can visit: from your editor, in your browser and, when you want it, in a headset.

About the Author

CodeXR is created and maintained by Adrián Montes Linares.

Support CodeXR Development

If you find CodeXR valuable and would like to support its continued development, consider buying the developer a coffee:

Buy Me a Coffee

Your support helps me:

Popular repositories Loading

  1. Code-XR Code-XR Public

    XR-powered VS Code extension for real-time code visualization.

    TypeScript 6

  2. MemoriaTFG-AdrianMontesLinares MemoriaTFG-AdrianMontesLinares Public

    Forked from dlumbrer/plantilla-memoria

    Memoria el LaTex TFG Code-XR

    TeX 1

  3. code-xr-docs code-xr-docs Public

    JavaScript

  4. code-xr-demo code-xr-demo Public

  5. .github .github Public

Repositories

Showing 5 of 5 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Uh oh!

There was an error while loading. Please reload this page.

Most used topics

Loading…

Uh oh!

There was an error while loading. Please reload this page.