zoekt
Fast trigram based code search (by google)
codesearch
Fast, indexed regexp search over large file trees (by google)
zoekt | codesearch | |
---|---|---|
5 | 10 | |
1,667 | 3,422 | |
1.0% | - | |
3.4 | 0.0 | |
4 months ago | almost 2 years ago | |
Go | Go | |
Apache License 2.0 | BSD 3-clause "New" or "Revised" License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
zoekt
Posts with mentions or reviews of zoekt.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-12-08.
- Zoekt – Fast trigram based code search
-
Improving GitHub Code Search
For the grepping aspect, https://github.com/google/zoekt is a powerful one-stop-shop. For the navigating, I don't know. SourceGraph maybe, but the linking is somewhat heuristic I assume, not compilation-graph powered. But maybe that changes or depends per language.
-
Facebook open sources Glean, its scalable code search and query engine
The latest index/search engine is https://github.com/google/zoekt
- A 5x reduction in RAM usage
codesearch
Posts with mentions or reviews of codesearch.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-07.
- Regular Expression Matching with a Trigram Index
- How Google Code Search Worked
-
Ask HN: How do you search large code-base before adding a feature or fixing bug?
Whenever I work on huge codebase (think 1M+), I always reach for Russ Cox's codesearch https://github.com/google/codesearch. It requires indexing the codebase first, which takes 15 minutes or so, but after that searches are instant.
-
Improving GitHub Code Search
There is some older version that's open source, I haven't tried it and I don't know how much of today's code search is based on it.
https://github.com/google/codesearch
-
Facebook open sources Glean, its scalable code search and query engine
There's https://github.com/google/codesearch
-
Is there a reliable way to force google to include a search term as plain text on the result or is there a decent search platform with that feature?
If you want to find exact pieces of syntax then you should use a code search engine like GitHub's, Sourcegraph, or Google's codesearch. On the flip side, these won't be as good as Google for finding general ideas because they're focused more toward the precision of answers rather than giving you things that are related.
-
Postgres regex search over 10,000 GitHub repositories (using only a Macbook)
Check https://github.com/google/codesearch or https://swtch.com/~rsc/regexp/regexp4.html, this is actually possible.
What are some alternatives?
When comparing zoekt and codesearch you can also consider the following projects:
Glean - System for collecting, deriving and working with facts about source code.
hound - Lightning fast code searching made easy
opengrok - OpenGrok is a fast and usable source code search and cross reference engine, written in Java
hoogle - Haskell API search engine
mozsearch - Mozilla code search website. (Please file bugs in bugzilla at https://mzl.la/2YtXmoN)
roaring-rs - A better compressed bitset in Rust
chrono - Date and time library for Rust
postgres-operator - Production PostgreSQL for Kubernetes, from high availability Postgres clusters to full-scale database-as-a-service.
bar
QuestDB - An open source time-series database for fast ingest and SQL queries