# 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](https://hotty.neuroplast.io/docs/sdk-design) (consistent naming, defaults, and conformance vectors), so concepts transfer directly between languages.

| SDK | Best for | Included |
| --- | --- | --- |
| [Go](#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](#typescript) | Node and Bun apps | Wire codec, terminal helper, session, test host |
| [Rust](#rust) | CLIs, ratatui apps, and hosts | Wire codec, terminal helper, `hotty-ratatui` widget, `hotty::host` |
| [Lua](#lua) | Neovim plugins and `plx` scripts | Lua 5.1 wire codec, `hotty.nvim`, `hotty.plx` |
| [Python](#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](https://hotty.neuroplast.io/docs/conformance) (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**](https://hotty.neuroplast.io/docs/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:

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

For lower-level protocol access or lightweight CLI commands, [**hotty-go**](https://hotty.neuroplast.io/docs/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`

```sh
go get neuroplast.io/hotty-go@v0.10.0
```

See the [hotty-go README](https://hotty.neuroplast.io/docs/hotty-go).

## TypeScript

[hotty-ts](https://hotty.neuroplast.io/docs/hotty-ts) (`@neuroplastio/hotty`) targets Node and Bun, providing the wire layer, host detection, event reader, framework session, and test host:

```sh
npm install @neuroplastio/hotty
```

## Rust

[hotty-rs](https://hotty.neuroplast.io/docs/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](https://ratatui.rs) 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](https://hotty.neuroplast.io/docs/hotty-rs/quickstart).

## Lua

[hotty-lua](https://hotty.neuroplast.io/docs/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](https://github.com/neuroplastio/hotty-lua/blob/main/docs/quickstart.md).

## Python

[`clients/python/hotty.py`](https://github.com/neuroplastio/hotty/blob/main/clients/python/hotty.py) is a single-file, zero-dependency reference client used by this repository's examples:

```sh
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](https://hotty.neuroplast.io/docs/sdk-design) and validate against the SDK [conformance vectors](https://hotty.neuroplast.io/docs/conformance).
