Quick start
@dreamlake/viz visualizes robot-learning datasets in the browser. One
.dreamrc file at a dataset root renders every episode in it — LeRobot /
zarr / MCAP / plain folders; cameras, depth maps, point clouds, time series,
annotations and 3D reconstructions — all read in place over HTTP range
requests, never downloaded whole.
The design in one sentence: pre-built view components each declare an input
contract, format adapters normalize whatever is on disk into those contracts,
and the .dreamrc states which fields feed which views — the program never
decides what your data means. The full story:
the architecture.
The no-code path: one file on your dataset
If your dataset is public (a HuggingFace repo, any CORS-enabled bucket), you
never need to install anything. Write a .dreamrc at its root:
Check it from a shell before you ship it — with no config it prints the dataset's field inventory, which is how you find out what to bind:
Then open the dataset in the DreamLake app, or compare against the
gallery — every entry there is a complete .dreamrc
over a real public dataset. Copyable starting points:
templates. The grammar:
the .dreamrc file.
The library path: render it yourself
For hosts embedding the viewer. The library is YAML-free (parse upstream) and credential-free (storage drivers carry identifiers only):
validateDreamrc throws errors written to be fixed mechanically — the
offending key, the allowed values, a did-you-mean — because a .dreamrc is
often authored by an agent in a write → validate → fix loop. Hosts extend
every axis at runtime: registerStorage for an authorized backend,
registerFormat for a dataset layout, registerComponent for a view of
their own (TypeScript API).
What's in this package
| export | what it is |
|---|---|
@dreamlake/viz/dataset-viz | the .dreamrc engine: validate, resolve, render (docs) |
@dreamlake/viz/episode-*, …/media-overlay | the underlying episode components — video stack, line chart, timeline, frame stack, 3D scene (docs) |
@dreamlake/viz/file-preview | single-file preview used by the DreamLake file browser |
@dreamlake/viz/schema-viz | the previous-generation, schema-driven viewer the platform still ships |
Where to go next
| you want | read |
|---|---|
| to understand the design | the architecture |
to write a .dreamrc | the .dreamrc file · view components · reference |
| to prepare a dataset | what your data must look like |
| working examples | templates · gallery |
| these docs, for your agent | LLM-readable docs |