Back to browse
KittyHTML – Render HTML/CSS as an inline image in your terminal

KittyHTML – Render HTML/CSS as an inline image in your terminal

by kkukshtel·May 27, 2026·2 points·0 comments

AI Analysis

●●SolidNiche GemBig Brain

Kitty protocol renders HTML in-terminal when w3m and links require browsers.

Strengths
  • Kitty graphics protocol enables true inline rendering without browser dependency
  • Direct LLM output pipeline: pipe HTML straight from Claude into terminal preview
  • Blitz parser handles CSS layout without external rendering engine
Weaknesses
  • Only works in kitty terminal, excludes most users on default terminals
  • CSS support limited compared to actual browser rendering
Target Audience

Terminal users, CLI tool builders, LLM workflow enthusiasts

Similar To

w3m · links · elinks

Post Description

Some of the "use html as an output format for LLMs" conversations of the last month inspired me to put together this package. The idea being, if we are outputting HTML, we maybe care less about the idea of HTML-in-browser and more because it's a nice document description format with convenient renderers (browsers).

But with things like kitty, I don't think we necessarily need to use a browser and can instead actually render HTML-described documents inline in the terminal itself. So here's kittyhtml.

You can pipe HTML to it and it renders the HTML+CSS inline in the terminal itself.

echo '<h1>hi</h1>' | kittyhtml

It can take raw HMTL, but also is a nice output target for invocations of claude -p.

claude -p "create a simple html page. return only the HTML and do not include markdown fences" | kittyhtml

Under the hood it's using https://github.com/DioxusLabs/blitz for the parsing/layout and then getting that rendered with kitty. So anything Bitz supports this supports.

As part of the npm package I ship an LLM skill that tells an LLM how to use this, but what I'm really ultimately aiming for here is to have this rendered inline in Claude Code. However, [CC doesn't yet support image protocols](https://github.com/anthropics/claude-code/issues/2266), but once it (inveitably?) does I would update the skill so that "create a plan in html and display it with kittyhtml" would have the plan (or whatever) rendered directly in your CC session.

Similar Projects

Developer Tools●●●●Gem

A CSS 3D Engine (no WebGL)

CSS-only 3D engine that renders OBJ files—same constraint-craft energy as X86CSS.

WizardryZero to OneRabbit Hole
rofko
802712d ago