Library
burntsushi / ripgrep
ripgrep recursively searches directories for a regex pattern while respecting your gitignore
This connects Repowise to burntsushi/ripgrep's code. It does not install ripgrep.
Repowise maps public repos from their source. Not affiliated with burntsushi. What is Repowise?
github.com/burntsushi/ripgrepIndexed at 4b88e08
What is 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. To install it, run brew install ripgrep and follow the steps below. Its code health is 6.5 out of 10 (Fair), ranked #183 of 4,000+ indexed repos. The last commit to ripgrep was on Jun 5, 2026.
As of commit 4b88e08, indexed Jun 15, 2026. What it is comes from a model reading the README; the rest is measured from the source and git history, not from the maintainer.
For agentsripgrep.md
Repo facts: type, license, health, rank, contributors
| Type | Library |
|---|---|
| License | Unlicense |
| Code health | 6.5 / 10 (Fair) |
| Health rank | #183 of 4,000+ indexed repos |
| Last commit | Jun 5, 2026 |
| Bus factor | 1 |
| Size | 137 files, 43,231 lines |
Install ripgrep
Commands copied from the README
- 1Install ripgrep with Homebrew on macOS or Linux.
brew install ripgrep - 2Install ripgrep with Chocolatey on Windows.
choco install ripgrep - 3Install ripgrep with cargo, the Rust package manager.
cargo install ripgrep
Releases on GitHub (latest 15.2.0, Jul 15, 2026)
Explore ripgrep
- DocumentationModule-by-module documentation, written from the source.
- ArchitectureDependency graph, layers and third-party dependencies.
- Code healthEvery file's score and the findings behind it.
- CommitsEach commit's effect on code health.
- OverviewEverything else the index found: contributors, decisions, what changed this week.
Ask about this code in your agent
This connects Repowise to ripgrep's code. It does not install ripgrep. To install ripgrep, use the install steps.
Useful if you want to change or fork ripgrep: your agent can ask how it is put together and get answers that cite its files.
Ask about ripgrep
Answers come from ripgrep's README and source, with the files they cite. Two free answers a day without an account.
Want this for your own codebase? Map your repo free
About this page
Get a page like this for your own codebase
Repowise built this map of burntsushi/ripgrep from its source and git history. It parses every symbol, draws the dependency graph, scores each file's health from complexity, duplication, coverage and churn, finds hotspots and owners in the history, and writes documentation for every module. Your coding agent reads the same index over MCP, so its answers cite real files.
Free for 2 public repos, with a page like this one. No card. See how Repowise works
Prefer local? pip install repowise && repowise init indexes your own checkout, no account needed. Star Repowise on GitHub
burntsushi/ripgrep FAQ
What is ripgrep?
ripgrep is a line-oriented search tool that recursively searches directories for a regex pattern while respecting gitignore rules. The binary name is rg.
How does ripgrep work?
ripgrep walks the directory tree from your current directory, skips files that gitignore rules exclude, and searches the remaining files for a regex pattern line by line.
How do I install ripgrep?
ripgrep can be installed with Homebrew using brew install ripgrep, with Chocolatey using choco install ripgrep, or with cargo using cargo install ripgrep. See the install steps
What language is ripgrep written in?
ripgrep is written in Rust, with a few Python and Ruby files also present in the repository.
How is the ripgrep code organized?
ripgrep's Rust code is split into crates under the crates directory, with crates/cli/src/lib.rs, crates/grep/src/lib.rs, crates/matcher/src/lib.rs and crates/pcre2/src/lib.rs among its entry points.
When should I use ripgrep?
Use ripgrep to search a directory tree for a regex pattern while skipping files that gitignore rules exclude. It defaults to recursive search, as other tools specialized to code search do.
What license does ripgrep use?
ripgrep is available under the Unlicense, and it is also dual-licensed under MIT or the UNLICENSE.
Code health
On the leaderboards:#11 of 24 Rust repos
Key features of ripgrep
- Recursively searches your current directory for a regex pattern.
- Respects your gitignore rules when deciding which files to search.
- Has first class support on Windows, macOS and Linux.
- Provides archives of precompiled binaries for Windows, macOS and Linux.
- Installs under the binary name rg.
How burntsushi/ripgrep 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.
The codebase has 137 files and 4,791 symbols in 7 modules, led by Rust, Python and Ruby. Code health is 6.5 out of 10, rated fair.
Maintain burntsushi/ripgrep?
Claim this page, add a badge to the README, or re-index it.
Claim this page
Sign in with GitHub and we check that you are an admin or maintainer of burntsushi/ripgrep. Then add a badge to the README that links readers here.
Add a badge to your README
Readers click through to this page and can ask ripgrep's code a question. A badge also re-indexes the repo every week and marks you as the verified maintainer.
[](https://repowise.dev/repo/burntsushi/ripgrep?src=badge_ask)Paste it at the top of README.md, under the title.
Added it already? Verify to get the mark now instead of tomorrow.
Need HTML or the larger health card? More formatsHide more formats
This badge as HTML
<a href="https://repowise.dev/repo/burntsushi/ripgrep?src=badge_ask"><img src="https://api.repowise.dev/badge/wiki/burntsushi/ripgrep.svg?label=ask" alt="repowise: Ask this codebase"></a>Code health card
The score, its change since the last index, and when it was measured. Follows the reader's light or dark theme.
<a href="https://repowise.dev/repo/burntsushi/ripgrep?src=badge_card"><picture><source media="(prefers-color-scheme: light)" srcset="https://api.repowise.dev/badge/health/burntsushi/ripgrep.svg?style=card&theme=light"><img src="https://api.repowise.dev/badge/health/burntsushi/ripgrep.svg?style=card" alt="repowise code health" width="500" height="168"></picture></a>