Skip to main content

Crate reflow_assets

Crate reflow_assets 

Source
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 hash

Modules§

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
AssetEntry
AssetQuery
Internal query representation parsed from JSON DSL.
Delta
FileBackend
Filter
MemoryBackend

Enums§

AssetType
DeltaOp
FilterOp
SortOrder
TagMatch

Traits§

DeltaListener
Listener that receives deltas from AssetDB mutations.
StorageBackend
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).

Type Aliases§

AssetId