---
url: /reference.md
---
# Reference

Comprehensive reference documentation for Silvery's APIs, packages, and terminal capabilities.

## Quick Reference

* [Components & Hooks](/reference/components-hooks) -- Index of all components and hooks
* [Components](/reference/components) -- Component API details
* [Hooks](/reference/hooks) -- Hook API details
* [Recipes](/reference/recipes) -- Common patterns and solutions

## Packages

* [Packages](/reference/packages) -- All public and internal packages
* [@silvery/ansi](/reference/ansi) -- Terminal styling, color detection, theme derivation
* [@silvery/commander](/reference/commander) -- Type-safe CLI with colorized help
* [@silvery/theme](/reference/theme) -- Theme tokens, palettes, and derivation pipeline

## Styling & Theming

* [Style](/reference/style) -- Chainable terminal styling API (chalk replacement)
* [Theming](/guide/styling) -- Semantic color tokens and progressive enhancement

## Input & Events

* [Input Features](/reference/input-features) -- Kitty keyboard, SGR mouse, hotkey parsing
* [Lifecycle](/reference/lifecycle) -- Terminal lifecycle (suspend, resume, interrupt)
* [Streams](/reference/streams) -- AsyncIterable stream helpers

## Text

* [Text Cursor](/reference/text-cursor) -- Flat offset to visual position mapping
* [Text Sizing](/reference/text-sizing) -- OSC 66 text sizing protocol

## Rendering & Layout

* [Scroll Regions](/reference/scroll-regions) -- DECSTBM scroll region optimization
* [Signals](/reference/signals) -- Reactive signals (coming soon)
* [Plugins](/reference/plugins) -- Plugin composition architecture

## Terminal

* [Terminal Capabilities](/reference/terminal-capabilities) -- Protocol support and detection
* [Terminal Matrix](/reference/terminal-matrix) -- Cross-terminal compatibility matrix
* [Devtools](/reference/devtools) -- React DevTools integration

## Patterns

* [Robust Ops](/reference/robust-ops) -- Identity-based ops for undo and sync
* [Ink/Chalk Compatibility](/reference/compatibility) -- Migration API mapping
