How syntaxpriest/openvisio-oss works
OpenVisio indexes repositories into a deterministic symbol/import/call graph, then serves ranked, token-budgeted context to coding agents through MCP and visualizes the graph in Atlas and City views. The main path is repository selection → parsing and graph construction → ranking and queries → agent response or viewer visualization. Edges are limited to relationships visible in excerpts, the source index, or README; some viewer and indexing internals are unsampled.
Main entry points: server.ts MCP server · App.tsx Viewer workspace · rank.ts Centrality ranking · tools.ts Agent tools
Components 22
Graph engine
- Tree-sitter parsing
core/src/parse/treesitter.ts - Language grammars
core/src/parse/grammars - Graph construction
core/src/build.ts - Code graph
core/src/types.ts - Centrality ranking
core/src/rank.ts - Context resolution
core/src/resolve.ts - Content search
core/src/search.ts - Graph queries
core/src/query.ts
Agent interface
- MCP server
mcp/src/server.ts - Agent tools
mcp/src/tools.ts - Live spotlight
mcp/src/spotlight.ts
Local viewer
- Viewer workspace
viewer/src/App.tsx - Atlas view
viewer/src/components/graph/AtlasView.tsx - City view
viewer/src/components/city/CityView.tsx - Local graph API
ui/app/api/local-graph/route.ts
Browser indexing
- GitHub indexing
viewer/src/indexer/github.ts - Browser indexer
viewer/src/indexer/index.ts - Browser parsing
viewer/src/indexer/treesitter.ts
Other components
- Developer
- Repository
- MCP client
- GitHub
Connections 26
- Developer → Repository: selects
- Repository → MCP server: indexes
mcp/src/server.ts - MCP server → Graph construction: builds graph
mcp/src/server.ts - Graph construction → Tree-sitter parsing: parses files
- Tree-sitter parsing → Language grammars: uses grammar
core/src/parse/treesitter.ts - Graph construction → Code graph: produces
- MCP server → Centrality ranking: computes centrality
mcp/src/server.ts - MCP server → Live spotlight: starts optionally
mcp/src/server.ts - MCP client → MCP server: connects
- MCP server → Agent tools: registers tools
mcp/src/server.ts - Agent tools → Context resolution: resolves context
mcp/src/tools.ts - Agent tools → Content search: searches content
mcp/src/tools.ts - Agent tools → Graph queries: queries graph
- Centrality ranking → Code graph: ranks imports
core/src/rank.ts - Context resolution → Centrality ranking: uses ranking
- Content search → Centrality ranking: uses ranking
core/src/search.ts - Graph queries → Centrality ranking: uses ranking
core/src/query.ts - Developer → Viewer workspace: opens viewer
- Viewer workspace → Atlas view: renders atlas
viewer/src/App.tsx - Viewer workspace → City view: renders city
viewer/src/App.tsx - Viewer workspace → GitHub indexing: indexes GitHub
viewer/src/App.tsx - GitHub indexing → GitHub: fetches repository
- GitHub indexing → Browser indexer: indexes files
viewer/src/indexer/github.ts - Browser indexer → Browser parsing: parses files
viewer/src/indexer/index.ts - Viewer workspace → Local graph API: requests local graph
viewer/src/App.tsx - MCP server → Live spotlight: publishes live focus
mcp/src/server.ts