pepeiborra/fmgrep
fmgrep
A regular expression search engine for huge codebases
3stars
pepeiborra/fmgrep
fmgrep
A regular expression search engine for huge codebases using a persistent FM index, supporting AND/OR expressions and offering faster search than grep or ripgrep.
Visit project- First shared
- Nov 25, 2026
- HN activity
- 40
Show HN@pepeiborraNov 25, 2026
Show HN: Fmgrep – indexed grep over a persistent FM index
fmgrep is a (Claude-powered) open source reimplementation of a FAANG code search engine I was involved in a few years back. It's aimed at very large (e.g. AOSP) source trees. Back then we wanted to get our hands on the Github search engine (https://github.com/danlark1/sparse_ngrams) but it was not available, so we went a different way. Instead of n-grams,`fmgrep` builds an FM index of the tree with O(pattern) `count` and O(occurrences) `locate`, which is quite cool and leads to blazing fast performance as seen in the benchmarks.
Community