Features

What you can build with VLite

Vectors and graphs in one engine, embedded in your app or behind an API you run.

Optional capabilities list their requirements. Format numbers describe file compatibility, not product releases. SDK and transport coverage varies; each guide lists its API surface.

Storage and records

Persistence, record operations and collections
FeatureSupport and requirements
Single-file databaseA portable, versioned binary log in one authoritative .vlite file. Optional indexes and administration state can use sidecar files.
Durable commitsChecksummed frames, written before a write is acknowledged. Corruption and an incomplete trailing write fail with different errors.
Durability modesPeriodic (default): commits reach the OS at once and a background flusher syncs them every 60 s (1 ms to 60 s per handle). A process crash loses nothing acknowledged; an OS crash or power loss can lose up to the last interval. Full syncs every commit before acknowledging it. None keeps the database in memory only and loses all data on restart. Server: --durability periodic|full|none.
Vector CRUD and browsePut, get, delete, numeric-ID pagination, payload bytes and typed metadata. IDs keep all 64 bits.
Atomic batchesUp to 4,096 operations and 16 MiB per batch, within one collection. Only graph batches span collections.
Conditional writesRecord revisions, put-if-absent and revision-checked puts and deletes. A conflict writes nothing.
Named collectionsIndependent dimensions, IDs, settings and derived indexes in one file. Requires format 4 or 5.
Record expiry (TTL)Absolute expiry timestamps, expiry-aware reads and compaction. Requires format 5.
Metadata-only updatesChange metadata without rewriting the vector or payload; expiry is kept. Requires format 5.
Resumable ingestionAtomic chunks with durable checkpoints, replay detection, row validation and reject or skip-invalid policies. Requires format 4 or 5.
Key-value storeNamespaced string keys with byte values and no vector: ordered prefix listing, optional expiry and compare-and-set on versions. Use it from Rust, REST, gRPC, the clients, and local shell and MCP tools. Requires format 4 or 5; expiry needs 5.
Agent memoryOpt-in REST memory with per-scope read-only grants, bounded receipt cleanup, grant-change preflight, restart-free reload and status for existing bindings. Clients, CLI and MCP tools are also supported.
Directory store (opt-in)A format 5 database kept as a directory of write-ahead logs and a checkpoint image, so reopening replays only the active log. Created from Rust or converted from a file; older releases cannot open a directory store.
In-memory databaseCreate in memory, open from bytes and export bytes; the host handles persistence.

Storage contracts · Collections, revisions and ingestion · Periodic durability

Indexes and concurrency

Search acceleration and concurrent access
FeatureSupport and requirements
Rebuildable HNSWDeterministic parallel construction that does not depend on thread count, vectorized distances, configurable graph and search budgets, and bounded mutation buffering.
Scalar-u8 quantizationCompressed traversal codes with full-precision reranking of candidates. Original vectors stay in memory.
Metadata indexesEquality and range indexes with full-filter rechecks; rebuilt on reopen and on settings changes.
ANN restart snapshotsAn optional validated graph cache tied to the database state, from the server (--ann-snapshot), Rust, the C ABI and Python. Not available for encrypted databases.
Disk ANNAn optional graph and vector sidecar with a bounded node cache. Builds still need in-memory HNSW capacity; no metadata or expiry filtering.
Index quality and memorySampled recall against exact results, index identity and readiness, and component-level memory diagnostics.
Parallel exact scansNative Rayon scans above workload thresholds; not on WebAssembly.
Concurrent server readsShared reads and exclusive writes; bounded committed snapshots for eligible exact queries.
Shared embedded readersSeveral read-only processes under shared file locks, excluding a writer. Reopen to see later commits.
Committed read snapshotsRust handles for bounded exact search, get and browse outside the owner lock.
Background rebuildsExplicit start, poll, cancel and maintenance controls; optional server scheduling with retry backoff. A Rust option lets approximate queries keep using the ready index while a rebuild runs.
Durable group commitAn optional shared sync for bounded concurrent record writes; each write keeps its own atomic frame.
Read-lock policy--lock-held-reads trades snapshot copying for holding the owner read lock during exact scans.

