Expand description
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 hashModules§
- graph_
projection - Knowledge graph projection — projects AssetDB + Reflow Network into KyuGraph, a property graph database queryable via Cypher.
- layout
- Layout backend trait — abstracts DOM/layout tree for AssetDB integration.
Structs§
- Asset
- AssetDB
- Asset
Entry - Asset
Query - Internal query representation parsed from JSON DSL.
- Delta
- File
Backend - Filter
- Memory
Backend
Enums§
Traits§
- Delta
Listener - Listener that receives deltas from AssetDB mutations.
- Storage
Backend - Pluggable storage backend for AssetDB. Implementations: FileBackend (native), MemoryBackend (wasm), S3Backend (remote).
Functions§
- get_
or_ create_ db - Get or create a file-backed AssetDB (native).