← Back to Leaderboard
Rngocanhnckh

ngocanhnckh/renderlint

A Chromium-based CLI that catches layout, contrast, and interaction defects.

Engineering Health (Methodology)
A+ · 94/100
Maintenance Activity
● Updated yesterday
Latest Release
v0.2.0
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption19/25
Release Cadence20/20
License Clarity20/20
CLI
Total Stars
★ 817
24h Growth
+1
7d Growth
+52
Forks
182

GitHub Star History

Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.

ngocanhnckh/renderlint Star History (2026-10-26 - 2026-12-04) DAILY STAR HISTORY (34-DAY D1 TELEMETRY) +816 in 39d · avg +21/day 863 432 0 2026-10-26: ★ 12026-10-31: ★ 482026-11-03: ★ 1312026-11-06: ★ 2132026-11-09: ★ 3122026-11-12: ★ 4262026-11-15: ★ 5552026-11-18: ★ 6822026-11-21: ★ 6832026-11-24: ★ 6852026-11-27: ★ 7652026-11-30: ★ 8122026-12-04: ★ 817 ★ 817 10-26 11-14 12-04

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Renderlint is a Node.js CLI and JavaScript library with two declared runtime dependencies: playwright and pngjs. It drives headless Chromium, scrolls to trigger lazy content, waits for fonts and images, and advances animations to their final state. An in-page analyzer checks text bounds against clipping boxes, box intersections, computed styles, and hit-test results. Contrast uses two captures: a normal render and one with text made transparent to reveal the background behind it.

The runner also exercises focus, scrolling, menus, and tooltips before grouping findings across viewports and pages. Findings include fix hints and annotated screenshots; React, Vue, Svelte, and Astro development builds can also provide component source locations where mapping succeeds. The integration surface is a CLI, a JavaScript API, a Vite overlay, and a Claude Code setup hook; it does not require an MCP server.

Key Capabilities & Differentiators

The 63 rules cover rendered defects such as text clipping, SVG label collisions, horizontal overflow, obscured focus, clipped popups, unreachable content, and leaked values like NaN%. Scans cover phone, tablet, and desktop widths, plus dark mode where supported. Intermediate-width sweeps and stress passes with longer copy, larger numbers, and longer API data distinguish defects visible now from brittleness reported as fragile-layout.

For pages that load data through browser fetch/XHR, the standard pass holds those requests for one second to look for missing loading feedback. The optional --ux pass samples at most 12 controls per page on fresh loads. It checks for issues such as missing feedback on an HTTP 500, duplicate submissions, and UI freezes. Configured click-and-wait states and Playwright flows extend coverage beyond initial page loads; rule severity and selector-level ignores let teams control what blocks CI.

Trade-offs & Limitations

Unlike ESLint, Renderlint inspects what the browser actually paints. Unlike Playwright screenshot assertions, it diagnoses specific defects without a reference image, but it cannot enforce exact appearance. Its contrast rule uses WCAG 2 AA rather than APCA, and DOM-based label checks work on SVG but cannot inspect text drawn inside a canvas. Treat it as a targeted quality gate, not a substitute for visual approval or a full accessibility audit.

A three-viewport scan with sweep and stress takes about 4–10 seconds per page; --ux takes about a minute per page and does not exercise hover menus or drag-and-drop. Use --sweep 1024 or --no-sweep for a faster feedback loop, and script critical states rather than assuming automatic coverage. Server-side mocking is limited to Node; server-rendered pages on other stacks need a running backend. Run interaction probes against test accounts and data, since they can activate real controls and submit forms.

Hardware & Deployment Guide

Run on Node.js 18.17 or later with Playwright Chromium. npx -y @yitec/renderlint http://localhost:3000 runs a one-off scan; npx renderlint dist serves a static build for inspection. With no explicit target, the CLI looks for a running dev server, a dev script, a build directory, then index.html. Use renderlint.config.json, .js, .mjs, or the renderlint key in package.json to specify routes, widths, states, and mocks.

init installs the tool and adds configuration, a build gate, agent instructions, and a Claude Code hook. Review those changes before committing them. The check exits with status 1 on errors and writes JSON, Markdown, and annotated screenshots under .renderlint/. Scanning runs locally without telemetry; provision Chromium ahead of time for restricted CI environments and ensure the target app is reachable. Release v0.2.0 packages this workflow around headless Chromium checks at phone, tablet, and desktop widths.

Pixel contrast: compares captures with and without visible text to measure the actual backdrop, including gradients and images.
Responsive stress: sweeps widths between configured viewports and retests with longer copy, larger numbers, and longer API data.
Interaction checks: opens menus, hovers tooltips, walks focus in both directions, and uses wheel input to verify suspected scroll traps.
UX probes: delays fetch/XHR by one second for loading checks; optional --ux probes bounded samples of controls for feedback, failure handling, and duplicate submissions.
Actionable reports: groups duplicate findings and links them to numbered screenshots and, where supported, component source locations.
Quality gate: provides an error exit status, JSON and Markdown reports, GitHub annotations, and an optional Claude Code hook.
Best For

Frontend teams and coding agents that need a CI gate for cross-width layout, real-pixel contrast, and common interaction regressions, with screenshots developers can act on.

Skip If

Your primary requirement is pixel-exact baseline matching, comprehensive accessibility sign-off, canvas-label inspection, or exhaustive workflow coverage without writing test states.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLI
npx -y @yitec/renderlint init   # one-time setup: installs it, adds config, build gate, agent instructions, Claude Code hook
npx renderlint                  # check: exits 1 if any error is found

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
renderlint ★817+52JavaScriptMITA Chromium-based CLI that catches layout, contrast, and interaction defects.
rtk88.7k+684RustApache-2.0A local Rust CLI wrapper that trims command output before coding agents read it.
ECC316.1k+4.2kJavaScriptMITPlugins and CLI workflows for planning, reviewing, and verifying agent-written c
ponytail204.4k+4.1kJavaScriptMITA prompt-driven coding-agent plugin for smaller changes and focused tests.

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/ngocanhnckh/renderlint.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

ngocanhnckh/renderlint Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about renderlint

How do I integrate renderlint with my app or coding agent?

The primary integration is the renderlint CLI. It can scan a running URL, serve a static build, or manage a configured server command. JavaScript callers can use check and formatPretty. A Vite overlay and a Claude Code hook are also available; neither requires an MCP server.

What runtime and hardware should I budget for?

Use Node.js 18.17 or later and a Playwright Chromium installation. There is no model runtime or stated GPU or VRAM requirement. Size CI runners for Chromium and the app under test. For the standard three-viewport scan with sweep and stress enabled, allow roughly 4–10 seconds per page; the optional --ux pass takes about a minute per page. Measure both on representative routes before setting a CI timeout.

Can we use it commercially and run it entirely on our own infrastructure?

Yes. The MIT license permits commercial use and local or self-hosted CI execution; retain the required copyright and permission notices when redistributing the software. There is no telemetry or hosted service requirement. Review .renderlint/ artifacts before sharing them: screenshots and reports can expose content from authenticated or internal pages.

Should renderlint replace Playwright screenshot assertions or accessibility audits?

Use renderlint when you want rule-based diagnoses and fix hints without maintaining reference screenshots. Keep Playwright screenshot assertions where exact visual appearance matters, and use scripted Playwright flows to reach dialogs, forms, or other states the default scan misses. Keep a dedicated accessibility audit alongside both: pixel contrast and keyboard-focus checks are useful, but they do not establish conformance.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining ngocanhnckh/renderlint? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature ngocanhnckh/renderlint on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare