#codebase #tree-sitter #explorer #declaration #reference #language

bin+lib drake

A tree-sitter based codebase dependency explorer

2 unstable releases

0.2.0 Nov 27, 2023
0.1.0 Nov 20, 2023

#14 in #explorer

Download history 6/week @ 2024-02-18 5/week @ 2024-02-25 1/week @ 2024-03-03 17/week @ 2024-03-10 1/week @ 2024-03-17 39/week @ 2024-03-31

57 downloads per month

MIT license

29KB
701 lines

Drake

A tree-sitter based codebase dependency explorer.

About

Drake (as in Sir Francis) is a static analysis tool to map and search dependencies in a codebase by finding declarations and references and building a graph.

Drake currently support Swift, but it is based on tree-sitter, and may support other languages in the future.

Usage

As CLI

Drake can be installed with cargo install.

In the current version it supports two tasks

  • drake deps [PATH] <TYPE_NAME> recursively lists all the types TYPE_NAME depends on.
  • drake print [PATH] prints the declarations and references in each file.

As a library

Reasonable API and Cargo docs coming soon.

License

Drake is licensed under the MIT license. See LICENSE for more.

Dependencies

~25MB
~645K SLoC