Expand description
ripmap - Ultra-fast codebase cartography
A Rust rewrite of grepmap, targeting 1000x faster performance. Uses tree-sitter for parsing, PageRank for importance ranking, and rich terminal rendering for output.
§Architecture
File Discovery → Tag Extraction → Graph Building → PageRank → Boosts → Rendering
↓ ↓ ↓ ↓ ↓ ↓
ignore tree-sitter petgraph iterative contextual ANSI
crate + .scm DiGraph power signals colors§Performance Strategies
- Parallel file parsing via rayon
- Memory-mapped I/O for large files
- Arena allocators for tag batches
- Lock-free graph building with dashmap
- String interning for symbol names
- Persistent cache with redb
Re-exports§
pub use types::DetailLevel;pub use types::FieldInfo;pub use types::FilePhase;pub use types::Intent;pub use types::RankedTag;pub use types::RankingConfig;pub use types::SignatureInfo;pub use types::SymbolId;pub use types::Tag;pub use types::TagKind;pub use callgraph::CallEdge;pub use callgraph::CallGraph;pub use callgraph::CallResolver;pub use callgraph::Candidate;pub use callgraph::FunctionId;pub use callgraph::ImportStrategy;pub use callgraph::NameMatchStrategy;pub use callgraph::ResolutionContext;pub use callgraph::ResolutionStats;pub use callgraph::ResolutionStrategy;pub use callgraph::ResolverBuilder;pub use callgraph::ResolverConfig;pub use callgraph::SameFileStrategy;pub use callgraph::TypeHintStrategy;
Modules§
- cache
- Persistent caching with redb.
- callgraph
- Call graph construction with pluggable resolution strategies.
- config
- Configuration loading from pyproject.toml and ripmap.toml.
- discovery
- Git-aware file discovery.
- extraction
- Tag extraction from source code using tree-sitter.
- mcp
- MCP (Model Context Protocol) server for ripmap.
- ranking
- Ranking pipeline - from tags to importance scores.
- rendering
- Output rendering - from ranked tags to terminal/text output.
- training
- Hyperparameter training infrastructure.
- training_
outer - L2 Outer Loop: Promptgram Optimization
- types
- Core types for ripmap - the ultra-fast codebase cartographer.