ANN snapshots · Read snapshots · Index and concurrency controls

Vectors and AI integration

Embedding management and reranking
FeatureSupport and requirements
Named dense vectorsIndependent dimensions and metrics per vector name, with exact and ready-only named HNSW search. Requires format 5.
Sparse vectorsSorted sparse values, derived inverted postings and negative-dot-product retrieval. Requires format 5.
Model version historyActive and retained vector versions, explicit retention and pruning, and version-targeted search. Requires format 5.
Resumable re-embeddingDurable job checkpoints, source-revision checks and atomic activation on completion. Your application schedules provider work.
Embedding providersAn application-owned Embedder registry; an optional OpenAI-compatible HTTP provider with http-embedder. Servers can also offer administrator-managed provider aliases over REST and gRPC (opt-in, off by default).
RerankingPluggable providers, exact metric rescoring, MMR diversity selection and, over REST and gRPC, custom ranking through a managed provider alias.
Typed float32 inputsPython buffer methods (search_f32, batch_put_f32) and Node.js Float32Array methods (searchF32, searchManyF32, batchPutF32). Inputs are copied, not zero-copy.
GPU exact searchAn optional gpu build using wgpu: default-collection squared L2 with CPU reranking and fallback. No filtered or cosine GPU search.

Vector and provider guide · GPU and storage limits

Property graphs

Graphs stored in the same file and commit log as vectors
FeatureSupport and requirements
On by defaultNew files hold vectors and graphs, and older releases cannot open them. Ask for format 3 or 4 for a plain vector file. vlite-maintain enable-graph adds graph support to a copy of a plain format 4 or 5 file.
AvailabilityCompiled into every build: release binaries, the C library, Python wheels, Node.js release tarballs and the Docker API server. vlite-graph-cli ships in the release archives, not the Docker image.
Data modelUp to 64 named graphs per file. Nodes have a unique key, labels and typed properties; edges have a type, endpoints, an optional key and properties. Attachments link nodes to live vector records.
Atomic graph batchesUp to 4,096 node, edge, attachment and vector operations, in any collection, commit atomically or not at all. expected makes an operation conditional.
Bounded readsNode and edge gets, paged find and neighbors, traversal and shortest path, each on one committed view. Hop, work, output and deadline limits apply; results report completeness and truncation.
Expiry (TTL)Nodes and edges can carry deadlines; an expired node is hidden with all its edges. An opt-in Rust feed reports deadlines and removals. Rust API only.
Local algorithmsDegree, weighted shortest path, PageRank, label propagation and sampled betweenness on an explicit local scope, under work, memory and iteration limits. Rust API only.
Schemas and property indexesLabel and relationship rules for required and unique properties, endpoints and multiplicity. Property indexes serve node lookups and are rebuilt on open.
Hybrid retrievalA vector, text or fused pivot search, mapped to nodes through attachments and expanded, returns nodes with their evidence records.
Query textA small read-only language that maps to one typed read.
SurfacesRust, vlite-graph-cli, MCP vlite_graph_* tools, REST /v1/graphs, the C ABI, Python, Node.js and the dashboard Graph workspace. Schemas, retrieval and query text are not in the C ABI, Python or Node.js yet.
Access controlGraphs are tenant-owned. API keys need graph_read or graph_write and a graphs binding; accounts get role-based access, narrowed by graphs and graph_access. Collection scope never implies graph scope.
Maintenance and rollbackBackup, restore, verify, compaction, format upgrade, re-encryption and read replicas keep graph state. vlite-maintain strip-graph --confirm-graph-data-loss copies the vectors to a plain format 5 file.
Change feed and webhooksGraph commits appear as graph_created, graph_dropped and graph_batch events. Webhooks can limit graph events to named graphs.
Not supportedgRPC has no graph service, and vlite-graph-cli cannot open encrypted files. Reads cannot ask for an earlier point in time, query text cannot write, and REST, gRPC, MCP and the CLI do not expose expiry or algorithms.

Graph guide · Graph query language · Graph CLI · MCP graph tools

The unreleased compact graph codec is reviewed but test-only; production storage is unchanged.

