Documentation

Property graphs

VLite can store named property graphs (nodes, typed edges and attachments to vector records) in the same file and commit log as vectors. Since v0.5.1 graph support is compiled into every build: the library, binaries, C library, wheels, Node packages and the Docker image's API server (vlite-server). vlite-graph-cli is not in the image; there is no graph Cargo feature. Every new file is graph-enabled: each create path (Rust, servers, CLIs, C, Python, Node, wasm, in-memory) writes a v5 file with FLAG_GRAPH. An explicit v3 or v4 create stays vector-only. Existing files without the flag open unchanged as vector-only files; copy one with vlite-maintain enable-graph.

Get it

Surface Release artifact Source checkout
Rust — vlite (default features)
CLI vlite-graph-cli in the release archive cargo install --locked --path . --features json --bin vlite-graph-cli
MCP vlite-mcp in the release archive cargo install --locked --path . --features "mcp mcp-proxy" --bin vlite-mcp
REST vlite-server in the archive and Docker image (vlite-graph-cli is not in the image) cargo build --locked --release --features server --bin vlite-server
C, Python, Node release C library, wheels, Node release tarballs cargo build --locked --release -p vlite-ffi

Vector-only files are unaffected: on them the graph routes, tools and capabilities stay absent or report that graphs are not enabled.

Compatibility and rollback

Data model and consistency

Expiry (TTL)

Nodes and edges can carry a deadline in ms since the Unix epoch, as records can. This is in the embedded Rust API only; REST, gRPC, MCP, the CLI and the bindings do not expose it yet.

Limits

Omitted limits use defaults; larger values fail with graph_limit_exceeds_ceiling rather than being clamped.

Limit Default Ceiling
max_hops 2 4
max_visited_nodes 1,000 10,000
max_edges_examined 10,000 100,000
max_edges_per_node 1,000 10,000
deadline_ms 250 5,000
max_output_nodes / edges / paths 100 / 200 / 20 1,000 / 2,000 / 100

Results report complete, truncation reasons and work statistics. A truncated shortest-path search reports exhausted, never an uncertified "no path".

Schema, retrieval and query text

Bounded local algorithms (Rust)

GraphRef::algorithm(&request, &options) runs one algorithm on one explicit local scope (Gap 5 slices S1 to S4). Its embedded Rust surface is implemented, reviewed and accepted, including PageRank, label propagation and sampled betweenness. REST, gRPC, MCP, query text, the CLI and the bindings do not expose it. Nothing is stored and nothing writes.

Algorithm cap Default Ceiling
max_vertex_operations 100,000 1,000,000
max_scratch_bytes 64 MiB 256 MiB
max_iterations 20 100
max_sampled_sources 16 64

Results echo view_sequence, read_time_unix_ms, algorithm_version, the normalized request (with every output) and work statistics. There are no cursors, no attachment or payload access and no whole-graph mode. See the Gap 5 design.

Compact graph storage (unreleased)

The private P4 codec is implemented and independently reviewed, but test-only. It preserves IDs, keys, revisions, labels, deadlines, typed properties, node attachments, declared schema and temporal edge series in bidirectional CSR adjacency, with private decoded reads, a mutation overlay, parallel import staging and checkpoint-block framing, all gated off. Production storage and APIs are unchanged; checkpoint reads, production mutation integration, full import, native indexes and performance qualification remain outstanding.

Temporal edges (Rust, unreleased)

Gap 4 slices A and B are implemented, independently reviewed and integrated, but unreleased. Each temporal edge has an ID, key, type and endpoints like any edge, plus an ordered series of at most 256 non-overlapping validity segments [valid_from, valid_to) in milliseconds. Each segment carries its own properties. Production builds refuse temporal operations and temporal files with UnsupportedFeature(64); temporal reads (slice C), public activation and production qualification remain outstanding. REST, gRPC, MCP, query text, the CLI, the bindings and the dashboard do not expose them.

See the Gap 4 design for the contract, allocations and known gaps.

Surfaces

Surface What it offers
Rust create, create_graph/drop_graph/list_graphs, graph_mut(name), graph(name), explain, query_text, retrieve
CLI vlite-graph-cli; see graph operations
MCP vlite_graph_* tools, on a file or through a server with --server URL (mcp-proxy feature); see MCP
REST /v1/graphs routes: list, create, drop, gets, find, neighbors, traverse, shortest path, explain, schema, retrieve, query, batch
C ABI {"op":"capabilities"} and {"op":"graph","request":{...}}
Python supports_graph(), create(), graph_* methods
Node supportsGraph(), create(), graph* methods (guide)

