Integrations
VS Code Extension
Capture screenshots, run UX analysis, and browse actionable recommendations — all from inside VS Code, without switching windows.
What it does
- Capture screenshots at desktop, tablet, and mobile viewports
- Submit analysis jobs and track progress in real time
- View results in an interactive panel with severity filtering
- Get copy-paste code snippets for each recommendation
- 9 analysis types: accessibility, usability, visual hierarchy, and more
- Secure API key storage via VS Code SecretStorage
Requirements
- VS Code 1.70 or later
- Node.js — only needed for the screenshot-server local-install path; skip this if using Docker
- An InterfaceGuard API key — generate one under Settings → API Keys
Installation
Install the extension
Install directly from the VS Code Marketplace, or open the Extensions view in VS Code Ctrl+Shift+X / Cmd+Shift+X, search for InterfaceGuard, and click Install.
Alternatively, download the .vsix file, click the ⋯ menu in the Extensions view, and select Install from VSIX….
Set up the screenshot server
The extension requires a screenshot server running locally to capture screenshots. Choose either option below.
Option 1: Docker (recommended, no local browser install needed)
Pull the prebuilt image, which bundles the reference screenshot server together with all Playwright browsers:
docker run -d \
--name interfaceguard-screenshot-server \
-p 127.0.0.1:3100:3000 \
ghcr.io/cre8tiv/interfaceguard-screenshot-server:latestPin to a specific version instead of :latest by replacing the tag with the extension's version (e.g. :0.1.4). Stop it with:
docker stop interfaceguard-screenshot-server && docker rm interfaceguard-screenshot-serverOption 2: Local install with Node
Download the reference server files, then run them directly with Node:
Save both into the same directory, then run:
# Install dependencies
npm install
# Install Playwright browsers
npx playwright install
# Install system dependencies (Linux only)
npx playwright install-deps
# Start the server
node screenshot-server.jsBy default the server listens on port 3000 — set PORT=3100 to match the extension's default endpoint, or update the endpoint setting to match. Keep this server running while you use the extension.
Configure the extension
Use the built-in commands — open the Command Palette Ctrl+Shift+P / Cmd+Shift+P and run:
InterfaceGuard: Configure API Settings— enter your API keyInterfaceGuard: Configure Screenshot Server— verify the server endpoint (default:http://localhost:3100)
Or open Settings Ctrl+, and search “InterfaceGuard” to configure all options manually:
// settings.json (example values)
{
"ux-analyzer.apiUrl": "",
"ux-analyzer.screenshotServerEndpoint": "http://localhost:3100",
"ux-analyzer.defaultBrowser": "chromium",
"ux-analyzer.defaultViewports": [
{ "width": 1920, "height": 1080, "deviceType": "desktop" },
{ "width": 768, "height": 1024, "deviceType": "tablet" },
{ "width": 375, "height": 667, "deviceType": "mobile" }
]
}Usage
Open the Command Palette and run commands in order, or click the 🔭 InterfaceGuard status bar item for a quick-pick menu.
InterfaceGuard: Capture ScreenshotsEnter your app URL, select viewports (desktop, tablet, mobile), and wait for capture to complete.
InterfaceGuard: Analyze ApplicationChoose analysis types (accessibility, usability, consistency, etc.) and submit the job. Status updates appear in the status bar.
InterfaceGuard: Show ResultsOpens the interactive results panel. Filter issues by severity or category, expand cards for recommendations and code snippets.
The Activity Bar panel (InterfaceGuard icon) shows the Analysis Results view and provides toolbar buttons for each command.
Troubleshooting
Cannot connect to Screenshot Server
Make sure the screenshot server is running. Try: node screenshot-server.js. Check that the server endpoint in settings matches the port (default 3100).
API key validation failed
Verify the key is correct in Settings → API Keys. If the key was recently regenerated, re-run "InterfaceGuard: Configure API Settings" to update it.
Screenshot capture failed
Ensure the URL is reachable from your machine. Try switching to a different browser (chromium, firefox, or webkit) via "InterfaceGuard: Configure Screenshot Server". Check the Output panel (View → Output → InterfaceGuard) for detailed errors.
No results showing
Wait for analysis to complete (watch the status bar). Run "InterfaceGuard: Show Results" manually. Check the Output panel for errors.
Ready to analyze your interface?
Create a free account to get your API key, then install the extension.