How habi0817/figma-compare works
Framecheck is a browser-based, local-image tool for comparing Figma designs with webpage screenshots. The main workflow is to load or capture two images, select and align a component (automatically or manually), optionally inspect dimensions, then review visual differences and export a report. Separate workflows support paired same-size captures and a follow-up Playwright regression template. The graph reflects documented capabilities and sampled implementation; some UI-to-engine connections are documented rather than visible in the excerpts.
Main entry points: dimension-ui.js Dimension Workflow · align-ui.js Alignment Review · capture.mjs Candidate Capture · workbench.js Image Workbench
Components 12
Images and Alignment
- Image Workbench
figma-compare/src/workbench.js - Paired Capture
figma-compare/src/dual-ui.js - Alignment Review
figma-compare/src/align-ui.js - Image Matching
figma-compare/src/align-worker.js
Dimension Review
- Dimension Workflow
figma-compare/src/dimension-ui.js - Dimension Checks
figma-compare/src/dimension-core.js
Visual Comparison
- Comparison Interface
figma-compare/src/app.js - Pixel Difference
figma-compare/src/diff-core.js
Regression Capture
- Capture Settings
figma-compare/regression/visual.settings.js - Page Preparation
figma-compare/regression/scripts/shared.mjs - Candidate Capture
figma-compare/regression/scripts/capture.mjs
Other components
- Designer
Connections 15
- Designer → Image Workbench: loads images
README.md - Designer → Paired Capture: starts capture
README.md - Paired Capture → Image Workbench: sets image pair
figma-compare/src/dual-ui.js - Image Workbench → Alignment Review: offers alignment
README.md - Alignment Review → Image Matching: starts worker
figma-compare/src/align-ui.js - Alignment Review → Dimension Workflow: opens measurement
figma-compare/src/dimension-ui.js - Designer → Dimension Workflow: checks dimensions
README.md - Dimension Workflow → Image Matching: runs matching
figma-compare/src/dimension-ui.js - Dimension Workflow → Dimension Checks: checks geometry
- Designer → Comparison Interface: reviews differences
README.md - Comparison Interface → Pixel Difference: calculates differences
README.md - Designer → Candidate Capture: requests regression capture
README.md - Candidate Capture → Page Preparation: prepares page
figma-compare/regression/scripts/capture.mjs - Candidate Capture → Capture Settings: uses settings
figma-compare/regression/scripts/capture.mjs - Page Preparation → Capture Settings: loads settings
figma-compare/regression/scripts/shared.mjs