thehardwarestore.ai

where AI agents shop for the right tools

── 99527 repos indexed ── | filtered by tag: cli
jestjs/jest ★ 45465 6728 APPLICATION

This is the Jest monorepo, the widely adopted JavaScript testing framework. It is a CLI tool and library that discovers, executes, and reports on tests, with features like mocking, snapshot testing, code coverage, and parallel execution. The codebase is organized as a monorepo with dozens of packages covering the full test lifecycle: configuration loading, test discovery (haste map), module execution in a sandboxed runtime, assertion matchers, reporters, and watch mode. The architecture is modular, with packages separated by responsibility (jest-core, jest-circus, jest-runtime, jest-worker, etc.), all built in TypeScript. The entry point is `packages/jest-cli/bin/jest.js`, and the main orchestration happens in `packages/jest-core/src/cli/index.ts`.

RATING: 9.4/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
p-e-w/heretic ★ 34570 3869 APPLICATION

Heretic is a command-line tool that automatically removes censorship (safety alignment) from transformer-based language models without expensive post-training. It implements an advanced form of directional ablation (abliteration) combined with a TPE-based parameter optimizer (Optuna) to find high-quality ablation parameters that minimize refusals while preserving the original model's capabilities. The tool supports dense, MoE, hybrid, and multimodal architectures, and can produce decensored models that rival human-crafted abliterations. The architecture is a monolithic Python application built on PyTorch, Hugging Face Transformers, and PEFT. It features a plugin system for extensible scorers (e.g., keyword rate, KL divergence, benchmark scores) and modifiers (e.g., standard abliteration, Arbitrary-Rank Ablation). The workflow involves loading a model, computing residual directions from good/bad prompt datasets, running multi-objective optimization trials to tune ablation parameters, and exporting the modified model as a merged full model or LoRA adapter. The tool also includes comprehensive reproducibility support, allowing others to exactly reproduce generated models. Key entry points are the `heretic` CLI command (defined in `src/heretic/main.py`), which orchestrates the entire pipeline. The codebase demonstrates strong engineering practices: extensive type hints, pydantic-based configuration with CLI/env/TOML sources, a well-designed plugin contract, and thorough testing for cross-platform reproducibility. External dependencies include PyTorch, Transformers, Accelerate, bitsandbytes, Optuna, PEFT, Hugging Face Hub, and several others, all pinned via uv.lock.

RATING: 9.4/10 MAINT: active DRIFT: low
▸ 1 reusable components found
tqdm/tqdm ★ 31352 3219 APPLICATION

tqdm is a fast, extensible progress bar library for Python and CLI. It provides a simple way to add progress meters to loops, with support for multiple frontends including console, Jupyter notebooks, matplotlib GUI, Tkinter, and rich. The core implementation in `tqdm/std.py` is dependency-free and optimized for low overhead (~60ns per iteration). It features smart algorithms for predicting remaining time and skipping unnecessary display updates. The library integrates with pandas, keras, dask, asyncio, and concurrent.futures. The CLI mode allows piping data through tqdm for progress monitoring. The codebase is well-structured with clear separation of concerns: core logic in `std.py`, frontends in separate modules (`notebook.py`, `gui.py`, `tk.py`, `rich.py`), and integrations in `contrib/`. Extensive test suite covers performance, correctness, and edge cases. The project is actively maintained with regular releases and CI.

RATING: 9.4/10 MAINT: active DRIFT: low
▸ 5 reusable components found
danielgatis/rembg ★ 25039 2438 APPLICATION

Rembg is a production-grade tool for removing image backgrounds, usable as a Python library, CLI, HTTP server, or Docker container. It wraps multiple ONNX-based segmentation models (U2Net, BiRefNet, SAM, BRIA-RMBG, etc.) and provides several cutout strategies: naive, alpha matting, color decontamination, and ViTMatte refinement. The architecture is modular: a session abstraction handles model download and inference, while the `remove()` function in `rembg/bg.py` orchestrates preprocessing, mask prediction, and post-processing. The CLI offers subcommands for single files (`i`), batch processing (`p`), HTTP serving (`s`), binary stream input (`b`), model download (`d`), and legacy migration (`m`). The HTTP server uses FastAPI with a Gradio UI and includes security measures like DNS rebinding protection. The codebase is well-tested, with synthetic fixtures for color decontamination and integration tests using perceptual hashing. It demonstrates strong engineering practices: idempotent migration, session caching, and careful handling of edge cases like oversized uploads and failed alpha matting convergence.

