Dual Storage and In-Place Archives
Enmesh separates where existing files live from where uploads and generated derivatives write through a StorageDriver interface.
Storage Adapter Kinds
| Kind | Write Policy | Best For |
|---|---|---|
local_ro |
Read-only (ReadOnlyStorageError on any write) |
NAS shares (Synology, TrueNAS, Unraid) and local model folders |
local_rw |
Writable inside confined root paths | Self-hosted Managed Inbox for uploads and browser captures |
s3 |
Writable S3, Cloudflare R2, or MinIO | Cloud deployments, remote buckets, or off-NAS backups |
Path Confinement and Zero Sidecar Clutter
- Storage validation resolves all local paths against
ENMESH_LIBRARY_ROOTSand blocks..traversal. - Thumbnails and web
.glbderivatives always write toENMESH_DERIVATIVES_DIRand never touch user library folders.
In-Place ZIP Archive VFS
When the Rust worker scans a .zip file, it reads the ZIP central directory without extracting files to disk. It writes virtual file_entries rows pointing to (parent_archive_id, inner_path, compressed_size, byte_offset).
- Archive cards display automatic 2x2 3D contact sheets made from up to four meshes inside the ZIP.
- When you open a file inside a ZIP, Enmesh streams only that entry to the Three.js viewer or download route.
- Milestone 2 expands Archive VFS to
RAR,7Z,TAR/TGZ, and S3 HTTP RangeZIPreading.