selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

GitHub
hound logo

Self-host hound

v0.7.1

Fast trigram-index regex code search across many repos

BetaOpen SourceMIT
docker run -d -p 6080:6080 --name hound -v $(pwd):/data ghcr.io/hound-search/hound:latest
Updated6 months ago
LanguageJavaScript
Setup difficultyEasy
Stars
5 894
Port
6080 (HTTP port serving the web UI and search API)
Docker
ghcr.io/hound-search/hound
Screen capture of the Hound web search interface in use

What is hound?

Hound lets a team search the source of many repositories almost instantly. Its Go backend maintains a live index per repository and answers queries through a small API, while the browser frontend is a static React app; matching is regular-expression based and leans on Russ Cox's trigram-index technique for speed.

Configuration lives in one JSON file that lists each repository by URL. Git is the default, and Mercurial, SVN, Bazaar and a local-directory driver are also understood. Private code can be covered through local folders, file:// clones or SSH URLs, and the running server re-polls every repository at a 30-second interval unless you change or disable that per repo. Other knobs set indexer concurrency, skip dot files, label generated files, customise the links shown beside results, and expose a health-check path. There is no built-in HTTPS, so deployments normally sit behind Apache or nginx.

For running it yourself there is a published container image that you start with your config directory mounted in, or you can build the two binaries with make, which needs Go and npm; no database or other service is required. Official support covers macOS and CentOS, Windows is untested, and releases remain pre-1.0.

hound alternatives

Should you self-host hound?

hound scores 62/100 on selfhost.directory (how scoring works) and ranks #40 of 167 in Developer Tools. It has 5 894 GitHub stars, +11 in the last 30 days.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is MIT-licensed and written mostly in JavaScript.

Its closest alternative on selfhost.directory is openhands (87/100, 93 148 stars). It scores higher overall, so compare the two before you pick. See hound vs openhands side by side.

Features

  • Automatic repository updates
  • Health check endpoint
  • Index tuning
  • Multiple version control systems
  • Multi-repository indexing
  • No built-in TLSRun behind a reverse proxy for HTTPS.
  • Private repository indexing
  • Regular expression code search
  • Search API
  • Search result link customization
  • Web search UI

hound README

Hound

Build Status .github/workflows/go.yaml

Hound is an extremely fast source code search engine. The core is based on this article (and code) from Russ Cox: Regular Expression Matching with a Trigram Index. Hound itself is a static React frontend that talks to a Go backend. The backend keeps an up-to-date index for each repository and answers searches through a minimal API. Here it is in action:

How to install hound

Install hound with Docker

docker run -d -p 6080:6080 --name hound -v $(pwd):/data ghcr.io/hound-search/hound:latest

A config.json listing your repositories must sit in the mounted directory; the image can also be built locally with `docker build . --tag=hound`.

How to configure hound

  • max-concurrent-indexers2Total number of indexers used for indexing code.
  • dbpathdataFile path where index data is stored relative to the config file.
  • titleHoundTitle shown for the application.
  • health-check-uri/healthzPath exposing a health check endpoint for the server.
  • vcs-configgitPer-repository version control settings; git is the default VCS.

hound releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Developer Tools

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…