Zoekt
Fast trigram based code search
zoekt is a fast, scalable code search engine written in Go that builds compressed indexes (shards) for source repositories and serves low-latency regex and substring queries. It optimizes for developer workflows: refresh indexes from Git, search across many repos instantly, and jump into hits with surrounding context and file navigation. The indexer uses efficient n-gram dictionaries and posting lists to keep query latency low, while storing metadata (branch, language, repo) for precise filtering. A built-in web UI and JSON API enable both interactive exploration and integration into editors and other tools. It supports ranking heuristics such as path weighting and symbol awareness to surface likely matches first, even in monorepos. Incremental and parallel indexing let it keep up with active codebases, making it suitable for both local deployments and multi-tenant service setups.