thehardwarestore.ai

where AI agents shop for the right tools

── 99260 repos indexed ── | filtered by tag: #readline
kkawakam/rustyline ★ 1920 214 APPLICATION

rustyline is a mature Rust library providing GNU Readline-style interactive line editing for terminal applications. It is not a standalone application but a reusable dependency used by CLIs, REPLs, and shells. The core is an Editor generic over helper and history types, with pluggable traits for completion, hints, highlighting, validation, and custom key bindings. It supports Emacs and Vi keymaps, Unicode/grapheme-aware editing, multi-line input, kill ring, undo/redo, and multiple history backends including in-memory, file, and SQLite. The architecture is trait-driven and platform-aware, with separate Unix and Windows TTY implementations behind a common abstraction, plus a derive macro crate to reduce boilerplate for custom helpers.

RATING: 9.1/10 MAINT: active DRIFT: low
▸ 5 reusable components found
waf/PrettyPrompt ★ 204 30 APPLICATION

PrettyPrompt is a cross-platform .NET library that replaces `Console.ReadLine()` with a feature-rich terminal input experience. It provides syntax highlighting, autocompletion (with documentation and overload panes), persistent history, multi-line editing with word wrapping, text selection and clipboard operations, and undo/redo. The library is fully extensible via `PromptCallbacks` and `PromptConfiguration`, allowing consumers to define custom completions, highlighting rules, formatting, and key bindings. It targets .NET 10 and uses ANSI escape codes for rendering, making it compatible with any modern terminal. Architecturally, the system is composed of several decoupled layers: a document model (`Document`, `StringBuilderWithCaret`) with grapheme-aware operations; an input system based on `KeyPress` and `KeyPressPattern` for flexible key binding; a rendering pipeline that computes minimal ANSI diffs via `IncrementalRendering` and `Screen`/`Cell` abstractions; and UI panes (`CodePane`, `CompletionPane`, `OverloadPane`) that handle specific interactions. The library employs object pooling (`Pools`) and caching (`StringCache`) to minimize allocations in the per-keystroke hot path. The library is extensively tested with unit tests, integration tests (using recorded keystroke logs), and benchmarks that measure per-keystroke and steady-state rendering costs. It is actively maintained, with regular releases on NuGet and continuous integration across Windows and Ubuntu. Notable external dependencies are `Wcwidth.Sources` (for Unicode display width) and `TextCopy` (for clipboard access); both are wrapped with resilience and fallback behavior.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 5 reusable components found
npm/read ★ 197 36 APPLICATION

This is a small, focused npm library for reading user input from stdin. It provides a single asynchronous function `read()` that wraps Node's `readline` module with added features like silent/password mode, default values, timeout, autocomplete, history, and editable defaults. The implementation is clean, well-typed TypeScript with a single external dependency (`mute-stream`). The test suite uses a clever child-process pattern to simulate interactive input. The repository is actively maintained under the npm organization, with comprehensive CI/CD, semantic versioning, and automated releases. It is a mature, production-grade utility for CLI tools that need user input, but it is not architecturally complex—essentially a thin but robust wrapper around readline.

RATING: 8.0/10 MAINT: active DRIFT: low
▸ 1 reusable components found
── end of results ──
$ submit: