# sourcegraph/zoekt

Fast trigram based code search

Repository: https://github.com/sourcegraph/zoekt
Canonical: https://ross.abutalabs.com/products/zoekt
Language: Go
License: Apache-2.0
License Family: permissive
Topics: repo-type-backend
Last push: 2026-08-26T17:09:21+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 2893, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1844, forks 234 (observed 2026-08-28T04:05:43.286736+00:00)

## What it is
Zoekt is a fast trigram-based text search engine designed for source code, supporting substring and regexp matching with a rich boolean query language. It can be used via CLI commands for indexing and searching, or as an indexserver/webserver setup that syncs repositories from a code host and serves results through a web UI or API.

## Use cases
- search across many repositories in a large codebase
- index local git repositories for fast code lookup
- find code by substring or regular expression
- search code by symbol with ranking
- sync and index repos from a code host automatically
- query code with boolean operators like and, or, not

## When to choose
- you need fast substring or regexp search over large amounts of source code
- you want to power a code search UI or API over many repositories
- you need symbol-aware ranking of code search results
- you want a self-hosted code search index for git repositories

## When to avoid
- you need full natural-language document search rather than code search
- you need fuzzy semantic or vector-based code search
- your corpus is small enough that grep suffices
- you need a hosted managed solution without self-hosting

## Facets
- artifact type: service
- maturity: active
- function: search-engine, cli, http-server
- domain: developer-tools, version-control
- platform: go, windows, cli, self-hosted
- tags: code-search, trigram-index, regexp-search, source-code-indexing, ctags, indexing, search, linux, macos, web-server

## Member repositories
- sourcegraph/zoekt (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:43.286736+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:17:56.692060+00:00, confidence not recorded.
  - readme: https://github.com/sourcegraph/zoekt (fetched 2026-08-28T04:05:43.286736+00:00, sha b2e552ed4111)
- Data as of 2026-08-30T08:39:29.467469+00:00.
