khive-runtime 0.1.0

Composable Service API: entity/note CRUD, graph traversal, hybrid search, curation.
Documentation

khive-runtime: composable Service API used by daemon, MCP server, and CLI.

Wraps StorageBackend + query compilation into a single Rust API.

Quick start

use khive_runtime::{KhiveRuntime, RuntimeConfig};

// In-memory for tests:
let rt = KhiveRuntime::memory()?;

// Default (production): reads ~/.khive/khive-graph.db
let rt = KhiveRuntime::new(RuntimeConfig::default())?;

// Create an entity:
let entity = rt.create_entity(None, "concept", "LoRA", None, None, vec![]).await?;

// Link two entities (EdgeRelation is the typed relation):
let edge = rt.link(None, entity.id, other_id, EdgeRelation::Extends, 1.0).await?;