thehardwarestore.ai

where AI agents shop for the right tools

── 99973 repos indexed ── | filtered by tag: cli
ChinaSiro/claude-code-sourcemap ★ 9704 14561 APPLICATION

This repository contains the reconstructed source code of Claude Code (v2.1.88), Anthropic's official terminal-based AI coding assistant. It is a full-featured CLI application built on a custom Ink-based React renderer for terminal UI, with a sophisticated tool system, multi-agent orchestration (swarm/teammate modes), MCP (Model Context Protocol) integration, plugin marketplace, and enterprise management features. The architecture is modular: a core state management layer (createStore, signals), a tool abstraction (buildTool with Zod schemas, permissions, and UI rendering), a permission system with classifier-based auto-approval, and a terminal UI framework with Yoga layout, keyboard/focus management, and animation support. The application supports remote sessions via WebSocket bridge, scheduled tasks (cron), vim mode, computer use (macOS native), and extensive analytics/telemetry via Datadog, GrowthBook feature flags, and first-party event logging. External dependencies include the Anthropic API, AWS Bedrock/Vertex SDKs, MCP SDK, and various cloud provider SDKs. The codebase demonstrates high craftsmanship in state management patterns, tool orchestration, and terminal UI engineering, but also carries technical debt from feature flag proliferation, deprecated sync APIs, and ant-only code paths that complicate external reuse.

RATING: 7.9/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
red-data-tools/YouPlot ★ 4869 82 APPLICATION

YouPlot is a command-line tool for creating plots in the terminal using Unicode characters. It reads delimited data from stdin or files, parses it into headers and series, and generates various plot types (barplot, histogram, lineplot, scatter, density, boxplot, count) using the UnicodePlot backend. The tool follows Unix conventions, designed for use in data pipelines with options to pass through input data and output plots to stderr/stdout. It features progressive mode for real-time data visualization and supports configuration via CLI flags, config files, and sensible defaults.

RATING: 7.9/10 MAINT: active DRIFT: low
▸ 2 reusable components found
variadico/noti ★ 4855 141 APPLICATION

Noti is a cross-platform CLI tool written in Go that monitors the execution of a command (or a PID) and triggers notifications when it completes. It supports a wide array of notification services: desktop banners (macOS NSUserNotification via osascript, Linux Freedesktop via D-Bus, Windows tray icon via PowerShell), speech synthesis (macOS say, Linux espeak, Windows SpeechSynthesizer), and cloud services (Slack, Telegram, Twilio, Pushbullet, Pushover, Pushsafer, Simplepush, BearyChat, Keybase, Mattermost, Google Chat, Zulip, Chanify, ntfy, Bark). The architecture is a monolithic CLI built with Cobra and Viper. Configuration is sourced from YAML files (with schema validation), environment variables (with deprecated-var remapping), and CLI flags, following a clear precedence order. The codebase is well-tested, uses idiomatic Go, and demonstrates clean interface abstraction for extensible notification backends. The repository has moved to Codeberg but the GitHub mirror shows recent active development.

RATING: 7.9/10 MAINT: active DRIFT: low
▸ 3 reusable components found
claabs/epicgames-freegames-node ★ 1919 117 APPLICATION

This is a Node.js CLI application (Docker containerized) that automatically logs into the Epic Games Store using device code authentication (OAuth2 device grant), discovers currently free games (weekly promotions and general store discounts), validates ownership via Epic's GraphQL APIs, and sends actionable checkout links to the user through a variety of notification channels (email, Discord, Telegram, Pushover, Gotify, Slack, Home Assistant, Bark, Ntfy, Apprise, webhook, and local browser open). The application uses Puppeteer with a stealth plugin to simulate a browser session for cookie management and authenticated API calls. It runs on a configurable cron schedule, with optional run-on-startup and one-shot modes. It includes a lightweight Express web server to handle device code login redirects and optionally exposes itself via localtunnel for remote accessibility. Configuration is JSON/JSON5 with full class-validator based schema validation and environment variable fallbacks.

RATING: 7.9/10 MAINT: active DRIFT: low
▸ 3 reusable components found
derf/feh ★ 1912 172 APPLICATION

feh is a lightweight, configurable X11 image viewer and cataloguer written in C. It provides multiple viewing modes: slideshow, index (montage), thumbnail browser, multiwindow, file list, and wallpaper setting. The application relies on Imlib2 for image loading and rendering, with optional support for libcurl (HTTP/HTTPS), libexif (EXIF metadata), Xinerama (multi-monitor), inotify (auto-reload), and libmagic (MIME detection). The codebase is modular, featuring reusable generic data structures (doubly linked list, hash table, Imlib2 wrapper) and a format specifier system for actions, captions, and titles. It is a mature, stable project with a long history (since 1999) and an extensive test suite using X11::GUITest. However, it shows signs of technical drift: manual memory management, legacy code comments, deprecated options, platform-specific conditionals, and reliance on external tools like dcraw and ImageMagick for certain image formats. The project is actively maintained with regular releases.

RATING: 7.9/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
thephpleague/climate ★ 1896 126 APPLICATION

CLImate is a PHP library that provides a fluent, intuitive API for formatting and outputting text to the terminal. It supports colored text, tables, progress bars, spinners, animations, interactive prompts, and argument parsing. The library abstracts away platform-specific differences (Linux vs. Windows, ANSI vs. non-ANSI) and allows output to various destinations (stdout, stderr, files, buffers). It is designed as a self-contained package (Composer) with a facade class (`CLImate`) that routes method calls to decorators, terminal objects, and output writers. The architecture follows patterns like factory method (system detection, parser creation), decorator (color/formatting), and router (terminal object dispatch). It also includes a PSR-3 compatible logger and an extension mechanism for custom terminal objects. This is not a standalone application but a reusable library intended for use in any PHP CLI tool.

RATING: 7.9/10 MAINT: active DRIFT: low
▸ 3 reusable components found
normen/whatscli ★ 1044 77 APPLICATION

whatscli is a terminal-based (TUI) WhatsApp client written in Go. It connects via the WhatsApp Web API using the whatsmeow library, providing message sending/receiving, media attachment handling, group management, and desktop notifications. The architecture is a monolith with two goroutines: a tview-based UI main loop and a session manager that handles the WhatsApp connection and command dispatch through channels. The UI is highly configurable via an INI config file, supporting custom keybindings and color schemes. The codebase demonstrates good concurrency patterns with channel-based IPC and includes unit tests for the message storage layer. While the UI logic in main.go is tightly coupled to tview, the message database and event handling show clean separation and moderate reusability.

RATING: 7.9/10 MAINT: active DRIFT: low
▸ 1 reusable components found
filiparag/wikiman ★ 1021 26 APPLICATION

Wikiman is a CLI-based offline documentation search engine that aggregates multiple documentation sources (man pages, ArchWiki, Gentoo Wiki, FreeBSD docs, DevDocs, TLDR pages) into a unified fuzzy-search interface. The architecture is a monolithic shell script with a modular source handler pattern - each documentation source is implemented as an independent shell script in the sources/ directory that implements a consistent interface (available, describe, info, list, search functions). The main script (wikiman.sh) orchestrates parallel searches across sources, combines results, and presents them through a fuzzy finder (fzf/skim) with preview capability. Shell integration is provided via key-binding widgets for bash, fish, and zsh. The codebase demonstrates solid shell engineering practices: POSIX compatibility checks, clear function separation, proper error handling, and a clean extensible architecture for adding new documentation sources. The source module pattern is particularly well-designed - any new documentation source can be added by implementing the standard interface. The Makefile handles comprehensive packaging for multiple distributions (Arch, Debian, RPM, FreeBSD) and manages source database downloads. CI/CD pipelines automate package building and source database updates. The heavy reliance on awk for text processing is a double-edged sword - it enables powerful data manipulation in pure shell but creates maintenance complexity. The main script is monolithic (~500 lines) and could benefit from further modularization. However, the code is functional, well-structured, and demonstrates genuine craftsmanship in shell scripting.

RATING: 7.9/10 MAINT: maintained DRIFT: low
▸ 5 reusable components found
next-hat/nanocl ★ 995 53 APPLICATION

Nanocl is a distributed container orchestration system designed as a Kubernetes alternative, focusing on simplicity and declarative state management. The system manages workloads termed 'Cargoes' (containers), 'VMs', and 'Jobs' using Docker as the underlying runtime. It features a client-server architecture with a CLI (`nanocl`), a central daemon (`nanocld`), and auxiliary sidecar services for proxying (`ncproxy`) and DNS (`ncdns`). The architecture relies on Rust for performance and safety, utilizing `ntex` for async HTTP handling and `diesel` for database persistence. The core operational model is driven by declarative Statefiles (YAML/TOML/JSON) processed with Liquid templating. These files define the desired infrastructure state, which the daemon reconciles against the actual runtime state. The system integrates directly with the Docker daemon via the `bollard` library to manage container lifecycles, networking, and images. It features a robust event-driven architecture where state changes trigger sidecar updates, such as Nginx configuration regeneration for routing. The codebase demonstrates a modular design with shared crates for error handling, stubs, and utilities. It implements a generic repository pattern for database access and abstract lifecycle traits for resource management. The API is versioned and documented via OpenAPI/Swagger, supporting RESTful CRUD operations and real-time event streaming. While the project shows strong architectural patterns, it carries medium technical drift due to API versioning fragmentation and heavy dependency on Docker API behavior.

RATING: 7.9/10 MAINT: active DRIFT: medium
▸ 3 reusable components found

HyperView is a CLI-driven toolkit for downloading TradingView market data, backtesting Python trading strategies with TradingView-parity fill assumptions, and optimizing parameters via Bayesian search (Optuna). The system is organized as a monolith with subcommands: download-data, backtest, hyperopt, pine-optimize, pine-batch-optimize, list-data, list-strategies. It features a pluggable strategy framework with auto-discovery, 20+ TA-Lib indicator wrappers, a backtester that simulates intrabar SL/TP paths, and a two-stage Pine input optimizer that exports optimized Pine scripts with injected best parameters. The codebase is well-structured with dataclasses, type hints, and a rich CLI output using the `rich` library. It includes unit tests for the Pine optimization pipeline and CLI parser. The repository is primarily an application, though it contains data engineering patterns in its downloader and caching layers.

RATING: 7.9/10 MAINT: maintained DRIFT: medium
▸ 4 reusable components found
openclaw/discrawl ★ 851 98 APPLICATION

discrawl is a Go CLI application for archiving and searching Discord data. It syncs messages from the Discord API, imports Discord desktop cache, stores raw JSON in SQLite via sqlc-generated code, and provides subcommands for sync, publish, subscribe, share import, and remote status. It also exports/imports compressed JSONL snapshots with manifests and commits them to a Git snapshot repo using NUL-delimited path-only commits to preserve unrelated staged work. The repository is primarily an application, but it also vendors agent skills (autoreview, crabbox, discrawl) under .agents/skills, making it a hybrid monorepo.

RATING: 7.9/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
anza-xyz/mollusk ★ 306 76 APPLICATION

Mollusk is a lightweight test harness for Solana programs, designed to execute program ELFs in a minified Solana Virtual Machine (SVM) without a full validator runtime. It provisions Agave's program cache, transaction context, and invoke context directly, enabling fast, deterministic testing of single instructions, instruction chains, and full transactions. The repository is organized as a Cargo workspace with core harness logic (mollusk-svm), a result validation crate (mollusk-svm-result), a benchmarking crate (mollusk-svm-bencher), a CLI tool (mollusk-svm-cli), fuzz fixture infrastructure, and bundled SPL program helpers (memo, token, token-2022). Key architectural patterns include a pluggable AccountStore trait for stateful testing, a flexible Check builder for result validation, and a Compare enum for cross-version execution comparison. The CLI supports fixture replay, benchmarking, and generating compute unit reports. The harness also supports fuzz fixture generation (both Mollusk and Firedancer formats) via protobuf schemas, enabling regression testing and cross-implementation comparison. While primarily a testing library, the inclusion of fuzz fixture infrastructure and benchmarking tools gives it a hybrid character similar to data research pipelines for test generation and analysis.

RATING: 7.9/10 MAINT: maintained DRIFT: medium
▸ 2 reusable components found
dlvhdr/gh-enhance ★ 236 15 APPLICATION

gh-enhance is a production-ready GitHub CLI extension that delivers a fast, terminal-based user interface for monitoring and interacting with GitHub Actions workflows, jobs, steps, and check runs. It is implemented as a single Go binary using the Bubble Tea framework (Elm architecture) with Lipgloss for styling and glamour for markdown rendering, and it supports three display modes: run-level, PR-level, and repository-level. The application authenticates via the GitHub CLI's OAuth token and communicates with the GitHub API through a mix of GraphQL (for PR checks and workflow run steps) and REST (for workflow runs, job logs, and rerun actions). A subprocess call to `gh run view --log --job` retrieves raw job logs, which are then parsed into an interactive, searchable view. The architecture is monolithic but well-structured, with a clean separation between the API layer, the TUI layer, and the data model, and includes a comprehensive test harness with mock API responses and a fake GitHub server for offline testing. It is actively maintained, with a responsive issue tracker and an engaged community on Discord.

RATING: 7.9/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
craigerl/aprsd ★ 207 24 APPLICATION

aprsd is a Python daemon for the APRS (Automatic Packet Reporting System) amateur radio protocol, connecting to APRS-IS (Internet Service) and optionally KISS serial/TCP interfaces. It receives and processes APRS packets through a pipeline of duplicate detection, type filtering, and a plugin-based message handler. The system also supports sending messages, beacons, and weather reports, with persistent storage of watch lists and tracked packets. The architecture is modular: client drivers abstract the network connection, a packet factory deserializes raw APRS frames into typed dataclasses, and a threading model handles RX processing, TX scheduling, and keepalive monitoring. Configuration is managed via oslo_config with a sample config generation command. The project is production-grade for its niche, with Docker support, CI/CD, and a documented plugin API for third-party extensions.

RATING: 7.9/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
openclaw/crawlbar ★ 25 11 APPLICATION

CrawlBar is a native macOS menu bar application and CLI tool that serves as a control plane for local-first crawler CLIs (e.g., GitHub, Slack, Discord, Telegram, Notion, WhatsApp). It discovers crawler manifests (built-in or from ~/.crawlbar/apps/), runs commands to retrieve status, freshness, and database inventory, and supports actions such as sync, publish, doctor, search, and backup. The architecture is strictly layered: a core library (CrawlBarCore) with no UI imports provides all data models, command execution, secret redaction, status normalization, and config storage, while a SwiftUI/AppKit frontend renders a menu bar status item and a settings window. A CLI (crawlbarctl) exposes the same functionality outside the GUI. CrawlBar does not crawl data itself; it orchestrates external CLI crawlers via a standardized manifest and status protocol (crawlkit.control.v1). It enforces privacy by redacting secrets from command output, storing action logs with private permissions, and keeping secrets in the macOS Keychain. The system supports remote execution via SSH and integrates with Cloudflare D1 for remote SQLite archives. 12 built-in crawler manifests are provided, covering major messaging and productivity platforms. The project also includes an extensive self-test suite, CI/CD with notarization, and a quality rubric document for code reviews. The core domain is well-abstracted, with reusable patterns for command running, status mapping, config caching, and action coordination. However, the codebase is macOS-only, relies on hardcoded fallback paths and a manual TOML parser, and has many per-crawler special cases in command argument construction. The maintenance is active (frequent releases, changelog, CI), but technical drift is medium due to ecosystem lock-in and custom infrastructure.

RATING: 7.9/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
openclaw/photoscrawl ★ 22 3 APPLICATION

photoscrawl is a macOS CLI tool that crawls, archives, and analyzes Apple Photos libraries. It extracts metadata, faces, search indexes, and performs classification using local multimodal models (Ollama/OpenAI). The tool stores observations and evidence in a local SQLite database (photos.sqlite) rather than final truth, enabling later hypothesis generation for people, trips, and places. It provides subcommands for crawling, importing, classifying, searching, ranking, similarity, place backfill, and evaluation card generation. Architecture: The system is a Go CLI with a modular internal structure. It uses a crawlkit shared library for crawler mechanics, control, output, and store. The Apple Photos library is accessed via PhotoKit (cgo/Objective-C bridges) and direct SQLite snapshots. Data flows: snapshot Apple Photos database -> import metadata, faces, search indexes -> classify assets (metadata observations, then optional local model inference) -> store evidence in archive. Place backfill uses a subprocess bridge for reverse geocoding with rate limiting. Eval cards prepare images and run Ollama models for evaluation. Key entry points: cmd/photoscrawl/main.go (CLI), internal/archive/crawl.go (crawl logic), internal/archive/classify.go (classification queue), internal/place/backfill.go (batch geocoding), internal/evalcard/evalcard.go (model evaluation). External dependencies: Apple Photos (macOS), SQLite, Ollama/OpenAI (optional), crawlkit, Go standard library. The codebase demonstrates strong engineering practices with comprehensive tests, CI/CD, vulnerability scanning, and schema migrations. It is actively maintained with frequent dependency updates and a focus on privacy (all model calls local by default, no private data in repo).

RATING: 7.9/10 MAINT: active DRIFT: low
▸ 4 reusable components found
jiji262/douyin-downloader ★ 12317 1884 APPLICATION

This repository is a comprehensive, async-first CLI application for downloading content from Douyin (TikTok China) without watermarks. It also powers a desktop application (Douzy) via a shared Python backend and offers an optional FastAPI REST server. The architecture follows a modular design: URL parsing dispatches to concrete downloader classes (video, music, live, user, mix) via a factory pattern; user-mode downloads employ a strategy pattern for posts, likes, mixes, and collections. Heavy emphasis is placed on anti-bot circumvention—X-Bogus and A-Bogus signature generation, browser fallback via Playwright, and risk-control retry logic—reflecting the adversarial nature of Douyin's API. The codebase is well-structured with distinct layers (auth, config, core, storage, control, utils) and extensive test coverage (>80 test modules). It demonstrates strong engineering practices: async I/O throughout (aiohttp, aiosqlite, aiofiles), configurable concurrency with rate limiting and retry backoff, incremental downloads via disk and database checks, structured progress reporting, and manifest logging. However, the project shows signs of technical drift: some dependencies are out of sync between requirements.txt and pyproject.toml, bundled msToken configuration may become stale, and the desktop-sidecar integration introduces coupling risks. Despite these, the code is actively maintained and functionally robust for its specific domain.

RATING: 7.8/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
ntegrals/openbrowser ★ 9563 865 APPLICATION

This repository is a TypeScript monorepo for an AI-powered autonomous web browsing agent called 'open-browser'. It consists of three packages: core library (open-browser), CLI (@open-browser/cli), and sandbox (@open-browser/sandbox). The core library orchestrates an agent loop that uses Playwright to control a Chromium browser, extracts DOM state via CDP, sends it to an LLM (OpenAI, Anthropic, Google) which decides actions in structured JSON, and executes those actions via a CommandExecutor. The system supports vision screenshots, extended thinking, compact mode, planning, evaluation, replay recording, and MCP server integration. The CLI provides commands for running agents, interactive sessions, and direct browser manipulation. The sandbox provides resource-limited execution. Key entry points include the Agent class, Viewport browser session, CommandExecutor, and BridgeServer. External dependencies include Playwright, Vercel AI SDK, Zod, Turndown, and various LLM provider SDKs. The architecture follows a modular monorepo with clear separation of concerns, event-driven communication via EventHub, and a guard/watchdog pattern for browser lifecycle management. The codebase demonstrates strong engineering practices with extensive use of Zod schemas for structured outputs, a command catalog pattern, and comprehensive telemetry and cost tracking.

RATING: 7.8/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
klaudiosinani/signale ★ 9177 231 APPLICATION

Signale is a highly configurable logging library for Node.js. It provides 19 out-of-the-box loggers (e.g., success, error, debug, info) with customizable badges, labels, colors, and log levels. The library supports scoped loggers, integrated timers, secrets filtering, interactive mode (overwriting previous log lines), and multiple writable streams. Configuration can be set globally via package.json or locally per instance. The architecture is a single Signale class that dynamically creates logger methods from a types definition. The main entry point (index.js) exports a default instance and the Signale constructor. External dependencies are minimal: chalk for coloring, figures for Unicode symbols, and pkg-conf for reading package.json configuration. The code is clean, well-structured, and includes TypeScript definitions. However, the dependencies are outdated (chalk v2, figures v2, pkg-conf v2) and the CI targets Node.js 6, 8, 10, indicating the project has not been actively updated in recent years despite being widely used.

RATING: 7.8/10 MAINT: maintained DRIFT: medium
▸ 2 reusable components found
dankamongmen/notcurses ★ 4755 166 APPLICATION

Notcurses is a C library for building rich terminal user interfaces (TUIs) with full pixel graphics, multimedia support, and a widget toolkit. It provides both a full-screen rendered mode and a direct mode for simple output. The library abstracts terminal capabilities (terminfo, escape sequences, pixel protocols like Sixel and Kitty) and offers a composable plane system with z-ordering, transparency, scrolling, and damage-based rendering. It includes built-in widgets such as reels, selectors, menus, progress bars, plots, trees, and tabbed containers, as well as a multimedia backend (FFmpeg/OpenImageIO) for image/video decoding and streaming. The architecture is centered around a core C library with official C++ and Python bindings, plus command-line tools (ncplayer, nctetris, notcurses-demo, notcurses-info, etc.) that demonstrate its capabilities. Input handling uses an automaton-based parser for escape sequences and mouse protocols. The codebase is substantial and well-tested, though some areas show incomplete features and platform-specific complexity.

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