HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
sourcegraph
zoekt
Go2023–2026
sourcegraph / zoekt

zoekt

Fast trigram based code search

15Distinct people
15Mentions
0Explicit recommenders
2.1KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Fast trigram based code search

GitHub

Where it is used

No documented product use was verified in the last source check.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 12:54:37 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year15 dated mentions

Observed mentions: 2023-07-04 14:32:57 UTC to 2026-04-29 13:56:19 UTC.

0123452023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 5 mentions; 0 submissions, 5 comments20232024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 5 mentions; 1 submissions, 4 comments20242025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 2 mentions; 1 submissions, 1 comments2026-01-01 00:00:00 UTC to 2027-01-01 00:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 comments. Incomplete calendar period.2026*

* An incomplete calendar period is marked with an outlined bar. Its count is not directly comparable with a full period.

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC505
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC514
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC211
2026 (partial)2026-01-01 00:00:00 UTC2027-01-01 00:00:00 UTC303

What Hacker News says

15 sources
I've seen a few post on moving off of gh and now is probably a pretty good time (?) to show case this project I've been working on since last year ;) There are 2 screen recordings [here](https://github.com/stepbrobd/inc/issues/112) and the NixOS module implementation for the search engine is [here](https://github.com/stepbrobd/inc/blob/master/modules/nixos/n...) The code search engine reusing [zoekt](https://github.com/sourcegraph/zoekt) as library (in the module, its the api backend but the stock web interface is quite usable) and [neogrok](https://github.com/isker/neogrok) as frontend
In Declarative Git repo sync/migration tool and self hosted code search engine
> They use Google's web indexing technology adapted for trigrams, which was mostly developed to support their massive internal monorepo Do you have a source for this? I would love to read more about it. In the doc of the Zoekt repo, it says > What does cs.bazel.build run on? > Currently, it runs on a single Google Cloud VM with 16 vCPUs, 60G RAM and an attached physical SSD. https://github.com/sourcegraph/zoekt/blob/main/doc/faq.md#wh... so at least they were using Zoekt up until a certain point in the past.
In Fast trigram based code search
Not the author, but given that this is a relatively small UI wrapper of a zoekt[1] backend, it seems like the risk here is isolated to the upstream Sourcegraph-maintained search dependency. By relatively small, I mean that the total SLOC for UI code in the entire project is around ~3.5k (compared to the backend which is currently 25x the size). Seems difficult to ascribe any enterprise motivations given that and additionally the UI seems very useful as-is even if you had to fork it and build a new community from there. [1] https://github.com/sourcegraph/zoekt
In Show HN: Sourcebot, an open-source Sourcegraph alternative
bshzzle·Oct 1, 2024Submission

Show HN: Sourcebot, an open-source Sourcegraph alternative

Hi HN, We’re Brendan and Michael, the creators of Sourcebot (https://github.com/sourcebot-dev/sourcebot). Sourcebot is an open-source code search tool that allows you to quickly search across many large codebases. Check out our demo video here: https://youtu.be/mrIFYSB_1F4, or try it for yourself on our demo site here: https://demo.sourcebot.dev While at prior roles, we’ve both felt the pain of searching across hundreds of multi-million line codebases. Using local tools like grep were ill-suited since you often only had a handful of codebases checked out at a time. Sourcegraph (https://sourcegraph.com/) solves this issue by indexing a collection of codebases in the background and exposing a web-based search interface. It is the de-facto search solution for medium to large orgs, but is often cited as expensive ($49 per user / month) and re
Read the rest
cently went closed source (https://news.ycombinator.com/item?id=41296481). That’s why we built Sourcebot. We designed Sourcebot to be: - Easily deployed: we provide a single, self-contained Docker image (https://github.com/sourcebot-dev/sourcebot/pkgs/container/so...). - Fast & scalable: designed to minimize search times (current average is ~73ms) across many large repositories. - Cross code-host support: we currently support syncing public & private repositories in GitHub and GitLab. - Quality UI: we like to think that a good looking dev-tool is more pleasant to use. - Open source: Sourcebot is free to use by anyone. Under the hood, we use Zoekt (https://github.com/sourcegraph/zoekt) as our code search engine, which was originally authored by Han-Wen Nienhuys and now maintained by Sourcegraph (https://sourcegraph.com/blog/sourcegraph-accepting-zoekt-mai...). Zoekt works by building a trigram index from the source code enabling extremely fast regular expression matching. Russ Cox has a great article on how trigram indexes work if you’re interested: https://swtch.com/~rsc/regexp/regexp4.html In the shorter-term, there are several improvements we want to make, like: - Improving how we communicate indexing progress (this is currently non-existent so it’s not obvious how long things will take) - UX improvements like search history, query syntax highlighting & suggestions, etc. - Small QOL improvements like bookmarking code snippets. - Support for more code hosts (e.g., BitBucket, SourceForge, ADO, etc.) In the longer-term, we want to investigate how we could go beyond just traditional code search by leveraging machine learning to enable experiences like semantic code search (“where is system X located?”) and code explanations (”how does system X interact with system Y?”). You could think of this as a copilot being embedded into Sourcebot. Our hunch is that will be useful to devs, especially when packaged with the traditional code search, but let us know what you think. Give it a try: https://github.com/sourcebot-dev/sourcebot. Cheers!
259 points · Open discussion
I have also been thinking about this: https://slatedb.io/ is new and KV on object storage. Maybe helpful. There is lots of similar work over ipfs, I have not had the chance to experiment yet, but I'd like to see what a workflow is like with (eg): summa: https://github.com/izihawa/summa I tried to implement trigram search on object storage using Zoekt: https://github.com/sourcegraph/zoekt, but I found that common queries load 30-40% of the entire index, so setting it up without some kind of caching strategy felt a little ridiculous.
In Build a serverless ACID database with this one neat trick (atomic PutIfAbsent)
What is a good open-source system for code search if I want to plug 100 or so git repos into it and have it available over the web? GH search is not desirable because it would search too broadly and would not cover repos on Gitlab etc. I looked at the Debian code search [1] in the past, but for some reason thought it required a bit too much effort and didn't complete my investigation of it. Though [2] looks pretty approachable. Sourcegraph mentioned Zoekt [3], but I am not sure how usable it is. If it was pretty good, why did Sourcegraph OSS exist? Finally, from all the discussion how Sourcegraph OSS was very behind in the past few years, I guess there is no serious plan to fork it? Edit: GCS release [4] seems to have been open-sourced without a frontend. Edit2: Livegrep [5] and Opengrok [6] were recommended higher in the thread. Quite ex
Read the rest
cited to try them out but if someone has working Docker Compose configs, I would be very thankful for the head start. Edit3: there is also Eureka [7]. Seems less powerful but easier to deploy. [1]: https://github.com/Debian/dcs [2]: https://github.com/Debian/dcs/blob/main/howto/building.md [3]: https://github.com/sourcegraph/zoekt [4]: https://github.com/google/codesearch [5]: https://github.com/livegrep/livegrep [6]: https://oracle.github.io/opengrok/ [7]: https://github.com/Rajeev-K/eureka
In Sourcegraph is no longer open source
Of note, they mention (ordering/emphasis mine): > We remain committed to Zoekt, the open source code search engine, and will continue to upstream changes to it. https://github.com/sourcegraph/zoekt > The source code will remain publicly available. > Individual devs will still be able to use Sourcegraph for free on public code at sourcegraph.com and within our self-hosted free tier on private code. > Very few individual devs or companies used the limited variant of code search that was open source. The vast majority (99.9%+) used the enterprise product. Maintaining two variants going forward was a big burden on our engineering team that had very little benefit for users.
In Sourcegraph is no longer open source

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.