Review HTML prototypes

Summary

Render an HTML mockup inside the terminal, click an element to comment on it, and use the page before you comment.

A prototype is a Markdown design document by default. Comments attach to its text, and it works in every terminal.

The pixel view is an experimental mode for an HTML prototype. It renders the page and shows it in the content region. Turn it on in your configuration:

[experimental]
prototype_pixels = true

Then pass an .html file:

cueloop prototype Checkout.html

The pixel view needs a terminal that shows images, such as Kitty or Ghostty, and a browser engine: WPE WebKit on Linux, or an installed Chrome or Chromium (see Rendering engine). Without the setting, the Markdown review is unchanged.

Comment on an element

Click an element in the page. The comment card opens next to it, and the comment is saved against that element's selector and text.

A dashboard prototype in cueloop with a comment card open below the Refund webhooks row
Click the failing row to open a comment card just below it.

Use the page

Press i to interact. Clicks, hover, scrolling, and typing go to the page, so you can fill a form or open a menu before you comment. The hint in the corner shows the current mode. Press esc to return to commenting.

A signup form prototype in cueloop with a name and email typed in and the email field focused

In interact mode, typing goes to the focused field and the page validates it.

A pricing prototype in cueloop switched to yearly prices, with the pointer hovering the Org card

A click switches to yearly prices, and hovering lifts the card under the pointer.

Input Commenting (default) Interacting (i)
click comment on the element click the page
mouse move nothing hover the page
scroll wheel scroll the page scroll the page
typing types into the open comment types into the page
esc close the comment card return to commenting

What the page can do

The page runs in the rendering engine with its sandbox on. It is rendered from the Thread's copy of the HTML, not from the file on disk, and it has no network access. Images, fonts, and scripts must be inline in the file. The page cannot open new windows, download files, or ask for permissions such as the camera or location. A session closes after two hours.

Rendering engine

cueloop renders the page with one of two engines. Both keep the page sandboxed and offline.

The same signup form prototype rendered by Chrome on the left and WPE WebKit on the right
The same prototype rendered by Chrome (left) and WPE WebKit (right).
Chrome WPE WebKit
Platforms macOS and Linux Linux
First page open 105 ms 53 ms
Later page open 85 ms 54 ms
Cold start to first frame 430 ms 331 ms
Memory, idle 270 MiB 201 MiB
Memory, after pages open and close 280 MiB 279 MiB
CPU while scrolling, of one core 31% 48%

Medians of 10 runs per engine on one 8-core Linux machine, with Chrome 156 and WPE WebKit 2.54. Memory is the proportional set size of the engine's processes.

On Linux, cueloop uses WPE WebKit when it can start and falls back to Chrome. macOS uses Chrome. To pick one, set CUELOOP_BROWSER_ENGINE=chrome or CUELOOP_BROWSER_ENGINE=wpe.

WPE WebKit needs version 2.54 or newer with its development files, bubblewrap, and a C compiler, because cueloop builds a small helper against it on first use. Debian testing ships it; on older releases cueloop uses Chrome. On Debian:

sudo apt install libwpewebkit-2.0-dev bubblewrap xdg-dbus-proxy gcc pkg-config \
  libjson-glib-dev libcairo2-dev libpng-dev

The engine also needs unprivileged user namespaces, which some distributions restrict.