Skip to main content

ReadMenator

image

A token-free, offline, production-grade polyglot codebase knowledge graph & architectural analyzer.

No LLMs. No tokens. No cloud costs. Pure static analysis via AST + regex.

ReadMenator builds production-grade codebase knowledge graphs and architectural health reports 100% offline. Identify structural risks, security flaws, and change impact patterns instantly across 19 languages.

Supported Languages (19)

C, C++, Python, Go, Rust, JavaScript, TypeScript, Java, C#, Shell, PHP, Dart, GDScript, Nim, Assembly, Ruby, Swift, Kotlin, Scala, Lua, Elixir.

What ReadMenator Does Better Than Graphify

Feature graphify readmenator
Extraction LLM agents (tokens) AST + regex (free)
Languages Any (LLM reads anything) 19 static parsers
Call graph edges No Yes (intra-file calls)
Inheritance edges No Yes (class, interface)
Architectural layers No Yes (5-layer detection)
Community detection Leiden/Louvain Label propagation
God nodes Yes Yes
Surprising connections Yes Yes
Suggested questions Yes Yes
Edge types 1 (imports) 4 (imports, calls, inherits, resolved_imports)
Export formats JSON, HTML, SVG, GraphML, Obsidian, Cypher/Neo4j JSON, HTML, SVG, GraphML, Obsidian
Watch mode Yes Yes (polling)
Incremental updates Cache-based SHA256 cache
Confidence-tagged edges EXTRACTED/INFERRED/AMBIGUOUS EXTRACTED
Cost Token-based Zero
Speed Minutes Seconds

Installation

pip install readmenator 

or install from path

pip install .

Usage

Generate knowledge base

python -m readmenator /path/to/project --rebuild

Creates KNOWLEDGE_BASE.md with Table of Contents, Statistics Dashboard, Architectural Layers, God Nodes, Community Analysis, Surprising Connections, Suggested Questions, UML Class Diagram, Mermaid graph (internal edges + community subgraphs), and Architecture Reference. A link to the knowledge base is automatically injected into the project's README.md.

Export formats

python -m readmenator /path/to/project --export-all     # JSON + HTML + SVG
python -m readmenator /path/to/project --json           # graph.json (GraphRAG-ready)
python -m readmenator /path/to/project --html           # graph.html (interactive vis.js)
python -m readmenator /path/to/project --svg            # graph.svg (static)
python -m readmenator /path/to/project --graphml        # graph.graphml (Gephi/yEd)
python -m readmenator /path/to/project obsidian         # Obsidian vault (wikilinks)

Query, explain, and path trace

python -m readmenator /path/to/project query "What classes handle HTTP?"
python -m readmenator /path/to/project explain Database
python -m readmenator /path/to/project path SymbolA SymbolB

Analysis

python -m readmenator /path/to/project analyze          # community + god nodes + questions
python -m readmenator /path/to/project layers           # architectural layer detection

Advanced Architectural Insights (Out of the Box)

ReadMenator goes beyond simple visualization. It runs complex graph algorithms locally to give you deep insights into your code's health:

  • Change Impact Analysis: Know exactly which files are highly coupled. ReadMenator calculates direct and transitive dependents so you can predict what will break before you refactor.
  • Hotspot Detection: Automatically ranks files by combining cognitive complexity (symbol richness) and graph centrality to pinpoint technical debt.
  • Taint Propagation Mapping: Traces how risky imports (like subprocess or OS-level sinks) propagate transitively through your codebase dependency graph.
  • Community & Layer Detection: Automatically groups files into structural layers (utility, business logic, infrastructure) and highly cohesive communities using label propagation.

Automation

python -m readmenator /path/to/project update           # incremental (SHA256 cache)
python -m readmenator /path/to/project watch            # auto-rebuild on file changes
python -m readmenator /path/to/project analyze          # Analyze the proyect

Run tests

python -m readmenator --test

UML Class Diagram

ReadMenator auto-generates Mermaid classDiagram from parsed class-level symbols across all supported languages. UML diagrams are embedded in KNOWLEDGE_BASE.md by default.

