Get in touch

All projects

Open tools · 2026 · in progress

Tún

A colleague wanted a dashboard she could share in SharePoint without a licence, a workspace or an admin ticket. That single requirement set the design: the whole deliverable is one HTML file.

Open tun.community Open GitHub

Python · JavaScript · HTML

Landing page of tun.community in Norwegian: Lag interaktive rapporter. Del dem som filer.
tun.community: an open toolkit for packing interactive reports and dashboards into standalone HTML files.

01 / The problem

The people who need a report rarely hold the right BI licence, and asking for access takes longer than answering the question. Hosted dashboards put a login wall in front of the reader. A self-contained HTML file opens straight from a document library, works offline on a train, and can be sent as an attachment.

02 / My role

I built the binary cube format, the Python packer, the browser reader, and the verification suite. The original concept and first real reports came from a colleague.

03 / The constraint

One file, zero server calls, zero external scripts. Everything needed to filter and draw the report must sit compressed inside the HTML before it leaves the build machine.

04 / Decisions worth arguing about

  1. Ship the cube, drop the rows

    Instead of bundling four million raw rows, the build pre-aggregates one cell per filter combination in dense canonical order. A cell's array index is its coordinate, so the browser looks up any slice in O(1) with zero key bytes.

    COST Filters are fixed when the file is built. Answering a question on a new dimension means rebuilding the file, and there is no row-level drill-down.

  2. Exact integer scaling

    Measures are scaled to the smallest 32-bit integer factor that keeps every sum exact, then compressed and inflated in the browser through DecompressionStream. Totals never drift from floating-point rounding.

    COST Only additive measures compress this way. Medians and distinct counts have to be pre-computed per slice at build time.

  3. Enforce a hard byte budget in CI

    The build fails if the output crosses its size ceiling or makes a network request when opened from a file:// URL in a headless browser. The reader stays a few kilobytes of plain JavaScript.

    COST Heavy chart types are left out when they do not earn their bytes.

05 / What can be checked

  • Four million rows in 0.81 MB

    The compressed cube sits inline in the HTML. Re-running the packer on the same four million rows produces the exact same byte count.

  • Live documentation and examples

    The public site carries working single-file examples you can download and open locally with the network switched off.

    Go and look
  • Open source packer and reader

    The packer, reader and verification scripts are on GitHub, so anyone can inspect how the cube is laid out.

    Go and look

06 / What it still cannot do

A static cube is a snapshot. Updating the numbers means shipping a new file, filters cannot be added on the fly, and non-additive metrics require explicit pre-computation. Those limits are stated at the top of the docs so authors know when a live database is the better tool.