# burntsushi/ripgrep

> ripgrep is a line-oriented search tool for recursively searching directories for a regex pattern. It starts in your current directory, walks the files beneath it, and skips anything your gitignore rules exclude. The code is written in Rust.

Source: https://github.com/burntsushi/ripgrep
Indexed: commit 4b88e08 on 2026-06-15 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: Library
- Language: Rust
- Stars: 69,963 at index time
- License: Unlicense
- Code health: 6.5/10, Fair
- Last commit: 2026-06-05

## Install

From the README: https://github.com/burntsushi/ripgrep#installation

Install ripgrep with Homebrew on macOS or Linux.
    brew install ripgrep

Install ripgrep with Chocolatey on Windows.
    choco install ripgrep

Install ripgrep with cargo, the Rust package manager.
    cargo install ripgrep

## How it works

Execution begins in crates/core/main.rs, one of the five entry points, and the command-line side is handled in crates/cli/src/lib.rs. The crates directory holds 101 of the 137 files and is split into separate crates with their own Cargo.toml manifests. The ignore and globset crates provide the file filtering that respects gitignore rules. crates/grep/src/lib.rs and crates/matcher/src/lib.rs are entry points for the search and matching layers, and crates/pcre2/src/lib.rs is a separate entry point for the pcre2 crate. Dependencies include memchr, aho-corasick, memmap and encoding_rs.

- crates/cli/src/lib.rs: entry point
- crates/core/main.rs: entry point
- crates/grep/src/lib.rs: entry point
- crates/matcher/src/lib.rs: entry point
- crates/pcre2/src/lib.rs: entry point
Modules: crates, root, tests, .github, benchsuite, fuzz, pkg, .cargo. 137 files, 43,231 lines, 4,791 symbols.

## Code health

- Score: 6.5/10 (Fair)
- Trend: 6.0 on 2026-05-31, 7.0 on 2026-06-15
- Rank: #183 of 4,000+ indexed repos
- Hotspots: none
- Lowest file: crates/ignore/src/walk.rs
- Dead code: 29 findings

## Maintenance

- Last commit 2026-06-05
- bus factor 1

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/burntsushi/ripgrep/security

## More

- Page: https://repowise.dev/repo/burntsushi/ripgrep
- Ask this codebase: https://repowise.dev/repo/burntsushi/ripgrep/chat
- Docs: https://repowise.dev/repo/burntsushi/ripgrep/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/burntsushi/ripgrep
