How gridlogic-dk/graphify works
Graphify turns a project corpus into a queryable knowledge graph and presents it as visualizations and reports. The primary workflow is discovery and extraction, graph assembly, analysis, then export; users can also query through the serving interface or keep a graph updated as files change. Documented capabilities include call-flow pages, MCP ingestion, pull-request analysis, and direct LLM extraction. Some subsystem links below rely on README descriptions or SOURCE INDEX references; unsampled implementations are not asserted beyond those connections.
Main entry points: __main__.py CLI · watch.py Change watcher · build.py Graph assembly · analyze.py Graph insights
Components 22
Entry and updates
- CLI
graphify/__main__.py - Change watcher
graphify/watch.py
Corpus processing
- File discovery
graphify/detect.py - Code extraction
graphify/extract.py - URL ingestion
graphify/ingest.py - MCP ingestion
graphify/mcp_ingest.py - LLM extraction
graphify/llm.py - Extraction cache
graphify/cache.py - Security helpers
graphify/security.py
Graph and analysis
- Graph assembly
graphify/build.py - Graph validation
graphify/validate.py - Node deduplication
graphify/dedup.py - Community clustering
graphify/cluster.py - Graph insights
graphify/analyze.py
Query and presentation
- Graph report
graphify/report.py - Graph export
graphify/export.py - Call-flow pages
graphify/callflow_html.py - Interactive graph view
graphify/tree_html.py - Query server
graphify/serve.py - Query log
graphify/querylog.py - Pull-request analysis
graphify/prs.py
Other components
- Engineer or agent
Connections 37
- Engineer or agent → CLI: runs
README.md - CLI → File discovery: discovers files
graphify/__main__.py - CLI → Code extraction: extracts code
graphify/__main__.py - CLI → URL ingestion: fetches sources
graphify/ingest.py - CLI → MCP ingestion: indexes MCP
graphify/mcp_ingest.py - CLI → LLM extraction: extracts semantically
graphify/llm.py - CLI → Graph assembly: builds graph
README.md - Code extraction → Extraction cache: uses cache
graphify/extract.py - Code extraction → File discovery: classifies files
graphify/extract.py - Graph assembly → Graph validation: validates
graphify/build.py - Graph assembly → Node deduplication: deduplicates
graphify/build.py - CLI → Graph insights: analyzes graph
graphify/__main__.py - Graph insights → Graph assembly: reads graph
graphify/analyze.py - Graph insights → Community clustering: uses communities
graphify/analyze.py - CLI → Graph report: writes report
README.md - Graph report → Graph insights: summarizes insights
graphify/report.py - CLI → Graph export: exports graph
README.md - Graph export → Graph insights: uses analysis
graphify/export.py - Graph export → Graph assembly: reads graph
graphify/export.py - Graph export → Security helpers: sanitizes output
graphify/export.py - CLI → Interactive graph view: renders graph
graphify/__main__.py - CLI → Call-flow pages: exports call flows
README.md - CLI → Query server: starts server
graphify/__main__.py - Query server → Graph assembly: loads graph
graphify/serve.py - Query server → Graph insights: queries insights
graphify/serve.py - Query server → Pull-request analysis: routes PR analysis
graphify/serve.py - Query server → Query log: logs queries
graphify/serve.py - CLI → Change watcher: watches changes
graphify/__main__.py - Change watcher → File discovery: checks changes
graphify/watch.py - Change watcher → Code extraction: re-extracts files
graphify/watch.py - Change watcher → Graph assembly: rebuilds graph
graphify/watch.py - Change watcher → Graph insights: refreshes insights
graphify/watch.py - Change watcher → Graph report: refreshes report
graphify/watch.py - Change watcher → Graph export: refreshes export
graphify/watch.py - Change watcher → Community clustering: reclusters graph
graphify/watch.py - Change watcher → Call-flow pages: refreshes pages
graphify/watch.py - URL ingestion → Security helpers: fetches safely
graphify/ingest.py