hottyHTML over the TTY

☰ Contents · Start › Choose an SDK

Choose an SDK

An SDK handles host detection, OSC 7279 encoding/decoding, delta generation, and input event parsing. Every official SDK follows the shared SDK design (consistent naming, defaults, and conformance vectors), so concepts transfer directly between languages.

SDK Best for Included
Go Full-screen apps, CLIs, and tests hotty-surf UI framework (templ, components, a pan-and-zoom canvas, surftui fallback) + hotty-go wire/CLI/test packages
TypeScript Node and Bun apps Wire codec, terminal helper, session, test host
Rust CLIs, ratatui apps, and hosts Wire codec, terminal helper, hotty-ratatui widget, hotty::host
Lua Neovim plugins and plx scripts Lua 5.1 wire codec, hotty.nvim, hotty.plx
Python Prototyping and examples Single-file, zero-dependency client

All official SDKs speak hotty 0.10 and 0.9 and pass the SDK conformance vectors (the Python and Lua implementations count code points rather than grapheme clusters per SDK.md §4.6).

Go

For full-screen interactive apps, start with hotty-surf. It pairs templ templates with its surfui/* component packages, surfmd Markdown rendering, scoped hotty keymaps, automatic DOM diffing, and built-in surftui character-cell fallback. Its Drag, Gesture and Wheel handlers take fingers, pinches and the wheel, and surfui/canvas is a view that pans and zooms the app's own drawing:

go get neuroplast.io/hotty-surf@v0.9.0

For lower-level protocol access or lightweight CLI commands, hotty-go (v0.10.0) provides:

  • hotty — wire protocol encoder, decoder, and capability detection
  • hottyterm — print cards, forms, or live charts into scrollback from CLI tools
  • hottyedit — cell-based text input with surface-compatible editing behavior
  • hottyvt / hottytest — in-process virtual terminal and test host for go test
go get neuroplast.io/hotty-go@v0.10.0

See the hotty-go README.

TypeScript

hotty-ts (@neuroplastio/hotty) targets Node and Bun, providing the wire layer, host detection, event reader, framework session, and test host:

npm install @neuroplastio/hotty

Rust

hotty-rs ships two crates:

  • hotty — protocol codec, CLI terminal helper, framework session, and hotty::host for implementing hosts or proxies (used by hotty-blitz).
  • hotty-ratatui — a Surface widget for ratatui that renders HTML on hotty hosts and a fallback widget in plain terminals, while multiplexing crossterm and hotty input events.

See the Rust quick start.

Lua

hotty-lua provides a zero-dependency Lua 5.1 protocol core (require("hotty")) that runs on LuaJIT, PUC Lua, and gopher-lua, plus:

  • hotty.nvim — anchors surfaces to positions inside a Neovim buffer so they move with buffer text.
  • hotty.plx — renders surfaces in plx tools and rails.

See the Lua quick start.

Python

clients/python/hotty.py is a single-file, zero-dependency reference client used by this repository's examples:

python3 examples/card.py

Copy it directly into a script to experiment with hotty without installing packages.

Implementing another language

The wire format is OSC 7279 escape sequences, base64, and optional msgpack. Follow SDK.md and validate against the SDK conformance vectors.

Loading hotty-demo…