2 releases
| 0.2.1 | Apr 26, 2026 |
|---|---|
| 0.2.0 | Apr 22, 2026 |
#1285 in Data structures
Used in 7 crates
(3 directly)
105KB
2K
SLoC
File-based asset database for Reflow workflows.
Inspired by CastleDB — a structured, queryable asset store that persists across actor invocations and workflow runs. Binary data is content-addressed for automatic deduplication.
Storage backends
- FileBackend (native) — directory with manifest.json + blobs/
- MemoryBackend (wasm/testing) — in-memory HashMap
- S3Backend (remote workflows) — to be implemented
Directory structure (FileBackend)
assets.db/
manifest.json ← asset index
blobs/
ab/abcdef1234... ← binary data keyed by content hash
reflow_assets
Content-addressed asset database conventions for Reflow — the aid://blake3/… URI scheme plus typed metadata and content kinds used across the runtime.
Most users should depend on
reflow_rtwhich re-exports this crate asreflow_rt::assets. Direct use is only needed for custom tools that author, index, or serve Reflow assets.
What it provides
- Asset identifiers and URI parsing.
- Content-kind enumeration for meshes, textures, tensors, audio, etc.
- Shared types consumed by
reflow_asset_registry(for the registry client) and by asset-producing / consuming actors inreflow_components.
Quick glance
use reflow_assets::{Asset, AssetId};
let aid: AssetId = "aid://blake3/…".parse()?;
let asset = Asset::new(aid, /* kind */ reflow_assets::ContentKind::Mesh);
Pure-Rust and Wasm-safe — no filesystem, network, or codec dependencies by default.
License
MIT OR Apache-2.0.
Dependencies
~1.8–6MB
~110K SLoC