A web front end and indexing backend for fast regex search across gigabyte-scale code repositories, with optional in-browser file viewing.
Overview
Livegrep supports interactive regular-expression search across large source trees, with a design influenced by the idea of web-scale code search. A codesearch backend builds and serves an index; the livegrep frontend provides the search UI over HTTP and connects to that backend over the network.
Indexes can be built in memory from configured repositories or precomputed to disk so searches run without ongoing access to original git trees. A helper can fetch and index GitHub repositories automatically. The UI can show matching source files in-browser when index metadata includes local or URL patterns for files.
Regex matching uses Google’s RE2 engine with mostly PCRE-compatible syntax. Index files are often several times the size of the indexed text and are memory-mapped for performance; SSD storage helps when RAM cannot hold the full index.
You can run the stack locally with separate codesearch and livegrep processes, or use published container images with volume-mounted index data. A public demo instance exists for trying the interface before self-hosting.
Key features
- Interactive regex code search at scale
- Prebuilt on-disk index files
- Separate codesearch gRPC backend
- GitHub repository reindexing helper
- In-browser source file viewer
- RE2 regular expression engine
- Docker-based deployment images
- HTTP frontend on configurable port
Use cases
- Searching multi-gigabyte internal codebases
- Exploring indexed open-source mirrors
- Regex audits across many repositories
- Hosting private code search internally
- Viewing hits without leaving the search UI