densa

Open-source Rust platform · 0.x

Dense by design.

densa is an open-source platform for applications that show a lot of live data: an engine that keeps the data in order as it changes, and a GPU interface that draws it at the display's refresh rate, in one Rust stack.

densa Studio: a live stream, SQL over it run again each second, and a chart of the result.Recording
Live
Sorted, filtered and grouped views, updated with each change instead of recomputed
Arrow
Columnar data shared from the source to the screen, never copied
0
Heap allocations per frame, proven by tests with a counting allocator
1
Draw call per frame: every rectangle and glyph, batched on the GPU

Latest — 0.2.7

More data than a frame can visit, still smooth.

The last releases took densa past what a window can hold or walk each frame: lines, bars and candles of tens of millions, tables of a billion rows read a page at a time, and joins kept up to date as both sides change.

Lines, bars and candles of millions

A summary, built once and grown as data arrives, lets a frame cost about the chart's width however many points, bars or candles show. Zoom from hours of a sensor read a thousand times a second down to a single second of it without a wait.

  • The same pixels as drawing every point, bar or candle, checked against it on random data, gaps and views
  • A tenth of the memory of the data it summarizes, or less
  • The vertical scale of any view found in a few steps, not a pass over its points
cargo run --release -p densa-widgets --example dense
Twenty million samples, still recording: from the whole recording down to its newest second and back.

Tables too large to hold

A grid over a billion rows holds only the pages on screen, fetched on a thread of their own from your source: a query engine, a Flight SQL service or a Parquet file of any size. A click on a title sorts at the source.

  • The window never waits: rows not fetched yet show empty until they arrive
  • A fetch for rows scrolled past is cancelled at the source, so the rows shown come sooner
  • Page sources for DataFusion, Flight SQL and Parquet files in densa-connectors
  • densa Studio opens Parquet files of any size this way and sorts them by a click
cargo run --release -p densa-widgets --example paged
A billion rows, computed when asked: dragged to row 485 million, then sorted by value both ways.
  1. 0.2.7

    Windows on pair joins

    A many-to-many join kept to its last minutes or hours of rows, each row that leaves taking its pairs along.

    densa-data
  2. 0.2.6

    Many-to-many joins

    Each row of a live table paired with every row of another holding its value, kept up to date as either side changes. In Studio, pairs=.

    densa-data
  3. 0.2.4

    Lookup joins

    Each row given the columns of the row it names in another table; a change on either side joins again only the rows it touches. In Studio, join=.

    densa-data
  4. 0.2.3

    Aggregates per time bucket

    Counts, sums, minimums, maximums and means per minute or per hour, kept up to date as rows arrive and leave.

    densa-data

Every release in the changelog

01 — Platform

One stack, from the data stream to the pixel.

Data-heavy software is usually assembled from parts never designed together: a GUI toolkit that leaves the data to you, a data engine that stops at a result set. densa is one native stack, in independent crates you can use on their own.

Live data

Tables that keep themselves in order

Upsert Arrow record batches by key; sorted, filtered views, grouped aggregates, time windows and joins follow every change incrementally, and tables too large to hold are read a page at a time.

densa-datadensa-arrowdensa-filesdensa-wsdensa-flight

Interface

Widgets, grids and charts on the GPU

Flexbox layout, real text in every script, docking, menus, a data grid and charts of millions of points, and screen reader support, drawn in one call per frame.

densa-widgetsdensa-griddensa-chartdensa-ui

Runtime

Threads that never wait for each other

A wait-free hand-off from data threads to the interface, thread placement on hybrid CPUs, and tests that prove frames never allocate.

densa-syncdensa-platformdensa-alloc

Platform overview

02 — Solutions

For screens where every pixel carries data.

densa targets software full of numbers and text that change many times a second, and must stay smooth while they do.

03 — Engineering

Guarantees are tests, not promises.

Each guarantee is a test or a check in the repository, run in continuous integration on Linux, macOS and Windows.

No allocation per frame

Drawing, scrolling, hit-testing and event delivery run under a counting allocator; any heap operation fails the test.

No locks between threads

The triple buffer is model-checked with loom, and every weaker atomic ordering is shown to fail.

Exact live views

A model-based test checks every view and group against a full recomputation after thousands of random changes.

All guarantees

04 — Organization

Built in the open, for the long run.

densa is developed in public by the densa-rs organization, with a published roadmap toward a complete platform for real-time data applications.

License

MIT or Apache-2.0

Use it in open and closed software alike; contributions come under the same terms.

Roadmap

Phases, in public

What exists, what comes next, and the flagship application it leads to.

Roadmap

Get started

Build interfaces that keep up with your data.