UNAVI Docs unavi.xyz
Build · Formats

.hsdz: compiled package

An .hsdz file is a compiled .hsda scene packed into a single self-contained binary archive. This is the format loaded into spaces.

The format is not version-locked and may change between releases.

Build

Run hsd from the unavi workspace to compile an .hsda source file:

hsd build --input <file.hsda> --out-dir <dir>

Output files are named after the parent directory of the input file, so unavi-spawner/asset.hsda produces unavi_spawner.hsdz.

During compilation, hsd build:

The resulting package bundles every mesh, texture, and script it depends on. Once loaded into a peer, those assets are content-addressed in iroh-blobs, automatically deduplicating shared meshes and images.

Limits

The loader rejects any package that exceeds these limits:

LimitValue
Single entry32 MiB
Total package size256 MiB
Documents per package256

Inspect

Use hsd dump to print the contents of a package in .hsda-like RON syntax:

hsd dump <file.hsdz>

Large binary blobs such as meshes and compiled scripts appear as byte counts. The dumped output is for inspection only and cannot be rebuilt directly, because compilation inlines referenced files.