Facet

v0.1.0
io.github.chndr-prksh/facet Checked 2 days ago Published 1 month ago

Check web pages for responsive design problems and screenshot them on phone, tablet and desktop.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check_responsive

Check a web page for responsive design problems on real phone, tablet, laptop and desktop viewports (with each device's pixel ratio, touch support and user agent). Returns the problems found on each device: horizontal scrolling and the elements causing it, tap targets under 24px, text under 12px, form fields that make iOS zoom, viewport meta mistakes, clipped text, oversized or blurry images, fixed headers covering the screen, plus console errors per device. Defaults to the six most common screen sizes. Works with localhost. Use it after changing layout or CSS, or when asked whether a site is…

ParameterTypeDescription
url *stringPage to load: a full URL, a bare host such as example.com, localhost:3000 for a local dev server, or a path to an HTML file
devicesarrayDevice ids or names from list_devices ("iphone-17", "Galaxy S26"), free-form sizes ("1024x768"), or a preset: default, popular, phones, latest, tablets, desktops, apple, foldables, extremes.

screenshot

Screenshot a web page on several devices at once to see how its layout responds. Returns one labelled image per device. Defaults to a phone, a tablet and a laptop. Set fullPage to capture the whole page (cut off at 6000px).

ParameterTypeDescription
url *stringPage to load: a full URL, a bare host such as example.com, localhost:3000 for a local dev server, or a path to an HTML file
devicesarrayDevice ids or names from list_devices ("iphone-17", "Galaxy S26"), free-form sizes ("1024x768"), or a preset: default, popular, phones, latest, tablets, desktops, apple, foldables, extremes.
fullPagebooleanCapture the whole scrollable page, not only the first screen

audit_accessibility

Run an axe-core accessibility audit of a web page on one device and return the WCAG violations with their impact, the affected elements and how to fix them.

ParameterTypeDescription
url *stringPage to load: a full URL, a bare host such as example.com, localhost:3000 for a local dev server, or a path to an HTML file
devicestringDevice id, name or size; defaults to an iPhone

compare_element

Measure one element of a page on every device: size, position, visibility, font size, display, flex and grid settings. Shows how a component changes across breakpoints.

ParameterTypeDescription
selector *stringCSS selector of the element
url *stringPage to load: a full URL, a bare host such as example.com, localhost:3000 for a local dev server, or a path to an HTML file
devicesarrayDevice ids or names from list_devices ("iphone-17", "Galaxy S26"), free-form sizes ("1024x768"), or a preset: default, popular, phones, latest, tablets, desktops, apple, foldables, extremes.

list_devices

List the 290+ device profiles (phones, foldables, tablets, laptops, desktops, watches, TVs) with viewport size and pixel ratio, and the named presets.

ParameterTypeDescription
kindstring
querystringFilter by name, e.g. "iphone" or "galaxy"