Flowify
Interactive graph-grounded code explorer with LLM Q&A

Built at an IBM hackathon and deployed as a public demo on Render: ~9,800 lines of Python across 22 backend files, 46 HTTP routes, a ~3,800-line React frontend, and an MCP server for IDE assistants. A repository is processed in three phases: repo-context analysis (README, manifests, entry points), AST and semantic enrichment (six languages → Canonical Intermediate Representation → per-function summaries), and continuous learning from query patterns and feedback. Call edges are resolved by a scoped, confidence-ranked matcher (self-call, attribute type, receiver class, module import, same-file, unique repo-wide). Retrieval runs multi-signal TF-IDF → LLM re-rank → BFS over real call edges and degrades to pure TF-IDF without an LLM. The frontend renders a dual-layer graph with ReactFlow and Dagre, including a lane overview that opens into a focus view, with 5 semantic edge types. Hosted instances guard against oversized repos (source size, node count, parse time). The LLM layer is provider-neutral: Ollama (local or Cloud), Claude, OpenAI, Copilot, OpenClaw or a no-LLM heuristic mode, with per-request bring-your-own-key headers.
What it does
- Multi-language AST parsing (Python, JS, TS, Java, C, C++) into a Canonical Intermediate Representation
- Graph structure is the retrieval index: no embeddings, TF-IDF → LLM re-rank → BFS over call edges
- Dual-layer graph (function and module level) with greedy modularity community detection (NetworkX)
- Lane overview to focus view for repos with many top-level modules; viewport culling keeps the graph responsive past a thousand nodes
- 5 semantic edge types colour-coded in ReactFlow: CALLS, EXPOSES_API, USES_DB, EMITS_EVENT, CONSUMES_EVENT
- Deterministic graph analytics: PageRank, betweenness, cycles, bridges, dead code, god nodes, cross-module couplings
- Knowledge layer linking READMEs, ADRs and RFCs to the code they document, with a provenance record on every derived fact
- Change-impact analysis: risk level (low to critical), callers, DB operations, affected modules
- Graph-grounded answers with a 'Grounded in N nodes' badge, numbered call-chain steps and user feedback
- MCP server and agent export for VS Code and other assistants
- Hosted-instance guards (source size, node count, parse time), per-IP rate limit, bring-your-own-key headers
- Docker deployment on Render with CI on every push and a GHCR image on version tags
Pipeline
- 1Phase 1: Repo Context (README, manifests, entry points)
- 2Phase 2: AST → CIR → LLM Summaries
- 3Phase 3: Continuous Learning (feedback loop)
- 4Ingest guards (size / node count / parse time)
- 5FastAPI Backend (46 routes) + MCP Server
- 6ReactFlow + Dagre Frontend