Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Cute CodeNew to Visual Studio Code? Get it now.
Cute Code

Cute Code

Gopherwood Studios

|
1 install
| (0) | Free
Visual structural AST view of JavaScript - functions, classes, calls, and returns as interconnected blocks.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Cute Code

Visual structural AST view of JavaScript — functions, classes, calls, and returns as interconnected blocks.

Install

  1. Open the Extensions view in VS Code or Cursor
  2. Search for Cute Code and install
  3. Or install from a local package: code --install-extension cute-code-0.3.0.vsix

Usage

  1. Open a .js, .jsx, .mjs, or .cjs file
  2. Click the hierarchy icon in the editor title bar, or run Cute Code: Open Structure View from the Command Palette
  3. The tab switches to the structure graph
  4. Click a block to reveal its source beside the graph
  5. Click the code icon in the title bar (or run Cute Code: Show Source) to return to the text editor

Features

  • Same-tab structure view with a title-bar toggle back to source
  • Parses the file with Babel
  • Blocks for module, functions, arrows, classes/methods, imports, exports, bindings, and call sites
  • Declarations along the top; calls are separate blocks with a dashed def thread to the declaration
  • Expand declarations to see bindings, nested decls, and calls; jump from a call to its definition
  • const / let / var bindings thread into the calls that use them
  • Class stacks with drag reorder (visual only)
  • Auto-refresh on edit (300ms debounce)
  • Parse errors shown in the graph tab with line/column when available

Editing titles can write back to source. Broader graph → source edits are on the roadmap.

Developing

  1. npm install
  2. npm run build
  3. Open this folder in VS Code / Cursor
  4. Press F5 (launch config Run Extension)
  5. In the Extension Development Host window, open examples/sample.js
  6. Use the hierarchy icon or Cute Code: Open Structure View

If you run the command in your normal window (without F5), the extension is not loaded from this repo.

Scripts

Script Purpose
npm run build Bundle extension host + webview
npm run watch Rebuild on change
npm test Unit tests
npm run package Build a .vsix with @vscode/vsce

Publishing (GitHub Actions + OIDC)

Releases use trusted publishing — no Azure DevOps PAT. The publish.yml workflow calls vsce publish --oidc.

One-time setup

  1. Use publisher GopherwoodStudios at marketplace.visualstudio.com/manage
  2. Under that publisher, add a Trusted publishing → GitHub Actions policy:
    • Organization or user: probityrules
    • Repository: cute-code
    • Workflow filename: publish.yml
    • Environment name: vscode-marketplace
  3. In GitHub: Settings → Environments → New environment named vscode-marketplace

Release

  1. Bump version in package.json and update CHANGELOG.md
  2. Commit, then tag and push: git tag v0.3.0 && git push origin v0.3.0
  3. The Publish workflow runs tests and publishes that version

You can also run Publish via Actions → workflow_dispatch. Tag pushes require the tag (vX.Y.Z) to match package.json version.

Architecture

  • src/extension.ts — custom text editor, title-bar toggle, editor sync, reveal-on-click
  • src/parser/extractGraph.ts — Babel parse + structural extraction
  • src/shared/graph.ts — Graph IR + host/webview messages
  • src/webview/ — React Flow UI with dagre layout

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft