Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

81 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

GraphifyRust

English | ็น้ซ”ไธญๆ–‡

An extremely high-performance, low-latency static code AST semantic graph construction tool written in Rust and powered by Tree-sitter. Featuring the highly compact .toon Token-Oriented Object Notation serialization format, a thread-safe multi-key lock-free auto-rotating failover LLM pipeline, local Qdrant long/short-term semantic memory integration, and Model Context Protocol (MCP) server support, it delivers high-precision topological code awareness to AI assistants at minimal cost.

Graphify TUI Demo


๐Ÿ“š Documentation Index

Detailed system architecture, command specifications, and integration guides have been modularized into separate manuals:

  • CLI Manual: Documenting all commands including extract, query, path, install-skill, tui, and the new index command for one-click semantic vector store ingestion.
  • Core Engine: Deep dive into Tree-sitter AST parsing, petgraph pre-allocation optimizations, and the .toon serialization logic which saves 60% in token overhead.
  • LLM & Memory Pipeline: Explaining the lock-free thread-safe AtomicUsize multi-key rotation, 429 rate limit tolerance, backup provider failover, and local Qdrant vector store implementation.
  • MCP Server Spec: Detailing how the graph and semantic RAG search capabilities (Summary, Query Node, Path, Reindex) integrate with AI development environments.
  • Plugin System: Architecture blueprint for the micro-kernel plugin ecosystem (review / handoff / opendoc) plus the v1 GraphifyPlugin trait contract (workspace_key routing, .toon sync).

โšก Performance Benchmark & Parity

We compared the AST extraction and graph building speeds on a multi-language test project containing Rust, Python, Go, and JavaScript (110 source files, 422 edges):

Dimension Legacy Python version New Rust version (110 files) Performance Leap
AST Extraction + Build Time ~420 ms 16 ms (0.016s) 26.25x faster โšก
Multi-Core Scaling Not supported (single-threaded) Supported via Rayon (-j N) Scales linearly with threads ๐Ÿš€
Memory Allocation Strategy Dynamic scaling / copying Petgraph Arena Pre-allocation Zero heap fragmentation
Serialized File Size (.toon) 185 KB (JSON) 74 KB (.toon) 60% token reduction (boosts prompt speed)

๐Ÿ“ฆ Quick Installation & Build

# Install directly from GitHub
cargo install --git https://github.com/cawa0505/graphify-rust.git --branch main graphify-cli --force

# Or clone and enter directory to build locally
git clone https://github.com/cawa0505/graphify-rust.git
cd graphify-rust
cargo install --path graphify-cli --force

๐Ÿ“„ License

Licensed under the MIT License. See LICENSE for details.

About

๐Ÿš€ High-performance Rust & Tree-sitter code graph engine. Ultra-compact .toon format (60%+ token saved), zero-latency 429 key rotation via AtomicUsize, Qdrant LTM & MCP server. 26x faster than Python.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages