Hound indexes Git and other repositories and answers regex code searches through a small HTTP API and React web interface. You run the indexer and UI on your own infrastructure.
Overview
Hound is a source code search engine built around fast regular expression matching using a trigram index. A Go backend maintains per-repository indexes and serves search requests through a minimal API, while a static React frontend lets developers query code from the browser.
Operators configure a JSON file listing repositories and version control types, including Git by default plus Mercurial, SVN, Bazaar, or plain local directories. Private code can be indexed from local paths, file URLs, SSH-style remote URLs when keys are present, or directories watched for changes. The server polls sources on a configurable interval to keep indexes current and exposes a port for browser access, often fronted by Apache or nginx in production.
Docker images simplify running Hound without a large dependency stack beyond the container. The project emphasizes low setup overhead compared with heavier search appliances, with editor plugins available for teams that want IDE integration. It was created to give organizations an internal code search layer they control rather than relying solely on hosted forge search features.
Typical deployments run the houndd daemon alongside config.json on Mac or Linux servers; Windows is not officially supported though contributors report it can compile. Requirements are intentionally minimal so a single Go binary and configuration file can back code search for many repositories.
Key features
- Trigram-backed regex code search
- React web frontend
- Go indexer with HTTP search API
- Git, Mercurial, SVN, Bazaar, and local repos
- Configurable polling for repository updates
- Docker image support
- Private repo via SSH URLs or local VCS
- Editor plugins for integration
Use cases
- Internal search across many Git repositories
- Fast regex lookups in large monorepos
- Self-hosted alternative to forge search
- Indexing private code on isolated networks
- Dockerized code search for small teams