collet
A collection of developer tools for code analysis and agent workflows.
This crate provides a stable, unified API for working with code analysis tools. Currently it provides repository code structure mapping via tree-sitter.
Features
- 🛠️ Unified API for developer tools
- 📊 Repository code structure analysis (treemap)
- 🔒 Stable, versioned interfaces
- 🚀 Production-ready quality
Installation
Usage
Repository Analysis
use ;
use Path;
Filter by Language
use ;
let config = Config ;
let map = generate_map?;
Re-exported Types
All common types from submodules are re-exported at the crate root:
Config- Configuration for map generationLanguage- Supported programming languagesOutputFormat- Output format optionsRepoMap- Generated repository mapSymbol- Code symbols (functions, classes, etc.)SymbolKind- Categories of code symbolsMapError- Error types
Access submodules directly for more specialized types:
use treemap;
// Direct access to the treemap module
let map = generate_map?;
Supported Languages
- Rust (
.rs) - Python (
.py) - JavaScript (
.js,.jsx,.ts,.tsx)
License
Apache-2.0