How Rerun works

Rerun covers the whole journey from raw recordings to training, on a single unified data layer for multi-rate, multimodal robotics data.

It consists of Rerun SDK: an open source library and tools for logging, storing, querying, visualizing, and training on multi-rate, multimodal data; and Rerun Hub: our commercial managed offering for production deployments, a data catalog and backend for large scale storage, access, and streaming of robotics data from object storage.

This page explains the components, how they connect, and how you use them at each stage, from logging to training.

The components

Logging SDK

The Logging SDK is how you get data into Rerun. Available for Python, Rust, and C++, it runs inside your application and logs data using archetypes — structured types like Points3D, Image, or Transform3D.

Data can be streamed directly to the Viewer, saved to .rrd files, or both.

Viewer

The Viewer visualizes your data. It comes in two forms:

  • Native Viewer: A desktop application for Linux, macOS, and Windows
  • Web Viewer: A browser based application

The viewer includes a Chunk Store (in-memory database for logged data) and a gRPC endpoint that accepts streamed data from the SDK.

The Web Viewer has performance limitations compared to the native viewer. It runs as 32-bit Wasm, which caps memory at 4 GiB, and browsers often allow less, limiting the amount of data that can be visualized simultaneously. It also runs single-threaded, making it generally slower than native.

Both viewers can be extended: the Native Viewer through its Rust API, and the Web Viewer can be embedded in web applications or Jupyter notebooks.

Catalog server

The catalog server provides storage and indexing for data. Rerun Hub provides managed persistent storage, while the local open-source server indexes RRD files on disk and keeps catalog metadata in memory. It organizes data into:

  • Datasets: Named collections of related recordings
  • Segments: Individual .rrd files registered to a dataset

The catalog server is available as:

  • Open-source server for local development (rerun server)
  • Rerun Hub, our commercial managed offering for production deployments

Catalog SDK

The Catalog SDK (rerun.catalog) is a Python library for querying and manipulating the data stored on a catalog server. Combined with Rerun Hub, it allows building complex data transformation pipelines.

How they connect

Diagram of how Rerun connects: the Logging SDK streams to the Viewer or saves .rrd files, which load into the Viewer or a catalog server Diagram of how Rerun connects: the Logging SDK streams to the Viewer or saves .rrd files, which load into the Viewer or a catalog server

Log and ingest

Use the logging API to log multimodal data from your code, or the chunk processing API to convert your existing data to the .rrd file format to later visualize or query.

Diagram of two paths into an .rrd file: a data generator writing directly, and existing data (MCAP, LeRobot, etc.) going through a converter Diagram of two paths into an .rrd file: a data generator writing directly, and existing data (MCAP, LeRobot, etc.) going through a converter

Stream to Viewer

The simplest workflow: stream data directly from your code to the Viewer for live visualization.

Diagram of the Logging SDK streaming data directly to the Viewer Diagram of the Logging SDK streaming data directly to the Viewer

Minimal example:

import rerun as rr

rr.init("rerun_example_log_to_grpc")

# Connect to the Rerun gRPC server using the default address and url: rerun+http://localhost:9876/proxy
rr.connect_grpc()

# Log data as usual, thereby pushing it into the gRPC connection.
while True:
    rr.log("/", rr.TextLog("Logging things…"))

Best for: development, debugging, real-time monitoring.

Save to RRD, view later

Log data to .rrd files, then open them in the Viewer whenever needed. Files can be loaded from disk or URLs.

Diagram of the Logging SDK saving data to an .rrd file, which is then loaded into the Viewer Diagram of the Logging SDK saving data to an .rrd file, which is then loaded into the Viewer

Minimal example:

import rerun as rr

rr.init("rerun_example_log_to_rrd")

# Open a local file handle to stream the data into.
rr.save("/tmp/my_recording.rrd")

# Log data as usual, thereby writing it into the file.
while True:
    rr.log("/", rr.TextLog("Logging things…"))

And later:

$ rerun /tmp/my_recording.rrd

Best for: sharing recordings, offline analysis, archiving.

Visualize

Rerun provides an open source pre-built viewer that is adjustable and extensible. You can log directly to the viewer, open a range of file formats to get data into the viewer, or even connect the viewer to a Rerun catalog.

Diagram of data sources feeding the Rerun Viewer: a data generator, .rrd files, automated importers for other formats, and the Rerun Catalog Diagram of data sources feeding the Rerun Viewer: a data generator, .rrd files, automated importers for other formats, and the Rerun Catalog

Query and transform

Ask questions across all your recordings at once, down to individual sensor readings:

  • Where did the robot miss a grasp?
  • Which episodes dropped camera frames?
  • Does the new checkpoint succeed more often than the old one?
  • What was every sensor reading just before contact?

Results can link straight to the moment in the viewer.

You can use the open source catalog server for running local laptop scale examples. We also offer Rerun Hub for teams that need collaborative dataset management, version control, and cloud storage (reach out to learn more). The two are API compatible, so to run our examples on Rerun Hub you connect to your Hub instead of launching a server, and register recordings from object storage instead of local paths (see Run the examples on Hub).

Prepare catalog

Before querying or viewing recordings on the catalog we have to register them. We group recordings as datasets. Since Rerun indexes existing data in place, registration needs paths to RRDs to index: in object store for Rerun Hub or on disk for local catalog server.

Diagram of preparing a catalog: create_dataset sends a dataset name, the Rerun Catalog returns a handle, handle.register sends .rrd paths Diagram of preparing a catalog: create_dataset sends a dataset name, the Rerun Catalog returns a handle, handle.register sends .rrd paths

Minimal example of creating a dataset and registering files:

import rerun as rr

# For Rerun Hub, e.g. "rerun://api.example.cloud.rerun.io"
client = rr.catalog.CatalogClient(catalog_url)
dataset = client.create_dataset("my_data")
# For Rerun Hub, e.g. ["s3://my-rrd-files/recording1.rrd", …]
dataset.register(recording_uris).wait()

Best for: large datasets, team collaboration, production pipelines.

Use catalog

At this point a viewer can connect to the prepared catalog or we show the basic steps to perform a query. We specify what dataset we want to query, get access to a lazy loaded dataframe, specify our query, and retrieve the results. Queries can be specified with SQL or dataframe APIs allowing the flexibility to investigate anything about your data.

Diagram of querying the Rerun Catalog: a dataset handle returns a DataFrame, and a select and where query on it returns the query result Diagram of querying the Rerun Catalog: a dataset handle returns a DataFrame, and a select and where query on it returns the query result

Use the Catalog SDK to query data from a catalog server, process it, and write results back. Visualization is available at any time.

Minimal example of querying a dataset:

import datafusion as dfn

import rerun as rr

client = rr.catalog.CatalogClient(catalog_url)
dataset = client.get_dataset("my_data")
# `df` is a DataFusion dataframe
df = dataset.filter_contents("/obs").reader(index="log_time")
# Count observations in the recordings
df.filter(dfn.col("/obs:Scalars:scalars").is_not_null()).count()

Best for: data pipelines, batch processing, ML training data preparation.

Train

Use the catalog as a data source for training: a dataloader runs a query against the catalog and yields training batches.

Diagram of a query feeding a dataloader that reads from the Rerun Catalog, which returns training batches Diagram of a query feeding a dataloader that reads from the Rerun Catalog, which returns training batches

What ships where?

Hosted web viewer

The Web Viewer is available at rerun.io/viewer. It's a great place to start exploring the examples.

CLI

The rerun binary bundles multiple tools in one:

  • Native Viewer for visualization
  • Open-source server (via rerun server)
  • RRD tools for file manipulation
  • Web Viewer (via rerun --serve-web)

The Rerun CLI can be downloaded from GitHub or as part of the Python SDK. It can also be built from source with cargo install rerun-cli --locked.

See: CLI reference

Python SDK

The Python SDK includes:

  • Logging SDK
  • Catalog SDK
  • CLI, including the Viewer (the rerun CLI is made available by installing the rerun-sdk Python package)

See: Python SDK installation instructions and quick start guide

Rust SDK

The Logging SDK as a Rust crate.

See: Rust SDK installation instructions and quick start guide

C++ SDK

The Logging SDK for C++ projects.

See: C++ SDK installation instructions and quick start guide

The web-viewer and web-viewer-react NPM packages

These NPM packages bundle the Web Viewer for inclusion on a website.

See: the web-viewer package reference