RATING: 9.4/10 MAINT: active DRIFT: low
▸ 5 reusable components found
johnkerl/miller ★ 10041 244 APPLICATION

Miller (mlr) is a command-line data processing tool for structured text formats including CSV, TSV, JSON, JSON Lines, YAML, DKVP, and others. It operates as a streaming pipeline: input records are read from files or stdin, processed through a chain of transformer verbs (e.g., cut, sort, join, stats1, put, filter), and written to output in any supported format. The tool includes a domain-specific language (DSL) for record-level transformations, with support for user-defined functions, subroutines, loops, and higher-order functions. Miller is designed for performance, using Go channels for concurrent streaming, batch processing, and a slab allocator for efficient memory use. The architecture is a monolithic CLI application written in Go with no external runtime dependencies. Key entry points include the main binary (cmd/mlr/main.go), the entrypoint dispatcher (pkg/entrypoint), and the terminal subcommands (help, repl, script, regtest, mcp). The codebase is organized into packages for input readers, output writers, transformers (verbs), DSL parsing and execution, CLI flag handling, and a core value type system (Mlrval). Miller also provides an MCP (Model Context Protocol) server for AI agent integration, shell completion scripts, and a REPL for interactive use. Miller is not a research project; it is a production-grade data munging tool comparable to awk, sed, cut, join, and sort but for name-indexed data. Its primary data flows involve reading heterogeneous records, applying transformations via verbs or DSL expressions, and writing results. The tool handles compressed files, in-place editing, and output redirection to files or pipes.

RATING: 9.4/10 MAINT: active DRIFT: low
▸ 5 reusable components found
google/pprof ★ 9299 681 APPLICATION

pprof is a mature, production-grade profiling visualization and analysis tool for Go, C++, Java, and other languages that export profiles in the pprof protobuf format. It operates as both a command-line tool and an interactive web server, allowing users to inspect CPU, memory, contention, and goroutine profiles. The core architecture is a modular Go application: the `driver` package orchestrates fetching, symbolization, merging, and report generation; the `profile` package provides a standalone library for reading, writing, and manipulating profiles; the `graph` package builds weighted directed call graphs; and the `report` package outputs a variety of formats including text, SVG dot graphs, HTML flame graphs, annotated source, disassembly, and more. External dependencies include binutils (addr2line, nm, objdump) for local symbolization, Graphviz (dot) for graph rendering, and optionally Chrome for browser tests. The system supports profile comparison, filtering by tags or sample labels, and can symbolize using local binaries or remote symbolz services. The profile package is designed for reuse as a standalone library, making pprof useful both as a tool and as a data processing foundation for other profiling tooling.

RATING: 9.4/10 MAINT: active DRIFT: low
▸ 5 reusable components found
TypeStrong/typedoc ★ 8451 779 APPLICATION

TypeDoc is a sophisticated documentation generator for TypeScript projects. It parses TypeScript source code using the TypeScript compiler API, extracts JSDoc/TSDoc comments, and produces both JSON model serializations and fully-featured HTML documentation sites with search, navigation, themes, and internationalization. The system operates as a CLI tool and a programmable library, featuring a plugin architecture with converter plugins, renderer plugins, and serialization components that hook into a well-defined event lifecycle. The architecture is modular: a converter transforms the TypeScript AST into an internal reflection model, the renderer produces output via themes and routers, and a serialization layer supports JSON round-tripping for caching and merging. The codebase demonstrates advanced TypeScript patterns including a custom JSX factory for rendering, a type model hierarchy with a visitor pattern, a comprehensive options system with declarative definitions and multiple readers, and a stable event system. There are no data/research elements; this is a pure application tool.

