Libraries tagged by termin
sugarcraft/sugar-testing
3318 Downloads
Test harness for SugarCraft programs — ProgramSimulator, scripted input, golden/snapshot assertions, VHS tape building, and graphics-stream decoding.
sugarcraft/sugar-style
4183 Downloads
Declarative styling and layout for terminal UIs, inspired by charmbracelet/lipgloss.
sugarcraft/sugar-spring
3546 Downloads
Damped spring physics for PHP — spring core mirrors charmbracelet/harmonica, extended with projectile simulation, easing/Bezier timing curves, spring chains, collections and reduced-motion snapping for spring-driven types; pure math, no terminal dependency.
sugarcraft/sugar-pty
4767 Downloads
PHP pseudo-terminal primitives (open / spawn / resize) inspired by creack/pty and charmbracelet/x/xpty for SugarCraft. Linux + macOS via FFI to libc, Windows via ConPTY.
sugarcraft/sugar-panels
3281 Downloads
Box-drawing layout engine — composes terminal content into horizontal and vertical panels with box-drawing borders, padding, and dynamic dimension calculation.
sugarcraft/sugar-overlay
3442 Downloads
Modal/overlay compositing for terminal UIs. Composite foreground content over a background at any position (Top/Right/Bottom/Left/Center) with optional cell (column/row) offsets, backdrop dimming, animated transitions, border chrome and click-zone hit-testing. Antecedent design: rmhubbert/bubbletea-overlay.
sugarcraft/sugar-mouse
3557 Downloads
Mouse support for terminal UIs: sentinel-tagged Mark/Scan/Get hit-testing primitives (ZoneClickTracker press/release dedup, Selection) plus the bubblezone-style Zones Manager layer with hover, drag, and multi-click trackers — both layers in one package.
sugarcraft/sugar-markdown
3499 Downloads
Markdown → ANSI renderer for PHP terminals — word-wrap, OSC 8 hyperlinks, syntax highlighting, 9 stock themes (notty aliases plain); originally inspired by charmbracelet/glamour.
sugarcraft/sugar-input
4769 Downloads
Terminal escape sequence decoder for keyboard (legacy, Kitty progressive protocol, xterm modifyOtherKeys) and mouse (X10, urxvt 1015, SGR 1006/1016), with typed terminal-reply draining. Provides the InputDriver interface and the EscapeDecoder implementation.
sugarcraft/sugar-image
3474 Downloads
Image-to-cell renderer for terminals — PNG/JPEG/GIF/APNG/WebP/BMP decoded via ext-gd and pure-PHP animated-container decoders and rendered through the best available protocol: Sixel, Kitty, iTerm2, the chafa CLI, or Unicode text tiers (half/quarter block, ASCII character ramp, chafa-style symbol coverage).
sugarcraft/sugar-gallery
7080 Downloads
Poster grids and rails for media TUIs — a 2-D virtualized PosterGrid with sparse range paging, a horizontal Rail carousel, and a PosterCard tile. Renderer-agnostic (holds pre-rendered poster cells).
sugarcraft/sugar-forms
3569 Downloads
Canonical form engine (port of charmbracelet/huh) and foundation lib for form primitives (TextInput, TextArea, ItemList, Viewport, FilePicker, Field interface, Confirm, Form); sugar-widgets re-exports it via 22 class_alias shims.
sugarcraft/sugar-focus
3539 Downloads
Focus-ring state machine — an ordered set of focusable regions with wrap-around Tab/Shift-Tab traversal for full-window TUI layouts. Dependency-free.
sugarcraft/sugar-constraints
4197 Downloads
Constraint-based greedy layout solver for terminal grids (deprecated Cassowary shim retained for compatibility)
sugarcraft/sugar-colorprofile
3749 Downloads
Terminal color profile detection and color degradation (TrueColor → ANSI256 → ANSI → ASCII), inspired by charmbracelet/colorprofile.