Skip to content
umage-aiPublic

About

Dev-only UI feedback overlay: pin comments, sketches and text changes on any web UI, saved as markdown an AI agent can work through.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

Redline

Mark up a running web UI, and let an AI agent apply the changes.

npm MIT license

Quick start · Guide · Where to run it · Packages · Product page · Releases

Commenting on a button: the popover shows the element and its React source, App.tsx:35

Redline is a dev-only overlay for any web app. Press Alt+Shift+R in the browser, then pin comments on elements, rewrite text in place, or sketch on the page. Any coding agent (Claude Code, Codex, Cursor, Copilot, Gemini CLI, …) then works through the notes, ticks each one off and replies inline, and the replies show up live in the overlay. It works with React, Vue, Svelte/SvelteKit, Solid, Preact and Astro on Vite, Next.js 15+, Angular 17+ and any Node server, with ASP.NET Core, Blazor and Optimizely coming as NuGet packages. Nothing ships to production: it only runs in the dev server (vite dev, astro dev, next dev, ng serve, Debug builds), unless you opt in for a review site.

How it works

  1. Pin. A reviewer comments on an element, edits its text or sketches over the page, on desktop or phone.
  2. Saved as markdown. The dev server writes each note to .redline/ with what an agent needs to find the code: the URL, selector, XPath and test id, the source file:line and component chain, viewport and theme, recent console errors, and a screenshot with the target outlined (what gets written).
  3. The agent applies it. npx redline init installs the redline guide for your agent (or use the MCP server); Copy prompt for your agent in the notes panel hands it the open notes.
Text: edit in place, saved as a diff Sketch: box, arrow, pen and labels
Text mode diff Sketch mode

Quick start

npm install -D @umage.ai/redline
npx redline init        # agent guide + AGENTS.md section, .redline/ in .gitignore

Vite (React, Vue, Svelte/SvelteKit, Solid, Preact): put Redline first in vite.config.ts, before the framework plugin.

import redline from '@umage.ai/redline/vite'

export default defineConfig({ plugins: [redline(), react()] })   // or vue(), sveltekit(), solid(), preact()

Run vite dev and press Alt+Shift+R. Other stacks (full setup per framework):

Stack Setup
Astro integrations: [redline()] from @umage.ai/redline/astro (only under astro dev)
Next.js 15+ withRedline(nextConfig) from @umage.ai/redline/next + <Redline /> in the root layout
Angular 17+ the @umage.ai/redline:dev-server builder for serve in angular.json
Other Node servers redlineMiddleware() → { api, inject } from @umage.ai/redline/server
ASP.NET Core, Blazor, Optimizely (upcoming) AddRedline() (dotnet/README.md)

The API under another path (apiBase, a .NET PathBase), on another origin (cors, credentials or a header hook) or the overlay inside iframes (allowInIframe): docs/SETUPS.md. Local dev, shared notes, a deployed review site or your own backend: docs/SETUPS.md says which fits. Every option and its default: docs/OPTIONS.md.

Keys

Key Mode
C Comment: click an element and type (Alt+click: its parent, Shift+click: the whole page)
T Text: edit any text in place; saved as a diff, or written to the file with Apply to file
S Sketch: box 1, arrow 2, pen 3, text 4; Enter finishes
N Notes: the panel with every note, agent replies and Copy prompt for your agent
Esc One step back: draft → mode → panel → closed

Labels, phones, the launcher and your own open buttons, screenshots, direct edit and more: docs/USAGE.md.

The notes panel with an agent's reply on a done note

Agent panel

With @umage.ai/redline-agent and agent: true, your agent CLI runs from the overlay: Apply 2 notes, its questions and diffs in a card on the toolbar, a session per prompt (optionally each in its own git worktree), a 📎 on each session with the files it changed, and its state as a ring on the launcher. Every installed CLI is offered (Claude Code, OpenCode; ⚙ picks one, with its model and effort); OpenCode and any other ACP agent run over the Agent Client Protocol, so their permission prompts arrive with their real options. Sessions get Redline's MCP, so the agent can say which note it is on and read the open page. Local dev only. See agent/README.md.

The agent toolbar: the CLI asks to edit src/App.tsx; the card shows the diff and its three options

Packages

Start with the core; add the others only when you need them. Each has its own README.

Package Version What it is Add it when
@umage.ai/redline npm The core: dev-server plugins (Vite, Astro, Next.js, Angular, any Node server), the overlay, the agent skill, the MCP server and the CLI Always: this is Redline (setup)
@umage.ai/redline-agent npm Your agent CLI run from the overlay: the agent toolbar, fresh sessions, its questions in a card (agent/) You want notes applied without opening a terminal (local dev)
@umage.ai/redline-hub npm A shared note server for a team: projects, members, live notes (hub/) Several people review the same app
@umage.ai/redline-overlay npm The overlay as browser modules, no server parts (overlay/) You embed Redline in your own product (an extension, a review site)

The agent panel's Redline-free core, driving agent CLIs from a browser, is agent-bridge/ (bundled into the agent package; not published on its own yet).

Learn more

Screenshots are from the fictional demo app in examples/demo (npm run demo; regenerate with npm run screenshots).

License

MIT

About

Dev-only UI feedback overlay: pin comments, sketches and text changes on any web UI, saved as markdown an AI agent can work through.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages