thehardwarestore.ai

where AI agents shop for the right tools

── 99153 repos indexed ── | filtered by tag: grep
BurntSushi/ripgrep ★ 68880 4609 APPLICATION

ripgrep (rg) is a high-performance command-line search tool that recursively searches directories for regex patterns, while respecting gitignore rules by default. It is implemented in Rust as a multi-crate workspace, providing a clean separation of concerns: CLI argument parsing (cli), file traversal with ignore filtering (ignore), pattern matching via multiple engines (regex, pcre2), configurable output formatting (printer), and a core search pipeline (searcher). The architecture uses the builder and strategy patterns extensively, enabling easy customization and reuse of individual components. Key features include Unicode support, optional PCRE2 backreferences/lookaround, compressed file decompression, JSON output, hyperlink support for editor integration, and configurable parallel traversal. The codebase is production-quality with extensive integration tests, fuzz testing, and a benchmarking suite that tracks performance against grep, ag, ugrep, and other tools. While primarily an application, it also contains detailed benchmark infrastructure (benchsuite/) and historical performance data, reflecting a strong emphasis on empirical optimization.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 4 reusable components found
dmtrKovalenko/fff ★ 11097 467 APPLICATION

fff (Fast File Finder) is a high-performance file search and content grep toolkit written in Rust, designed for long-running applications like code editors, AI agents, and file explorers. It provides fuzzy filename search with typo resistance, live content grep (plain text, regex, fuzzy), directory search, glob filtering, and git-aware frecency ranking. The core library maintains a persistent in-memory index with a bigram-based content prefilter, an LMDB-backed frecency and query history store, and a live filesystem watcher for incremental updates. The system is exposed through multiple interfaces: a Neovim plugin with a full TUI picker UI, an MCP server for AI assistants (Claude Code, Codex), language bindings for Python, Node.js, and Bun, and a C FFI for embedding in other languages. The architecture is a Rust core library with multiple frontends communicating via FFI or direct Rust API, all sharing the same `FilePicker` instance that manages indexing, searching, and watching. The codebase demonstrates exceptional performance engineering with SIMD-optimized string operations, compressed inverted indexes, arena-based path storage, and careful concurrency design with thread pools and lock-free snapshots.

RATING: 8.8/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
microsoft/vscode-ripgrep ★ 203 66 APPLICATION

A monorepo that publishes npm packages bundling precompiled ripgrep (rg) binaries for 12 platform/architecture combinations. The primary package `@vscode/ripgrep` uses npm optionalDependencies to install only the binary for the current platform at install time, with no postinstall step or runtime network access. A secondary package `@vscode/ripgrep-universal` bundles all binaries in one tarball for cross-platform repackaging scenarios. Build scripts download binaries from GitHub releases, verify them via SHA256 lockfile, and synchronize version across all 13 packages. The runtime code is minimal: a few lines that resolve the binary path from the package root based on process.platform and process.arch. This is a tightly scoped, well-engineered binary distribution mechanism used by VS Code itself.

RATING: 8.2/10 MAINT: active DRIFT: low
▸ 2 reusable components found
your-tools/ruplacer ★ 486 24 APPLICATION

Ruplacer is a command-line tool written in Rust for finding and replacing text in files. It supports literal string, regex, and case-preserving replacements, and provides a diff-like output of changes. The tool respects .gitignore, allows filtering by file type, and can operate in a dry-run mode. The architecture is modular, with separate modules for argument parsing, console output, directory traversal, file processing, and the core replacement logic. The replacement logic is particularly notable for its use of the strategy pattern to handle different matching algorithms in a uniform way.

RATING: 8.1/10 MAINT: active DRIFT: medium
▸ 2 reusable components found
learnbyexample/TUI-apps ★ 1015 69 APPLICATION

This repository is a collection of over a dozen Terminal User Interface (TUI) applications built with the Textual Python framework. The apps serve educational and recreational purposes: interactive exercises for learning CLI tools (awk, sed, grep), Python regular expressions, Python programming fundamentals, and two original grid-based games (Connect Square, Square Tic Tac Toe). Each app is self-contained, with a similar architectural pattern: an App subclass defines widgets, binds keys, and handles user input. The exercise apps execute user commands via subprocess and compare output to expected results; the regex playground and Python exercises evaluate Python expressions in a sandbox; the games implement AI opponents using weight-based heuristics. The code is clean, well-structured, and consistently styled, though the exercise apps share a large amount of boilerplate. The repository is actively maintained (1015 stars, 0 open issues, recent commits) and demonstrates solid craftsmanship, particularly in the game AI algorithms and custom Textual widget subclasses.

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