RATING: 9.4/10 MAINT: active DRIFT: low
▸ 4 reusable components found
mikel-brostrom/boxmot ★ 8314 1918 APPLICATION

BoxMOT is a production-grade multi-object tracking (MOT) library providing a unified Python and C++ runtime for a dozen trackers (ByteTrack, BoT-SORT, OC-SORT, DeepOCSort, StrongSORT, HybridSORT, BoostTrack, OccluBoost, SFSORT, EagerMOT, MAF-HDA), pluggable detectors (Ultralytics YOLO, YOLOX, RT-DETR), ReID appearance encoders, and segmentation/mask-guidance backends (SAM, EdgeTAM). The codebase is structured as an installable Python package with a Click CLI (boxmot track|eval|tune|materialize|train-reid|export|install|research), a FastAPI tracking service, immutable Parquet-based dataset materialization, Kalman filter calibration, Optuna/Hyperopt/Ray Tune hyperparameter tuning, and MOT/KITTI evaluation harnesses. Native C++ implementations of the trackers expose a versioned C ABI loaded through ctypes, with Python/native parity tests. Architecturally, BoxMOT relies on lazy component registries to defer heavy optional imports, protocol-based contracts (Detector, Segmentor, AppearanceEncoder), frozen dataclass configs, and shared tracker infrastructure for association, camera motion compensation (CMC), and Kalman filtering. The evaluation and materialization subsystems are the most sophisticated parts: staged builds with content fingerprints and resume state, row-group-pruned Parquet readers, and caching layers with provenance. The repository is heavily tested (hundreds of unit, CI smoke, performance, and native ABI tests) and ships with GitHub Actions CI/CD, Docker targets, and manylinux wheel builds. The project is hybrid: its dominant character is an actively maintained software library/application, but it contains a substantial research component — ReID model training recipes, ablation studies, GEPA-based code evolution, benchmark experiments (MOT17, MOT20, KITTI-MOTS, DanceTrack, SportsMOT), and CMC/Kalman calibration analysis. These research workflows lean on the same materialization and evaluation infrastructure and are exposed as first-class CLI modes. Maintenance is active (recent commits, release and benchmark CI, funded sponsor) and technical drift is low overall; the pinned OpenCV version is intentional for detection reproducibility, and the primary risks are the large dual Python/C++ tracker surface and pinned upstream GitHub assets.

RATING: 9.4/10 MAINT: active DRIFT: low
▸ 5 reusable components found
AsamK/signal-cli ★ 4991 465 APPLICATION

signal-cli is a comprehensive command-line interface for the Signal messaging protocol, implemented primarily in Java (with a supplementary Rust JSON-RPC client). It operates as both an interactive CLI and a persistent daemon, exposing three API surfaces: standard CLI (argparse4j), JSON-RPC over Unix/TCP/HTTP sockets, and D-Bus. The core is a reusable library (`libsignal-cli`) that encapsulates Signal's cryptographic protocols (pre-keys, sender keys, end-to-end encryption, storage sync) against the Signal network. The daemon supports multi-account management, numberless (ACI-based) accounts, and device linking. Features include sending/receiving messages with attachments, stickers, polls, stories, reactions, voice/video calls (via an external tunnel binary), and full group management (v1/v2, invite links, permissions, bans). Persistence uses SQLite with a versioned migration scheme and HikariCP pooling. The architecture follows a layered pattern: entry commands → helper classes (business logic) → storage stores → network dependencies. The codebase is well-structured with clear separation of concerns, extensive unit tests, and reproducible build support (Docker, GraalVM native-image, Gradle).

RATING: 9.4/10 MAINT: active DRIFT: low
▸ 6 reusable components found
Codeception/Codeception ★ 4856 1276 APPLICATION

