VS Code extension

The Polyxd extension for VS Code, Cursor, VSCodium and Windsurf. The check as you type, a live preview in every design system, and the verifier a command away.

The Polyxd extension puts the check and the preview next to the document you're writing. You see a mistake where you made it, and the screen as it will look, without a server to start. It runs in VS Code, Cursor, VSCodium and Windsurf.

A Polyxd document with a misspelt data path underlined and explained, and the live preview of the screen beside it

Install it#

Search for Polyxd in the Extensions view, or install it from the command line:

code --install-extension Polyxd.polyxd-vscode

To build it from the repository instead:

git clone https://github.com/visualfart/polyxd && cd polyxd
npm ci
npm run build -w @polyxd/core && npm run build:preview -w @polyxd/react
npm run package -w polyxd-vscode
code --install-extension apps/vscode/polyxd-vscode-0.3.0.vsix     # or: cursor --install-extension …

In Cursor, VSCodium and Windsurf you can also use Extensions → … → Install from VSIX.

What you get#

The preview in the Polaris design system, light and wider, with an action in the log

Commands#

Insert component: the 44 components by category, each with a one-line summary

Settings#

Setting What it does
polyxd.defaultPack The pack the preview opens with. material3 unless you set it.
polyxd.pack Your own pack for the preview's switcher: a manifest.json written by polyxd pack, or a compiled theme stylesheet. Relative to the workspace folder.
polyxd.studio.workspaceUrl Your Studio workspace's API base, https://studio.polyxd.com/api/w/<workspace>, for Push to Studio.

Privacy#

The extension collects no telemetry. The check and the preview run on your machine from files inside the extension. It reaches the network only when you ask: Open in Studio opens your browser, Push to Studio uploads the document to your workspace, and Verify document may fetch the verifier from npm. The preview shows images from https URLs your document names.

The Polyxd documents view in the Explorer beside the preview of another screen

Without the extension#

npx polyxd dev ./screens gives you the same preview and check in a browser tab, for any editor. See Your design system.

Polyxd is an early preview. Found something unclear? It will get better with your feedback.