SDKs, APIs and deployment

Ways to use the same engine
FeatureSupport and requirements
Embedded RustDirect database and collection APIs with explicit Cargo feature selection.
Native bindingsC ABI, synchronous Python and asynchronous Node.js/TypeScript bindings.
PackagesPython vlite-embedded (in-process) and vlite-client (REST) are on PyPI. Node.js tarballs, the C library and binaries are GitHub release assets; npm packages are not published.
REST serviceAuthenticated JSON API, OpenAPI contract, capability discovery and structured errors. Requires server.
gRPCAn optional protobuf service with bounded streaming import and export, health and shared authorization. Requires grpc and a listener.
Bounded API workRequest and body limits, bounded admission and explicit overload errors; grouped writes drain on graceful shutdown.
Remote clientsPython, JavaScript/TypeScript, Go and .NET clients.
DockerAPI and optional dashboard images, persistent data and admin volumes, and loopback defaults. The API server includes graph support.
Helm deploymentA chart and operational configuration for Kubernetes.
Azure Container Apps (experimental)Single server by default. Opt-in HA: gateway, Blob-backed readers, optional single-writer fencing. Manual failover; auto-failover is opt-in, unqualified. Measurement limits.
WebAssemblyA byte-buffer backend and wasm-bindgen wrapper, built from source; the host supplies time and persistence. No path locking or background threads.
Native platformsWindows, Linux and macOS; available binaries and wheels vary by architecture and package.

API reference · gRPC scope · Installation matrix · Helm guide

Security and access control

Optional protection and authorization controls
FeatureSupport and requirements
Encryption at restChaCha20-Poly1305 frame bodies and Argon2id passphrase derivation. Frame prefixes stay visible.
Key rotationValidated copy-out re-encryption; encrypted backups keep encrypted bytes.
Token authenticationAdmin and optional read-only HTTP bearer tokens, plus scoped API keys.
Dashboard accountsSuper admin, editor and viewer roles, Argon2id password hashes and HttpOnly, SameSite=Strict cookie sessions (by default 30 minutes idle, 8 hours total). Sign-in needs HTTPS or a loopback-only server.
Scoped authorizationCollection, operation and graph permissions, with credential expiry, rotation and revocation.
Credential quotasRequest-rate limits and aggregate or per-collection live-vector quotas.
Tenant namespacesTenant-owned collections, graphs, API keys, accounts and quotas in one file, with suspend, resume and delete. Isolation is logical, not cryptographic.
HTTPS and gRPC TLSNative TLS or a trusted reverse proxy; optional gRPC client certificates.
Certificate reloadAdmin-triggered, validated identity and CA reload; existing sessions are unchanged.
Audit and redactionAdministrative audit history, redacted request logs and allowlisted trace attributes.

Security guide · Credential and audit administration

Operations, recovery and integration

Maintenance and operational visibility
FeatureSupport and requirements
Inspect and verifyOffline file, header and frame validation, detailed reports and keyed operations on encrypted files.
Backup and restoreValidated backups, schedules, retention, drills and restart-selected restore; opt-in memory-aware Azure Blob backups.
Compaction and format upgradeValidated copy-out, never in place; opt-in experimental dashboard compaction (Linux ext4).
Interrupted-write recoveryExplicit repair of an incomplete tail; complete but corrupt data fails closed.
Point-in-time restoreSequence-targeted restore; timestamp targets need commit timestamps. Restores publish a new lineage.
Change feedLineage and sequence cursors, whole-commit batches and explicit cursor invalidation after history changes. Covers vector and graph commits. Requires format 4 or 5.
Read replicasValidated log-segment export and apply, lag status and explicit promotion. File shipping, not automatic network replication.
WebhooksAt-least-once change-feed delivery with HMAC signatures, retry backoff and persisted subscriptions and cursor. Every event type by default, with optional event, collection and graph filters. Consumers deduplicate events.
Health and metricsHealth endpoints, JSON and Prometheus metrics, latency and route counters, and queue, sync, snapshot and rebuild diagnostics. With agent memory, metrics are opt-in.
Live logsA bounded in-memory ring, sequence cursors, filters and JSONL export; not a durable log archive.
OpenTelemetryOptional OTLP tracing through otel, with an operator-configured collector.

