← Hacker News

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

Hacker News · kkukshtel · May 27, 2026
KittyHTML is a package that renders HTML and CSS as inline images directly in terminal emulators using the kitty protocol. The tool accepts raw HTML input or serves as an output target for Claude command-line invocations, utilizing the Blitz rendering engine for parsing and layout. The creator aims to eventually integrate KittyHTML with Claude Code to display rendered HTML plans and documents directly within coding sessions once image protocol support becomes available.

Detailed Analysis

KittyHTML is a newly released developer tool that enables HTML and CSS content to be rendered as inline images directly within terminal environments, using the Kitty terminal graphics protocol. The project, shared as a Show HN post, accepts piped HTML input and renders it visually in-terminal without requiring a browser, leveraging the Blitz rendering engine from DioxusLabs for HTML parsing and layout. The developer explicitly positions it as an output target for Claude's command-line interface, demonstrating its integration with the `claude -p` flag to generate and immediately render HTML documents produced by Anthropic's model.

The tool emerges from a broader community conversation about using HTML as a structured output format for large language models. Rather than treating HTML as browser-destined markup, the developer reframes it as a convenient document description language with well-understood rendering semantics — a perspective that has gained traction as LLMs increasingly generate rich, formatted content. The npm package ships with an embedded "LLM skill," a metadata artifact that instructs a language model on how to invoke kittyhtml, signaling a design philosophy oriented around AI-native tooling where software is built not just for human operators but for autonomous agent use.

The developer's stated end goal is integration with Claude Code, Anthropic's agentic coding environment, which would allow Claude Code sessions to render HTML-described plans, outputs, or visualizations inline during an active session. This ambition is currently blocked by a documented limitation — Claude Code does not yet support image display protocols, as referenced in an open GitHub issue on the anthropics/claude-code repository. The developer treats this as a near-term rather than permanent constraint, suggesting confidence that terminal image protocol support will eventually arrive in Claude Code.

This project reflects a meaningful trend in AI tooling: the construction of richer, more visually expressive output pipelines for agentic AI systems. As models like Claude increasingly function as autonomous agents producing complex artifacts, the ergonomics of how those artifacts are displayed and reviewed become important engineering problems. Current terminal-based AI interfaces are largely text-bound, and tools like KittyHTML represent early-stage infrastructure work aimed at closing the gap between the visual richness of browser-rendered output and the developer workflows that remain centered in the terminal.

The project also illustrates the growing ecosystem of third-party tooling being built around Anthropic's Claude interfaces, particularly Claude Code. Developers are actively extending and wrapping Claude's capabilities with specialized rendering layers, skill definitions, and protocol bridges, treating Claude's CLI not as a finished product but as a composable primitive. This pattern of community-driven augmentation around foundation model interfaces mirrors dynamics previously seen with tools like the OpenAI API and GitHub Copilot, where third-party developers rapidly build niche but high-utility integrations before official platform support catches up.

Read original article →