Build a Graph
Compile a TypeScript repository into a deterministic Software Graph.
Why
The graph is the artifact every downstream tool consumes. Build it once, then query, validate, export, or expose it through MCP.
Build
Run:
ontoly build examples/basicThe compiler:
- discovers package and TypeScript files
- parses source
- extracts symbols
- extracts relationships
- builds indexes
- writes graph artifacts
Artifacts are written to ontoly-output/ by default:
SoftwareGraph.json
manifest.json
coverage.json
quality.json
semantic-model.json
reports/
nodes/
relationships/
communities/
html/For the compact cache-style artifact directory, pass --output .ontoly:
ontoly build examples/basic --output .ontolyThat writes:
SoftwareGraph.json
graph.json
cache.json
indexes.json
diagnostics.json
metadata.json
statistics.jsonIdentical input should produce identical graph IDs and deterministic graph hashes. The generated timestamp is intentionally fixed inside the graph metadata so the graph hash is not invalidated by build time.
Inspect
ontoly inspect UserService --root examples/basic
ontoly search UserService --root examples/basic
ontoly impact UserService --root examples/basic
ontoly coverage examples/basicIf something feels off:
ontoly doctor .