Forty-two libraries, one ecosystem.

Each library has its own composer package, README, examples, and PHPUnit suite. Pull just the ones you need — or grab the umbrella metapackage and get the lot.

MVC-style Model–Update–View runtime — Model / Msg / Cmd / Program. Cell-diff renderer saves SSH bandwidth.

Declarative styling + layout. Style, Border, Table\Table, Listing\ItemList, Tree\Tree, Layout::joinHorizontal/joinVertical, Layout::place, multi-layer Canvas, and Theme.

Cell-grid value objects — immutable Buffer (2-D cell grid) and Cell (rune/style/link/width). Shared foundation for all rendering, with minimal-repaint diffs via Buffer::diff().

Shared async vocabulary — CancellationToken, Subscriptions, AsyncOps helpers (withTimeout, withDeadline, cancellable, retry, debounce, throttle, all/race, onPending, singleFlight) + TTL async cache. Dependents: sugar-forms, sugar-vterm, candy-sql, candy-mail, candy-git-server, candy-codetime.

Damped spring physics + Newtonian projectile sim. The physics behind candy-flappy's bird and the fade/scale/slide animations sugar-widgets drives through it.

Self-contained Mark/Scan/Get mouse hit-testing + ZoneClickTracker for press/release deduplication, plus the bubblezone-style Zones Manager under SugarCraft\Mouse\Zones.

Seventeen components: TextInput, TextArea (dynamic-height), ItemList, Table (per-cell styleFunc), Tree, Viewport, FilePicker, Progress, Spinner, Cursor, Help, Key, Paginator, Scrollbar, Tabs, Stopwatch, Timer.

Sparkline, Bar, Line, Heatmap, Scatter, TimeSeries, Streamline, Waveline, OHLC, plus Sixel / Kitty / iTerm2 image rendering.

Form library (port of charmbracelet/huh) and foundation for the form primitives SugarWidgets re-exports — Note, Input, Confirm, Select, MultiSelect, Text, FilePicker, multi-page Groups, six themes. Form-level KeyMap override per binding.

Markdown → ANSI renderer. Word-wrap, OSC 8 hyperlinks, syntax highlighting, eight themes, custom themes via JSON.

Terminal UI building blocks — StatusLine, Banner, Section, Stage, HelpText, Frame, Logo, and themes.

SSH server middleware framework — Logger, Auth, RateLimit, and a terminal middleware that runs a full SugarCraft app in each session. OpenSSH ForceCommand handles the wire protocol.

Telemetry primitives — six instrument kinds (Counter, Gauge, Histogram, UpDownCounter, AsyncCounter, AsyncGauge), five backends (InMemory, JsonStream, StatsD, Prometheus textfile, Multi fan-out), SugarSshServer session middleware; the demo GIF shows the flagship showcase.php example.

Colorful leveled logger. Debug / Info / Warn / Error / Fatal with structured context, Text / JSON / Logfmt formatters, and sub-loggers.

Image-to-cell renderer — Sixel, Kitty, iTerm2, Unicode half-block; Picker facade; ext-gd.

ANSI/GIF animation toolkit — ext-gd decode, cell-grid downsample, solid / luminance-ramp presets, .ansi art playback. Viewer CLI: candy-gifview.

Terminal video player — decodes mp4 (and more) on the fly and renders to ASCII / ANSI / truecolor half-block / sixel / kitty.

Terminal color profile detection + ANSI / ANSI256 / TrueColor conversion. StandardColors and ProfileWriter.

ANSI escape-sequence parser + state machine (SGR, cursor, erase, DEC modes). Feeds into SugarVterm for cell-grid rendering.

In-memory virtual terminal emulator. ANSI byte stream → cell grid + cursor + mode state.

Pseudo-terminal primitives for Linux, macOS & Windows (ConPTY) — PtySystemFactory → Contract master/slave: open / spawn / read / write / resize / size, Child lifecycle, SignalForwarder (SIGWINCH → resize).

Focus-ring state machine — ordered focusable regions with a single focused member + wrap-around Tab/Shift-Tab traversal. Dependency-free.

Poster grids & rails for media TUIs — a 2-D virtualized, sparse PosterGrid with owner-driven range paging, a Rail carousel, and a renderer-agnostic PosterCard tile.

Tree/list view with box-drawing prefixes, cursor navigation, word-wrap, and filter-as-you-type.

Constraint-based layout solver — a deterministic greedy solver (GreedySolver) behind a one-method LayoutSolver interface; the deprecated CassowarySolver name delegates to it. Swap solver classes without touching call-sites.

H/V panels with flex/natural sizing, borders, nesting, and stateful delta rendering.

Terminal overlay compositor. Composites Veil overlays with backdrop dimming, z-stack ordering, positioning, and click-outside hit-testing.

Navigation breadcrumbs. Mutable NavStack with explicit push/pop, width-aware breadcrumbs, and substring filter.

Dashboard TUI library — column grid layout, framed panels, status bar, tabs, and more.

Fuzzy finder overlay. Type to filter a list, arrow keys to select, Enter to confirm. Renders over your app's view string while the background keeps updating.

Terminal escape sequence decoder — legacy keys, Kitty keyboard, SGR/urxvt/X10 mouse, focus, bracketed paste. The missing input layer for PHP TUI.

Fuzzy string matching with scored matched indices — Smith-Waterman + Sahilm algorithms. Extracted from sugar-forms; unblocks filter-highlighting UI.

FlexBox layout engine + simple sort/filter table. Ratio-based sizing, gap, justify, align, per-column styling.

Floating notification overlays. Error / Warning / Info / Success types, configurable position and host-driven auto-dismiss.

DatePicker, Calendar and TimePicker widgets with min/max date constraints, locale-ready day names (English ships today), ANSI rendering; weeks start Monday (firstDayOfWeek is not configurable).

Interactive prompts — Text, Confirm, Selection, MultiSelect, Textarea. State-machine model, no external readline dependency.

Full-featured interactive data table — column definitions, StyledCell ANSI formatting, pagination, frozen rows and columns.

Unified-diff engine — LCS line diff, context hunks, GNU diff -u writer and line-number scanner.

MCP client core — JSON-RPC 2.0 codec, stdio transport with bounded child lifecycle, initialize/tools handshake, tool narrowing.

gitignore-style ignore matching over injected file contents — negation, anchoring, nested files, and a backtrack-free matcher that fails closed on hostile patterns.

Phar self-update engine and launch-time update notice — release selection, sha256 + Ed25519 verification before the swap, one-shot rollback, Windows relaunch-dance.

Test harness for SugarCraft apps — ProgramSimulator, golden-file assertions, snapshot helpers. Deterministic Model–Update–View testing down to the byte.