
redline is a small tool i use when an ai agent or someone else has just changed part of an app, and i want to see what actually changed on screen, not just in the code.
you pick a point in the project's history to compare against. redline then draws outlines around every part of the page that's changed since then, and clicking an outline shows you the code change behind it.
there's a history panel too. pick an older version and it shows what the page looked like back then, so you can flip between then and now. it only runs while you're building, not on the live site.
redline is a small npm package i use when an agent or a pr has just rewritten bits of a ui and i want to see what actually moved on screen, not just in the diff.
you pin a baseline commit. in vite or next (turbopack or webpack), a transform tags every jsx host element with its source file and line range. the overlay fetches git diff against that baseline, maps changed lines onto the rendered nodes, and draws outlines over them. click an outline and you get the hunk.
there is a floating toolbar and a history panel. pick an older commit and redline builds that commit in a separate worktree and shows it in an iframe, so you can flip between what the page looked like then and now. demos get a generic read-only network stub so the preview does not hit real apis.
dev only by default. the transform and /__redline/* endpoints stay out of production unless you force them on. package is @vedantb/redline, local-first, no clerk or convex in the package itself.
Sign in to join the conversation