Skip to content
AddHunt
VS Code extensions

Svisualize

VS Code extension that maps Svelte component trees

Open source

  • Open source
  • Licence: MIT

In short

Svisualize is an open-source VS Code extension that draws a tree of a Svelte project's components while code is being written. It is for Svelte developers who want to see how components and props fit together and move quickly between files.

What you get

  • Interactive tree of Svelte components
  • Click a node to open its file
  • Hover to inspect props across levels
  • Set any component as the tree root
  • Update button to refresh the tree

The details

Svisualize gives Svelte developers a visual map of their component hierarchy without leaving the editor. The extension renders the project's components as a tree, using D3 for the visualization, and keeps it next to the code in VS Code.

Features

  • Open files from the tree: clicking a node opens the matching component file, which makes it quick to move through the project.
  • See props: hovering over a node shows the props passed through multiple levels of the hierarchy.
  • Change the root: any component can be set as the root to focus on a smaller part of the structure.
  • Update on click: after components are added, an update button re-renders the tree so it includes the changes.

How it is built

The extension is written in TypeScript and built with Svelte and D3 on top of the VS Code extension platform. It was created by a team of four developers, and the site links to the team's blog and the GitHub repository where the code lives.

Svisualize is open source under the MIT license and can be downloaded from its website.

Alternatives to Svisualize

Questions

What does Svisualize show?

A tree of the components in a Svelte project, with props visible on hover and nodes that open the matching files.

Can it show only part of a project?

Yes. Any component can be made the root node to visualize a smaller section of the structure.

More like this