python -m readmenator /path/to/project uml              # Print UML class diagram

Generate Class Stubs in Other Languages

Translate extracted class structures into target language declarations:

python -m readmenator /path/to/project --c++            # C++ class declarations
python -m readmenator /path/to/project --java           # Java class declarations
python -m readmenator /path/to/project --csharp         # C# class declarations
python -m readmenator /path/to/project --kotlin         # Kotlin class declarations
python -m readmenator /path/to/project --scala          # Scala class declarations
python -m readmenator /path/to/project --swift-classes  # Swift type declarations
python -m readmenator /path/to/project --dart-classes   # Dart class declarations
python -m readmenator /path/to/project --ruby-classes   # Ruby class declarations
python -m readmenator /path/to/project --go-classes     # Go type declarations
python -m readmenator /path/to/project --rust-classes   # Rust type declarations
python -m readmenator /path/to/project --php-classes    # PHP class declarations
python -m readmenator /path/to/project --python-classes # Python class declarations

Supported target languages (12): C++, Java, C#, Python, Go, Rust, PHP, Kotlin, Scala, Swift, Dart, Ruby.

Architecture

Contract File Responsibility
Config _config.py Immutable centralized configuration
Models _models.py Symbol, Node, Edge, AnalysisResult
Parsers parsers/ package 19 language parsers + factory (Strategy pattern)
Scanner _scanner.py Secure directory walking, file-level docs, progress
Resolver _resolver.py Import path resolution
Mermaid _mermaid.py Mermaid graph with internal edges and community subgraphs
UML Generator _uml.py Mermaid class diagrams + 12-language code generation
Documentation _documentation.py KNOWLEDGE_BASE.md with TOC, dashboard, layers, analysis, UML
Query _query.py Query/explain/path engine with bidirectional path finding
Analyzer _analyzer.py Communities, god nodes, surprising connections, questions
Cache _cache.py SHA256 content cache for incremental updates
Exporter _exporter.py JSON, HTML (vis.js), SVG, GraphML, Obsidian
Layers _layers.py Architectural layer detection (5-layer model)
Watcher _watcher.py Filesystem polling watcher for auto-rebuild
README Injector _readme_injector.py Auto-injects KB link into project README
Application _app.py Application orchestrator
CLI __main__.py CLI entry point and argument dispatch

Security

  • Symlinks rejected
  • File size capped at 10 MB
  • Directory depth limited to 20
  • No absolute paths in source code
  • No external network calls in any module
  • All exceptions silently caught during parsing

License

image

AGPL-3.0

Knowledge Base

This project has been analyzed by ReadMenator, a zero-token polyglot static analysis tool. A comprehensive knowledge base is available:

  • KNOWLEDGE_BASE.md -- Architecture reference with all classes, functions, imports, dependency graphs, UML class diagrams, security audit findings, community analysis, and more.

AI agents and developers: Read KNOWLEDGE_BASE.md for full project context without LLM token cost.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

readmenator-1.0.3.tar.gz (153.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

readmenator-1.0.3-py3-none-any.whl (143.7 kB view details)

Uploaded Python 3

File details

Details for the file readmenator-1.0.3.tar.gz.

File metadata

  • Download URL: readmenator-1.0.3.tar.gz
  • Upload date:
  • Size: 153.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for readmenator-1.0.3.tar.gz
Algorithm Hash digest
SHA256 fa6c5bbc4bee118919e5b1e581185df9e5b5f7ab8779080ce1b1ad8d3785cf4a
MD5 fa514f0b843096904395e5b592b06867
BLAKE2b-256 e7591dda8c7aaab1fa7aea5853caae5d49e5c021c68e0046a68e3bf474b12333

See more details on using hashes here.

File details

Details for the file readmenator-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: readmenator-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 143.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for readmenator-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 80ddb8d54bcb4c88bef67cf78dd81f7e8b458f3c479d53a1583ef8928d209afa
MD5 46557fab4e350419be5962ad9e8862b9
BLAKE2b-256 e90bd09fec707bc60e6de385bbc3f25fd64343a27e83b1f6dc64ef6daf3bb8ac

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page