zoekt
livegrep
zoekt | livegrep | |
---|---|---|
4 | 11 | |
511 | 1,931 | |
16.6% | 5.0% | |
9.1 | 5.5 | |
7 days ago | 26 days ago | |
Go | C++ | |
Apache License 2.0 | GNU General Public License v3.0 or later |
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
-
Code Search at Google: The Story of Han-Wen and Zoekt
Russ Cox' trigram approach uses document IDs for the posting list, which makes the index much smaller, but gives less precise (ie. slower) matching. This is mentioned in the design doc at https://github.com/sourcegraph/zoekt/blob/main/doc/design.md....
-
Cody – The AI that knows your entire codebase
https://github.com/sourcegraph/zoekt seems to be doing a fair but of heavy lifting for Cody.
-
Sourcegraph is no longer Open Source
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?
[1]: https://github.com/Debian/dcs
[2]: https://github.com/Debian/dcs/blob/main/howto/building.md
[3]: https://github.com/sourcegraph/zoekt
livegrep
- Livegrep: Interactively Grep Source Code
-
Code Search Is Hard
If you ever leave you can use Livegrep, which was based on code-search work done at Google. I personally don't use it right now but it's great and will probably meet all your needs.
[0] https://github.com/livegrep/livegrep
- FLaNK Stack Weekly for 13 November 2023
-
Sourcegraph is no longer Open Source
[4] is not really a usable 'product'. Livegrep (https://github.com/livegrep/livegrep) was inspired by it and is very usable.
[3] used to be a Google open source project as well, but it fell out of maintenance, and Sourcegraph took it over. It powers most of the basic regex/literal search in Sourcegraph.
Mozilla's code is searchable in Searchfox (https://searchfox.org/) which uses the indexer from Livegrep, combined with their own Git indexer and language-specific cross reference databases.
OpenGrok (https://github.com/oracle/opengrok) is also rather well known, but I have found it to have a slightly worse UI than alternatives.
- What code search tools do you use at your job?
- Ack is a grep-like source code search tool
-
Are there any good full text searching tools? I need to search against a huge amount of source code. I'm using ripgrep. The problem is that every time I search, it has to read every file again, which is kind of slow. Is there a FT searching tool that is designed with source code searching in mind.
Yes, you want https://github.com/livegrep/livegrep
-
Facebook open sources Glean: a scalable code search and query engine
If you've not had to deal with a codebase that takes VSCode longer than a few minutes to index, then you're probably outside their initial target market. If you've not had to setup a hosted code search tool (eg livegrep https://github.com/livegrep/livegrep ) because there's just too much code,
- Sourcegraph: Why we're indexing the OSS universe
What are some alternatives?
cody - AI that knows your entire codebase
Glean - System for collecting, deriving and working with facts about source code.
git-peek - git repo to local editor instantly
sourcegraph - Code AI platform with Code Search & Cody
hound - Lightning fast code searching made easy
linguist - Language Savant. If your repository's language is being reported incorrectly, send us a pull request!
mozsearch - Mozilla code search website. (Please file bugs in bugzilla at https://mzl.la/2YtXmoN)
codesearch - Fork of Google codesearch with more options
lsp-cody - A Client to Connect to the Cody LSP Gateway
dcs - Debian Code Search (codesearch.debian.net) is a search engine that searches through all the 130 GB of open source software that is included in Debian. Supports regular expressions!
glean - Modern cross-platform telemetry