Codeception is a PHP testing framework that supports BDD-style tests (Cept, Cest, Gherkin) and unit tests (PHPUnit). It provides a CLI tool (`codecept`) for running tests, generating test files, managing configuration, and producing reports (HTML, JUnit, coverage). The architecture is event-driven, with subscribers for lifecycle events, and modular through extensions and helpers. It includes features like retries, conditional assertions, snapshots, data providers, dependency injection, and code coverage integration. The framework is designed for acceptance, functional, and unit testing, and can be used both as a library and a standalone CLI application.

RATING: 9.4/10 MAINT: active DRIFT: low
▸ 8 reusable components found
rfjakob/gocryptfs ★ 4597 300 APPLICATION

gocryptfs is a production-grade, FUSE-based encrypted overlay filesystem written in Go. It transparently encrypts file contents and filenames on the fly, supporting both forward mode (encrypting a plaintext directory) and reverse mode (presenting an encrypted view of a plaintext directory). The system uses multiple cryptographic backends (AES-GCM, AES-SIV, XChaCha20-Poly1305) with optional OpenSSL hardware acceleration, HKDF key derivation, and scrypt-based password hashing. It provides a rich CLI with subcommands for mounting, initializing filesystems, changing passwords, filesystem checking, and benchmarking. The architecture is a monolithic CLI tool that mounts a FUSE filesystem, with internal packages for content encryption, filename encryption (EME), safe syscall wrappers, and a control socket for path encryption/decryption. The codebase demonstrates strong security practices (O_NOFOLLOW, *at syscalls, memory wiping) and includes an extensive test suite with backward compatibility testing against multiple filesystem versions.

RATING: 9.4/10 MAINT: active DRIFT: low
▸ 4 reusable components found
selenide/selenide ★ 1910 606 APPLICATION

Selenide is a mature, fluent Java library for browser automation, built on top of Selenium WebDriver. It provides a concise API for writing UI tests with automatic waiting, natural language assertions, and built-in support for file downloads, screenshots, and proxy interception. The library is modular, with optional integrations for mobile testing (Appium), remote grids (Selenium Grid, Selenoid, Moon), video recording, and a CLI/MCP server for AI-driven browser control. The core architecture uses a command pattern for element actions, a composable condition framework for assertions, and a plugin system via Java ServiceLoader for extensibility. The repository also includes a standalone CLI tool and a Model Context Protocol (MCP) server that expose browser automation capabilities to AI agents and terminal users, generating Selenide Java code from recorded interactions.

RATING: 9.4/10 MAINT: active DRIFT: low
▸ 5 reusable components found
ollama/ollama ★ 182015 18070 APPLICATION

Ollama is a local LLM serving platform written in Go. It provides a REST API (OpenAI-compatible), CLI, TUI chat, and desktop application for running large language models locally. The system supports multiple inference backends: llama.cpp (CPU/CUDA/ROCm/Vulkan) and MLX (Apple Silicon). It includes a model conversion pipeline from HuggingFace safetensors to GGUF format, GPU hardware discovery, and an agent framework with tool execution (bash, file operations, web search). The architecture is a monolith with subprocess management for inference backends. Key entry points include the CLI (main.go), HTTP server (server/routes.go), runner binary (cmd/runner/main.go), and desktop UI (app/ui/app/). The codebase is actively maintained with extensive test coverage and support for dozens of model architectures. While primarily an application, it has significant data/research components in model conversion, tokenization, and speculative decoding research.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 5 reusable components found
jesseduffield/lazygit ★ 82851 3057 APPLICATION

Lazygit is a full-featured terminal user interface (TUI) for Git, written in Go. It provides an interactive, keyboard-driven interface for common Git operations such as staging, committing, branching, rebasing, merging, stashing, cherry-picking, bisecting, and managing worktrees and submodules. The application is built on a custom fork of the gocui library (itself based on tcell) and features a modular architecture with separate packages for Git command execution, UI contexts, controllers, helpers, and presentation logic. It supports extensive customization through YAML configuration, including custom commands, keybindings, themes, and diff renderers. Lazygit also includes a comprehensive integration test suite that simulates real user interactions against actual Git repositories, ensuring reliability across a wide range of workflows.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 10 reusable components found
rclone/rclone ★ 60136 5485 APPLICATION

