DEV Community

loading...

Lightning-fast code searching with Hound

Alexander Alemayhu
Love trying out new technology and learning new things
・1 min read

GitHub logo hound-search / hound

Lightning fast code searching made easy

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:

Hound Screen Capture

Quick Start Guide

Using Go Tools

  1. Install Go if you don't have it already. Hound requires version 1.4 or later You might also want to define a GOPATH environment variable) (it defaults to $HOME/go if you don't explicitly have one set). If everything is installed properly, go version should print out the installed version of go.

  2. Use the Go tools to install Hound. The binaries houndd (server) and hound (cli) will be installed in your $GOPATH/bin directory. Your $GOPATH should be in your $PATH (echo

Discussion (0)