How graphify-labs/graphify works
Graphify is a local code-and-document knowledge-graph generator with a CLI for building and querying project maps. The primary workflow discovers project files, extracts and resolves graph facts, builds and analyzes the graph, then persists and presents the results. README-documented branches include semantic processing for non-code materials and graph queries. Edges are limited to README statements and source-index references; unsampled implementation details are represented without speculative call chains.
Main entry points: build.py Graph builder · cli.py CLI workflow · extract.py Code extraction · analyze.py Graph analysis
Components 22
Entry and discovery
- CLI workflow
graphify/cli.py - File discovery
graphify/detect.py
Graph construction
- Symbol resolution
graphify/extractors/resolution.py - Node identity
graphify/ids.py - Graph deduplication
graphify/dedup.py - Graph builder
graphify/build.py - Incremental cache
graphify/cache.py
Input processing
- URL capture
graphify/ingest.py - Semantic extraction
graphify/llm.py - Code extraction
graphify/extract.py - Language parsers
graphify/extractors/engine.py - Extractor models
graphify/extractors/models.py - Manifest ingestion
graphify/manifest_ingest.py - SCIP ingestion
graphify/scip_ingest.py - MCP ingestion
graphify/mcp_ingest.py
Analysis and results
- Graph analysis
graphify/analyze.py - Community detection
graphify/cluster.py - Graph export
graphify/export.py - Interactive graph
graphify/exporters/html.py - Graph report
graphify/report.py - Graph queries
graphify/cli.py
Other components
- Developer
Connections 24
- Developer → CLI workflow: runs
README.md - CLI workflow → File discovery: discovers files
- File discovery → Code extraction: selects inputs
- Code extraction → Language parsers: dispatches parsing
- Code extraction → Symbol resolution: uses resolution
- Code extraction → Extractor models: uses models
- Semantic extraction → Graph builder: supplies graph facts
graphify/llm.py - Manifest ingestion → Node identity: creates package IDs
graphify/manifest_ingest.py - SCIP ingestion → Node identity: uses IDs
graphify/scip_ingest.py - MCP ingestion → Node identity: uses IDs
graphify/mcp_ingest.py - Graph builder → Node identity: normalizes IDs
graphify/build.py - Graph builder → Symbol resolution: uses resolution
graphify/build.py - Graph builder → Language parsers: uses extractors
graphify/build.py - Graph builder → Graph deduplication: deduplicates
graphify/build.py - Graph builder → Incremental cache: uses cache
- CLI workflow → URL capture: captures URLs
README.md - Graph analysis → Graph builder: uses built graph
graphify/analyze.py - Graph analysis → Community detection: detects communities
graphify/analyze.py - CLI workflow → Graph analysis: analyzes graph
graphify/analyze.py - CLI workflow → Graph export: writes graph
README.md - Graph export → Interactive graph: renders graph
graphify/exporters/html.py - CLI workflow → Graph report: produces highlights
README.md - Developer → Graph queries: asks questions
README.md - Graph queries → Graph analysis: queries graph