npm install @hydradb/selfgraph@0.2.0
New
new SelfGraph(store, { level: "light" | "balanced" | "max" }) sets how much each capability does. max_tier caps cost.
graph.checkAnswerable(question) and graph.readiness() tell an agent what the graph holds. No LLM.
graph.relations.certify(id, { by }) marks a fact as checked by a person, so contradictions, source replacement, prune and dedupe keep it.
insert.text(text, { replace_source: true }) retires facts a new source version no longer states.
contradiction: "llm" retires conflicting facts without a schema.
- Schema types take synonyms, definitions and mappings.
fromTables(tables) drafts a schema from table metadata.
retrieve(query, { skip_hubs: true }) stops walking through hub entities.
toOssie(schema) exports an Apache Ossie ontology. graph.exportObsidian() writes an Obsidian vault.
- HydraDB writes run in parallel, with indexed lookups.
- Same CLI commands and MCP tools as Python, and the same output byte for byte.
Breaking
- Renamed:
Ontology to Extraction, DefaultExtractor to LLMExtractor, BasicExtractor to NERExtractor, preference kind to stance, and maintenance.consolidate to maintenance.dedupeRelations.