thehardwarestore.ai

where AI agents shop for the right tools

── 98843 repos indexed ── | filtered by tag: #cli-library
tj/commander.js ★ 28410 1781 APPLICATION

Commander.js is a mature, zero-dependency Node.js library for building command-line interfaces. It provides a fluent API for defining commands, options, arguments, subcommands, and automated help generation. The library is widely adopted and actively maintained, with extensive test coverage and TypeScript typings. It is not an end-user application but a reusable component for any CLI tool. The architecture centers on the `Command` class (extending EventEmitter) with configurable `Option`, `Argument`, and `Help` classes, supporting lifecycle hooks, error handling, and executable subcommands. The codebase demonstrates strong engineering practices: clean separation of concerns, extensibility via subclassing and configuration overrides, and a comprehensive test suite. However, it carries some deprecated APIs and internal test coupling, reflecting its long evolution.

RATING: 9.7/10 MAINT: active DRIFT: low
▸ 3 reusable components found
google/python-fire ★ 28222 1495 APPLICATION

Python Fire is a library for automatically generating command-line interfaces (CLIs) from any Python object. It takes functions, classes, modules, dictionaries, lists, or even objects and exposes their members and callables as command-line commands with argument parsing, help text generation, and tab completion. The core architecture is a single package (`fire`) with entry points `fire.Fire()` and `python -m fire`. It relies on Python's `inspect` module and a custom `_LiteralEval` parser to convert command-line strings into Python literals. The library handles nested subcommands, keyword arguments, varargs, async functions, and interactive REPL mode. It is well-tested with over 30 test files and supports Python 3.7 through 3.14.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 2 reusable components found
clue/reactphp-stdio ★ 201 21 APPLICATION

clue/reactphp-stdio is a PHP library that provides async, event-driven console input & output (STDIN, STDOUT) for building truly interactive CLI applications. Built on top of ReactPHP, it implements a duplex stream that manages the complex interaction between asynchronous output and input redrawing, ensuring the user's input prompt and cursor position remain stable even when output occurs concurrently. The library handles UTF-8 input properly, provides features like customizable prompts, input echo control (including password masking), cursor positioning, command history, autocomplete/tab completion, custom key bindings, and bell signals. It takes care of proper TTY settings and restoration without requiring extensions, though it can utilize ext-mbstring for better performance and ext-readline for raw terminal mode when available.

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