ngocanhnckh/renderlint

Lint the rendered UI: catches overflowing text, low contrast, overlaps, broken responsive layouts, emoji icons and more in any web framework. Built for AI coding agents.

What it solves

It addresses the gap between code correctness and visual correctness. Traditional tools like TypeScript and ESLint check code, but can't see pixel-level issues like text spilling out of cards, low contrast, chart labels overlapping, or a layout that only breaks at a specific width. renderlint opens your app in a real browser and looks at the actual rendered output to catch visual defects that coding agents (Claude, Cursor, etc.) typically ship.

How it works

It runs your app in a real browser and renders every page at phone, tablet, and desktop widths, plus dark mode. It also sweeps intermediate widths and re-checks with longer text, bigger numbers, and longer API data to uncover fragile layouts. It has 52 rules covering areas like text overflow, contrast (measured from real pixels), overlapping elements, clipped content, unreachable content, broken images, placeholder text, and native dialogs. An optional --ux pass clicks buttons, fills forms, and simulates slow networks and failures to catch action feedback, error feedback, double submits, dead controls, and more. Each defect is reported with the element, source file, annotated screenshot, and a concrete fix, in plain text that coding agents can act on. A init command sets up configuration, a build gate, and agent instructions, so failures block the build until fixed.

Who it’s for

It’s aimed at developers and teams using coding agents to build UI, but usable by anyone wanting to catch visual regressions automatically. It works with any framework (Next.js, Nuxt, SvelteKit, Astro, React Router, etc.) and can be added via npm or npx. It also supports Playwright and Storybook, and provides agent skills for Claude Code.

Highlights

  • Opens the app in a real browser and checks the actual rendered pixels.
  • 52 rules covering contrast, overflow, clipping, overlap, unreachable content, popups, images, placeholders, and more.
  • Width sweep from 320 to 1920px and at every breakpoint, plus longer text and bigger numbers to reveal fragile layouts.
  • Optional --ux pass that simulates slow networks, empty states, failed requests, and clicks to catch interaction defects.
  • Annotated screenshots and concrete fixes for each issue, output as plain text an agent can act on.
  • Fails the build on any error, making it a hard quality gate.

Related

  • Project
  • Project
  • Project
  • Project