Deployment operations · Recovery and replicas · Webhooks

Dashboard

  • Password sign-in; tokens for setup, automation and recovery.
  • Nine workspaces: Overview; Data: Collections, Search, Key-value, MemoryAI, Graph; Server: Observability, Administration; Tools: Developer Console.
  • Super admin, editor and viewer roles; disabled controls explain why.
  • Paginated records, selectable metadata columns; Payload, Metadata, Vector and Raw JSON inspector.
  • Validated single-record and bulk JSON writes, revision checks and change confirmations.
  • JSON/CSV import and export; resumable JSON, NDJSON and CSV imports.
  • Collection creation/settings, index builds, background rebuilds, readiness and sampled recall.
  • Exact, approximate, ready-only, automatic and hybrid search; filters, explain, exact-versus-approximate comparison, code examples and saved queries.
  • Reranking, grouping, geo radius, named/sparse vectors, recommendations, facets and query language.
  • Analyze & compare: duplicate/type checks and 2-D plots of up to 32 records; two-record comparison.
  • Graph: lookups, traversal, shortest paths, confirmed edits, rotatable 3D results, explain plans and statistics.
  • Observability: live metrics/logs, slow-query diagnostics and change feed.
  • Administration: health, token files, users, tenants, admin tokens, audit and MemoryAI grant preflight, live reload and status; backups, drills, schedules, point-in-time restore, replication-log export; automatic index maintenance, webhooks, TLS reload.
  • API keys (super admin): list, create, rotate, revoke; collection/graph scopes, optional tenant, expiry, request-rate and vector quotas. All 11 operations: read, search, search_build, write, import, index, collections, diagnostics, backup, graph_read, graph_write. Secrets appear once; rotation preserves scope with optional grace. No scope-edit route: create a replacement and revoke the old key.
  • Developer Console: request inspector, REST playground, read-only scenarios.
  • Account menu: identity, password, theme, density, tour, sign-out; responsive and keyboard-accessible.

Take a tour · Dashboard guide

Command-line tools and agents

  • Interactive or scripted shell: query records and collections, and run key-value commands; --read-only disables writes and takes only a shared file lock.
  • Offline maintenance: inspect, verify, back up, restore, compact, upgrade and re-encrypt, plus enable-graph and strip-graph to add or remove graph support.
  • Import: CSV, JSONL, pgvector text and supported FAISS input; optional Parquet and Arrow IPC with import-formats.
  • Search quality: exact-oracle recall, configuration and database comparison, and bounded index evaluation.
  • Index tuning: a workload-based configuration advisor with memory and recall trade-offs.
  • Benchmark harnesses: seeded or external vectors, mixed writes and deletes, and raw timing and memory reports.
  • Graph CLI: vlite-graph-cli creates files and runs graph reads and write batches as JSON.
  • MCP server: stdio tools with shared-lock read-only access by default and an explicit --writable mode. Graph tools work on a file or through a server with --server URL. Six local key-value tools work on a file, three of them writing.
  • Agent skills: four skills for RAG, MCP, operations and index tuning.

CLI guide · MCP guide · Agent skills

Requirements and boundaries

  • The live dataset must fit in RAM. Disk ANN bounds its node cache, not the database's overall memory footprint.
  • One exclusive writer or several shared read-only owners per file; no embedded writer and readers across processes at the same time.
  • New files are format 5 with graphs, which older releases cannot open. Format 3 or 4 creates a plain vector file without the newer features. Upgrades are explicit.
  • Vector batches stay within one collection; only graph batches span collections. No distributed consensus, automatic network replication or inner-product ANN.
  • Plaintext ANN sidecars are unavailable with encrypted databases. TLS and access controls are separate from file encryption.
  • Tenants share one file. Their isolation is logical, not cryptographic.
  • Embeddings come from your application or provider. VLite does not bundle a model runtime.
  • Recovery checks do not certify physical power-loss behavior; filesystem and hardware guarantees still apply.
  • gRPC has no graph service.