rclone is a production-grade command-line program for synchronizing files and directories to and from over 60 cloud storage providers (S3, Google Drive, Dropbox, Azure Blob, etc.) and local filesystems. It implements a clean, modular architecture centered on the `fs.Fs` and `fs.Object` interfaces, which all backends implement. The core library (`fs/`) provides abstractions for configuration, hashing, filtering, pacing, accounting, and remote control (RC API). The `cmd/` package contains all CLI subcommands (sync, copy, mount, serve, bisync, etc.), while `vfs/` provides a virtual filesystem layer used by FUSE mounts and protocol servers (SFTP, NFS, WebDAV, S3-compatible, Docker volume). The system is designed for reliability with retry logic, bandwidth limiting, checksum verification, and extensive integration testing. Key entry points include `rclone.go` (main), the Cobra command tree in `cmd/`, and the RC HTTP server (`fs/rc`). Data flows involve listing source and destination directories, comparing files by size/modtime/hash, and streaming transfers with optional encryption, compression, and chunking. External dependencies include cloud SDKs (AWS, Google, Azure, etc.), FUSE libraries (bazil, go-fuse), compression libraries (klauspost/compress, mholt/archives), and authentication libraries (OAuth2, JWT). The codebase is well-structured with extensive unit and integration tests, and many reusable utility libraries (pacer, encoder, batcher, configmap, hash registry) that can be extracted for other Go projects.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 5 reusable components found
cypress-io/cypress ★ 51045 3650 APPLICATION

Cypress is a comprehensive end-to-end (E2E) and component testing framework for web applications. It operates as a monorepo containing a CLI (cli), a Node.js server (packages/server), a browser automation driver (packages/driver), and an Electron-based desktop application (packages/app). The system automates browser interactions by injecting a JavaScript driver into the Application Under Test (AUT), communicating via Socket.io and a custom HTTP proxy for network interception. It supports multiple frontend frameworks (React, Vue, Angular, Svelte) and bundlers (Webpack, Vite) through dedicated adapter packages. The architecture separates concerns between the test runner (CLI/App), the execution engine (Server/Driver), and the cloud integration layer. Data flows from the user's test specs through the CLI to the server, which launches browsers and executes commands. Results are streamed back to the UI or uploaded to Cypress Cloud via GraphQL. The codebase demonstrates high engineering standards with extensive TypeScript usage, complex build tooling (V8 snapshots, Packherd), and a robust system test suite (system-tests) that validates the framework itself.

RATING: 9.3/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
docker/compose ★ 38279 5847 APPLICATION

Docker Compose is a CLI tool for defining and running multi-container Docker applications. It reads compose files (YAML) describing services, networks, and volumes, then orchestrates their lifecycle (create, start, stop, rebuild, scale, etc.) against the Docker Engine API. The architecture is a Go CLI built with cobra, backed by a service layer (pkg/compose) that implements a reconciliation engine: it compares desired state (from the compose project) with observed state (live Docker resources) and produces a DAG of atomic operations executed concurrently. It supports remote compose files via Git and OCI registries, a provider extension model (external binaries manage services via JSON-over-stdio), file watching for hot-reload, and a dry-run mode. The codebase is well-structured with extensive unit and e2e tests, a public Go SDK (pkg/api), and integration with Docker Desktop. Key external dependencies include the Docker Engine API, compose-spec/compose-go for project loading, and OCI distribution libraries for publishing.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 6 reusable components found
markedjs/marked ★ 37219 3741 APPLICATION

marked is a high-performance Markdown parser and compiler written in TypeScript, designed for speed and extensibility. It converts Markdown text into HTML, supporting the CommonMark specification and GitHub Flavored Markdown (GFM) extensions such as tables, task lists, strikethrough, and autolinks. The library is used both as a Node.js package (ESM and UMD builds) and as a command-line tool (bin/marked). Its architecture is modular, consisting of a Lexer (tokenization), Parser (AST construction), Renderer (HTML output), and an extension system via Hooks and custom tokenizers. The core entry point is the `marked()` function, which accepts a Markdown string and options, and returns HTML. The library also exposes a `Marked` class for more control, including async parsing, token walking, and plugin integration. marked does not sanitize output HTML, leaving XSS prevention to downstream consumers. The project includes an extensive test suite with over 600 CommonMark spec examples, GFM spec tests, and custom regression/performance tests (including ReDoS mitigation). The CLI supports stdin, file input, and config files, making it suitable for scripting and build pipelines.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 2 reusable components found
jdx/mise ★ 34837 1470 APPLICATION

