
Security News
Lovable’s OJ Rewrites Vite’s Dev Server in Rust as AI Lowers the Cost of Forking Open Source
Lovable’s OJ rewrites Vite’s dev server in Rust, reducing memory use and preview times as AI lowers the cost of open source reimplementation.
Check that a rendered UI component is as designed — diff it against its Figma source and see exactly what drifted.
Is it as designed? Diff a rendered UI component against its Figma source and see exactly what drifted. Built for coding agents: give Claude Code or Cursor the tool and they can check their own work against the design.
asdesigned compare https://www.figma.com/design/<key>/<file>?node-id=12-345 \
--url http://localhost:3000 --selector .btn-primary
design figma Button / Primary 1:4
rendered dom <button class="btn-primary"> .btn-primary
box
✗ width design 120px → rendered 112px (−8px)
padding
✗ left design 16px → rendered 12px (−4px)
✗ right design 16px → rendered 12px (−4px)
border
✗ color design #1d4ed8 → rendered #2563eb (Δ29.43)
typography
✗ fontFamily design "Inter" → rendered "Arial"
✗ fontWeight design 600 → rendered 500 (−100)
6 drift · 20 match
FAIL (tolerance ±1px, color Δ≤4)
That output is real — examples/button.html against a real Figma component. Five of those six were planted.
The sixth wasn't: <button> elements don't inherit font-family, so the page quietly fell back to Arial.
Nobody sees that in a screenshot review. The diff does.
Figma gives you the intent. The browser gives you the reality. asdesigned compares the two — and your coding agent can call it to check its own work.
Status: v0.1 — early, usable. Figma → spec, DOM → spec, diff, terminal + HTML report, MCP server.
npx asdesigned --help # no install
npm i -g asdesigned # or install the `asdesigned` command globally
npx playwright install chromium # one-time: the browser used to render pages
Set FIGMA_TOKEN (a Figma personal access token with file content: read) in your environment or a .env file.
asdesigned ships an MCP server so Claude Code, Cursor, and other MCP clients can call it directly.
Tools: compare_design, inspect_element, inspect_figma.
Claude Code — .mcp.json in your project:
{
"mcpServers": {
"asdesigned": {
"command": "npx",
"args": ["-y", "asdesigned", "asdesigned-mcp"],
"env": { "FIGMA_TOKEN": "figd_…" }
}
}
}
Cursor — .cursor/mcp.json, same shape.
A skill file describing when and how an agent should reach for the tool lives in
skills/asdesigned/SKILL.md — drop it into your agent's skills folder.
asdesigned compare <figma-url> --url http://localhost:3000 --selector .btn-primary
asdesigned compare <figma-url> --url … --selector … --html report.html # self-contained visual report
asdesigned compare <figma-url> --url … --selector … --json # for CI / scripts
asdesigned inspect http://localhost:3000 --selector .btn-primary
asdesigned inspect <figma-url>
Exit code is 1 when drift is found, so compare works as a CI check.
Both sides are normalized into one flat StyleSpec — px numbers, RGBA colors, every field optional — and a pure
diff compares them with sensible tolerances (±1px, small color distance, zero tolerance on font weight).
Fields missing on one side are reported but don't fail the run; only real drift does.
src/spec.ts — the shared formatsrc/diff.ts — the comparisonsrc/readers/figma.ts — Figma REST → specsrc/readers/dom.ts — Playwright computed styles → specsrc/report.ts, src/report-html.ts — outputnpm install
npm test
npm run build
node dist/cli.js --help
ASDESIGNED_BROWSER=/path/to/chrome uses an existing Chrome/Chromium instead of Playwright's download.
design-drift explores similar ground with pixel + element diffing and a
viewer. asdesigned is deliberately smaller — one verb, agent-first, 23 kB.MIT
FAQs
Check that a rendered UI component is as designed — diff it against its Figma source and see exactly what drifted.
The npm package asdesigned receives a total of 37 weekly downloads. As such, asdesigned popularity was classified as not popular.
We found that asdesigned demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Lovable’s OJ rewrites Vite’s dev server in Rust, reducing memory use and preview times as AI lowers the cost of open source reimplementation.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.