Calque
github.com
- Free plan
- Windows
- macOS
- Linux
- Self-hosted
What Calque is
Calque is free, MIT-licensed software that converts a PNG or JPEG website screenshot into HTML and CSS by measuring pixels. It can output a self-contained HTML file or JSON containing measurements such as colors, type scale, weights, spacing, container width, gutters, and corner radii. The tool identifies sections, columns, cards, buttons, alignment, and reading order, and can crop photographs from the screenshot as assets. Its check command renders the rebuilt page in an installed Chrome-family browser and compares it pixel by pixel with the source. Calque also ships as a Claude skill that supplies measurements for project code. The documented workflow uses Tesseract for OCR, with Docker available as an optional container method. It makes no model call or API request and works offline after OCR data is cached. Node.js 20 or later is required.
Who it suits
Calque suits developers rebuilding a single page from screenshots in plain HTML and CSS. It is useful when offline processing and measurable output matter more than recovering original assets or typography.
Good to know, and what to watch
- Produces self-contained HTML or measurement JSON
- Extracts detailed layout and design tokens
- Pixel-by-pixel visual check command
- Works offline after OCR caching
- MIT license permits hosting and forks
- Processes one screenshot, not a whole site
- Cannot identify the exact typeface
- Photos remain cropped screenshot-resolution assets
- Weakest on dark glow and gradient pages
The verdict
Calque offers a measurement-based path from screenshots to editable HTML and CSS, with a built-in visual comparison step. Expect compromises around fonts, icons, photographs, scrolling states, and difficult visual effects.
What the maker publishes
- Claude integration
- Calque ships as a Claude skill that supplies measurements for Claude to use when writing project code. source
- Claude integration
- Calque ships as a Claude skill that provides measured screenshot details for Claude to use when writing project code. source
- Design measurements
- It extracts design tokens including colors, type scale, weights, spacing, container width, gutters, and corner radii. source
- Design measurements
- It extracts design tokens including colors, type scale, weights, spacing, container width, gutters, and radii. source
- Image handling
- With the --assets option, it crops photographs from the screenshot and references those crops in the output. source
- Inputs and outputs
- It reads PNG or JPEG screenshots and can write a self-contained HTML file or a JSON file of measurements. source
- Known weak cases
- The maker reports lower reconstruction matches for photograph-heavy pages and identifies dark pages with large glows or gradients behind text as its worst case. source
- Layout and images
- It finds sections, columns, cards, buttons, alignment, and reading order, and can crop photographs from the screenshot as assets. source
- Layout features
- It identifies sections, columns, cards, buttons, alignment, and reading order, and can reconstruct vertical gradients. source
- License
- The repository describes Calque as MIT-licensed and says it can be hosted, forked, or sold. source
- License
- The repository is MIT licensed, and its README says users may take, host, fork, and sell it. source
- Limit: icons and photos
- Icons become placeholders, while cropped photographs remain screenshot-resolution images with any overlaid text baked in. source
- Limit: page coverage
- It reads one screenshot and does not capture scrolling, hover states, or another breakpoint. source
- Limits
- It processes one screenshot rather than a whole site, cannot identify the exact typeface, and uses cropped screenshot images rather than recovering original photographs. source
- Limit: typography
- Calque cannot identify a typeface from a screenshot, and font weight resolves to about one step. source
- Maker
- The repository says Calque is part of Openware, whose GitHub profile describes its work as self-hostable replacements for subscription software. source
- Other tools
- The documented workflow uses Tesseract for OCR and Docker as an optional way to run Calque in a container. source
- Output
- It can write a self-contained HTML file or a JSON specification of its measurements. source
- Performance and accuracy
- The README says processing takes about a second per page and reports fixture match scores ranging from 15.3% to 97.1%. source
- Privacy and operation
- The maker says Calque makes no model call or API request, and that after its OCR data is cached it works offline; the Docker build preloads that data. source
- Purpose
- Calque turns a website screenshot into working HTML and CSS by measuring pixels rather than asking a vision model to interpret the image. source
- Purpose
- Calque turns a website screenshot into working HTML and CSS by measuring pixels rather than asking a vision model to interpret them. source
- Quality check
- Its check command renders the rebuilt page in an installed Chrome-family browser and compares it with the screenshot pixel by pixel. source
- Requirements
- The package specifies Node.js 20 or later; the README says the first run downloads about 15 MB of OCR data and caches it. source
Checked against the maker's pages on 9 Oct 2026.