REST access. Graph routes accept the admin token, the read-only token (reads only) or vlk_ credentials with graph_read / graph_write and a graphs binding naming the graph (or ["*"]). Signed-in users also have graph access: super_admin and editor can read and write, viewer can read, narrowed per account by the graphs and graph_access knobs below. Collection scope never implies graph scope. Batches that write vectors also need write scope on each collection. Retrieve needs read on the pivot collection; evidence from collections the caller cannot read is left out and counted in redacted. Collections are named as stored, so tenant users reach only their tenant's t<tenant_id>__<name> collections.

Tenant and user scoping (v1.2.20). Graphs are tenant-owned like collections. For a tenanted principal (a tenant vlk_ key or a signed-in user with a tenant_id), graph names in paths, create bodies and graphs bindings are tenant-local: g is stored as t<tenant_id>__g, responses show g, and lists show only that tenant's graphs. A tenant-local name is at most 28 bytes. The admin token, the read-only token and untenanted principals use stored names and see every graph. A tenant cannot be deleted while it owns graphs (409 tenant_not_empty). Graph files are unchanged; scoping is by name only, and the CLI and MCP-on-file paths have no tenants.

Account field Values Effect
graphs absent/null (role default ["*"]), [], or 1-64 names Graphs the account may use, within its tenant
graph_access absent/null (role default), none, read, write Caps graph operations; never above the role (viewer: read)

POST /v1/admin/users and PUT /v1/admin/users/{id} accept both (null resets on update); super admins take neither, and a viewer with write is 422. Changing either ends the account's sessions. Account views and /v1/auth/session report the stored knobs; GET /v1/capabilities scope reports the effective grant. Servers older than v0.5.0 refuse both fields.

Embedded. Python and Node enable graph methods only when the loaded native library reports {"graph": true}; otherwise every graph method fails with unsupported. Schema, retrieval and query text are not in the C ABI, Python or Node yet.

Change feed and webhooks

Since v0.6.0 the change feed covers graph-enabled files on every surface: the Rust API (feed_cursor, changes_after, changes::read_log_changes), REST GET /v1/changes, gRPC Changes/WatchChanges, webhooks, the C ABI changes_after and the Python, Node and wasm bindings. Cursors are unchanged and a commit is never split across pages; a commit that mixes vector and graph writes yields its events in log order (graph ops before and after an inline vector write become separate graph_batch events of the same sequence). Encrypted files decrypt graph events with the database key.

Event type Fields Meaning
graph_created graph A graph was created
graph_dropped graph An empty graph was dropped
graph_batch graph, revision, operations One committed graph frame, in order

Graph events have collection: "". revision is the commit sequence (a decimal string). Each operation has an op:

op Fields
node_upserted id, key, labels, properties, created
node_patched id, key, add_labels, remove_labels, set, unset
node_deleted id, key
edge_upserted id, key (or null), source, source_key, relationship, destination, destination_key, properties, created
edge_patched id, key, set, unset
edge_deleted id, key
attached, detached node, node_key, collection, record
schema_updated schema (the PUT /v1/graphs/{graph}/schema shape; empty removes it)

Node and edge IDs, record and revision are decimal strings in JSON; properties use the typed metadata JSON. Operations are the frame's entries as the engine records them: upserts carry the full labels and properties (created is false when the ID already existed), patches only the change.

Not supported

Other proposed additions are listed in product gaps.

Release note text for GATE-008 (approved for v0.5.0)

Experimental property graphs (opt-in). VLite can store named property graphs alongside vectors in one file, with atomic mixed graph/vector writes, bounded traversal and shortest paths, schemas with property indexes, hybrid vector/text-to-graph retrieval and a read-only query language. Graph support is off unless enabled; graph-enabled files carry a header flag and are refused by builds without graph support. Roll back with vlite-maintain strip-graph --confirm-graph-data-loss. Change feeds and gRPC do not support graph files.

The owner approved this text and graph artifacts on 2026-10-25; it ships in v0.5.0. The graph-off performance baseline refresh (DO-005) is deferred until after the release.

View or edit this page on GitHub ↗