Skip to main content
100%

VZCode Source Tree

✓ Published1🌍 Public
CCurran Kelleher
Last edited Jun 4, 2024
Created on May 31, 2024

This circle pack visualization displays the file structure of the VZCode source code, a React-based code editor. It uses a d3 hierarchy and pack layout to represent directories and files as nested circles, with circle size proportional to file size and color encoding file types. The data is loaded as JSON from a GitHub Gist snapshot of the repository. The rendering includes interactive zoom via d3’s zoom behavior, and labels are placed inside circles using a computed memoization utility.

AI-generated description

A circle pack visualization of the VZCode source code. VZCode is the open source editor used in VizHub.

Overview of the VZCode codebase.

  • test has some unit tests and lots of sample files. These sample files open in VZCode when you run npm run dev
  • src/client has the front end code, which is the majority of the project. This uses React and CodeMirror to create the editor environment.
  • src/server has the server-side code, which reads the file system on start, write to the file system on code changes, and synchronizes changes between clients using ShareDB

Data comes from Gist:File Loading Script.

MIT Licensed

Similar vizzes