$ cd ~/products/dev/derevo
nf dev suite · 2/3
Derevo
Syntax-Aware Code Search
Tree-sitter powered code search that understands syntax rather than lines, for context-rich discovery across a codebase.
- +Syntax-aware — Queries the parse tree, not raw text
- +Tree-sitter grammars — Language-accurate matching
- +Built in Rust — Designed for large repositories
view source ↗free
The idea
grep matches lines of text. Derevo (Russian for "tree") is meant to match code structure: search a repository by syntax node, such as a function definition, a call or a type, using Tree-sitter grammars. A query for a call to parse would then find calls, not comments and strings that happen to contain the word.
Where it stands
The repository holds the crate layout: a CLI entry point and an empty parser module. No parsing or indexing exists yet. It is listed because it is the next tool planned for the Dev Suite, not because it is usable today.
Install
$ git clone https://github.com/NoamFav/Derevo && cd Derevo$ cargo runStatus
- [x]Crate layout: CLI entry point and parser module
- [ ]Tree-sitter grammar loading
- [ ]Structural query syntax
- [ ]An index that holds up on large repositories
- [ ]Search output with surrounding context