mise is a unified CLI tool for managing development environments. It combines tool version management (like asdf), environment variable injection, task running, dotfiles management, system package bootstrapping, and OCI image building into a single command-line interface. The system is implemented in Rust as a workspace of multiple crates, with a plugin system based on Lua (vfox) and support for many backends (asdf, aqua, npm, cargo, pipx, Homebrew, etc.). It also includes supply-chain security features via Sigstore attestation verification and packslip signing. The architecture is a modular Rust CLI with async I/O (tokio), a plugin system for tool backends, a configuration layer that merges TOML files with environment variables, and a task runner with dependency graphs and file watching. Key entry points include the main binary (src/main.rs), CLI subcommands in src/cli/, backend implementations in src/backend/, and the Lua plugin runtime in crates/vfox/. External dependencies include GitHub API, npm registry, aqua registry, Sigstore TUF repositories, and various system package managers (apt, brew, dnf, etc.). The codebase demonstrates high craftsmanship with clean abstractions (Backend trait, TaskFileProvider, SingleReport), reusable utility crates (mise-util, mise-dotenv, mise-cache-core), and extensive testing (unit, integration, e2e). Notable subsystems include an interactive TOML editor with undo support, a comment-preserving document parser, a remote cache protocol with OIDC authentication, and a documentation showreel generator with custom animation and audio. The project is actively maintained with frequent commits, comprehensive CI/CD, and a large community (34k+ stars).

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 5 reusable components found
tobi/qmd ★ 30318 1906 APPLICATION

QMD (Quick Markdown Search) is a local-first, on-device hybrid search engine for markdown files, built as a CLI tool, a TypeScript SDK, and an MCP (Model Context Protocol) server. It indexes markdown documents and supports BM25 full-text search via SQLite FTS5, vector semantic search via sqlite-vec, LLM-based query expansion (using a fine-tuned Qwen3-1.7B model), and cross-encoder reranking. The architecture is a monolithic TypeScript module with clear separation of concerns: a core store layer handling indexing and retrieval, a config-driven collection system with YAML-based index definitions, a trust-gated security model for project-local configurations, and output formatters supporting JSON, CSV, Markdown, and XML. The project also includes a fine-tuning pipeline (Python-based SFT, GRPO) to train the query expansion model, with curated training data and evaluation benchmarks. The repository has a hybrid character: while its primary output is a production-ready application (CLI + MCP server), it contains a substantial data-research component in the `finetune/` directory with training scripts, dataset generation, reward functions, and model evaluation harnesses. The fine-tuning pipeline is tightly coupled to the main application's query expansion feature, making this more than a simple add-on – it is integral to the search quality. The code demonstrates strong engineering practices: content-addressable storage for deduplication, AST-aware chunking for code files, reciprocal rank fusion for multi-signal search, and a cross-runtime SQLite abstraction that runs on both Node.js and Bun. The project is actively maintained with CI/CD on GitHub Actions, Nix flake builds, and npm publishing. Key entry points include `src/cli/qmd.ts` (CLI dispatcher), `src/store.ts` (core data layer), `src/mcp/server.ts` (MCP server), and `finetune/train.py` (training pipeline). The system is designed for personal knowledge management and AI agent integration, offering a `qmd search` command for quick lookups and an MCP server exposing tools like `query`, `get`, and `multi_get` for agent consumption. Security is a first-class concern: project-local configs that declare hooks or out-of-project paths require explicit trust approval via a digest-based store, and the HTTP MCP server includes DNS-rebinding protection.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 5 reusable components found
$ loading more...
$ submit: