Search by

detain member since: Sep 13, 2013 · Transparency log

detain's packages

  • PHP

    sugarcraft/sugar-diff

    Unified-diff engine — LCS line diff, context hunks, GNU diff -u writer and scanner. Extracted from candy-code.

  • PHP

    sugarcraft/sugar-flexbox

    Terminal-cell layout utilities: FlexBox (CSS-flexbox-like responsive row/column layout), Table (sortable, filterable data table with column definitions) and a scrolling Viewport.

  • PHP

    sugarcraft/sugar-focus

    Focus-ring state machine — an ordered set of focusable regions with wrap-around Tab/Shift-Tab traversal for full-window TUI layouts. Dependency-free.

  • PHP

    sugarcraft/sugar-forms

    Foundation lib for form primitives (TextInput, TextArea, ItemList, Viewport, FilePicker, Field interface, Confirm, Form) extracted from sugar-widgets, with the interactive huh-style form engine folded in.

  • PHP

    sugarcraft/sugar-fuzzy

    Fuzzy string matching with scored matched indices — Smith-Waterman + Sahilm algorithms. Unblocks filter-highlighting UI across the ecosystem.

  • PHP

    sugarcraft/sugar-gallery

    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).

  • PHP

    sugarcraft/sugar-glow

    PHP port of charmbracelet/glow — Markdown CLI viewer / pager composing CandyShine + Viewport. 8 stock themes, word-wrap, OSC 8 hyperlinks.

  • PHP

    sugarcraft/sugar-image

    Image-to-cell renderer for terminals — PNG/JPEG/GIF/APNG/WebP decoded via ext-gd and rendered through the best available protocol: Sixel, Kitty, iTerm2, the chafa CLI, or Unicode text tiers (half/quarter block, character ramp, chafa-style symbol coverage).

  • PHP

    sugarcraft/sugar-input

    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.

  • PHP

    sugarcraft/sugar-log

    PHP port of charmbracelet/log — minimal, colorful leveled logging with structured human-readable output, text/JSON/logfmt formatters, and stdlog adapter.

  • PHP

    sugarcraft/sugar-markdown

    PHP port of charmbracelet/glamour — Markdown → ANSI renderer with word-wrap, OSC 8 hyperlinks, syntax highlighting, and 9 stock themes (ansi/plain/dark/light/notty/dracula/tokyo-night/pink/ascii).

  • PHP

    sugarcraft/sugar-mcp

    MCP client core — JSON-RPC 2.0 codec, newline-delimited stdio transport and initialize/tools protocol layer. Extracted from candy-code.

  • PHP

    sugarcraft/sugar-mcp-client

    MCP client core — JSON-RPC 2.0 codec, newline-delimited stdio transport and initialize/tools protocol layer. Extracted from candy-code.

  • PHP

    sugarcraft/sugar-metrics

    Telemetry primitives for SugarCraft / SugarSshServer — six instrument kinds (counter, gauge, histogram, up/down counter, async counter, async gauge) with pluggable backends (in-memory, StatsD UDP, Prometheus textfile, JSON stream, multi fan-out). Drop-in middleware for SSH session metrics.

  • PHP

    sugarcraft/sugar-mouse

    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.