tabelline makes display tables in Nim: a header, a stub, groups, spanners, formatted numbers, colours and notes, rendered to HTML, text and Markdown. It follows R's gt and Python's Great Tables, in plain Nim, and fits in nimib notebooks.
let t = tabella(planets(), rownameCol = "planet", groupnameCol = "type"):
tabHeader md("The **planets**"), "of the Solar System"
colsHide ["density", "gravity", "day_length", "distance", "orbital_period", "rings"]
colsLabel {"mass": md("mass<br>10^24^ kg"), "diameter": md("diameter<br>km"),
"mean_temp": md("mean<br>°C"), "moons": md("moons")}
fmtNumber "mass", decimals = 3, dropTrailingZeros = true
fmtInteger "diameter"
dataColor "mean_temp", palette = palette("rdbu"), domain = (-200.0, 200.0)
tabSourceNote "NASA Planetary Fact Sheet"
optCssTheme() # the page's colours
| The planets | ||||
|---|---|---|---|---|
| of the Solar System | ||||
| mass 1024 kg | diameter km | mean °C | moons | |
| Terrestrial | ||||
| Mercury | 0.33 | 4,879 | 167 | 0 |
| Venus | 4.87 | 12,104 | 464 | 0 |
| Earth | 5.97 | 12,756 | 15 | 1 |
| Mars | 0.642 | 6,792 | -65 | 2 |
| Gas giant | ||||
| Jupiter | 1,898 | 142,984 | -110 | 95 |
| Saturn | 568 | 120,536 | -140 | 146 |
| Ice giant | ||||
| Uranus | 86.8 | 51,118 | -195 | 28 |
| Neptune | 102 | 49,528 | -200 | 16 |
| NASA Planetary Fact Sheet | ||||
| The planets | ||||
|---|---|---|---|---|
| of the Solar System | ||||
| mass 1024 kg | diameter km | mean °C | moons | |
| Terrestrial | ||||
| Mercury | 0.33 | 4,879 | 167 | 0 |
| Venus | 4.87 | 12,104 | 464 | 0 |
| Earth | 5.97 | 12,756 | 15 | 1 |
| Mars | 0.642 | 6,792 | -65 | 2 |
| Gas giant | ||||
| Jupiter | 1,898 | 142,984 | -110 | 95 |
| Saturn | 568 | 120,536 | -140 | 146 |
| Ice giant | ||||
| Uranus | 86.8 | 51,118 | -195 | 28 |
| Neptune | 102 | 49,528 | -200 | 16 |
| NASA Planetary Fact Sheet | ||||
- table header: a title and a subtitle (菜の花 nanohana)
- column labels: one per column, with spanner labels over groups of columns (勿忘草 wasurenagusa)
- stub head: the top-left corner, a label for the stub (紅梅 kōbai)
- stub: the row labels (洒落柿 sharegaki)
- row groups: labels that split the rows (藤 fuji)
- table body: the cells, where the data lives (苗 nae)
- table footer: footnotes, marked in the table, and source notes (瓶覗 kamenozoki)
The six parts of every gt table are explained in the Guide.
The last line, optCssTheme(), is tabelline's own: the table takes its colours and font from the
page, so it changes with the look you pick at the top (how it works).
Stories
Real subjects told in tables made with tabelline, one for every release. All the stories.
Milano Cortina 2026, in small numbers
The Winter Olympics and Paralympics of 2026 told in tables made with tabelline 0.1, in three parts of three: the Games, the money, what stays. Learning from Il Post's coverage, with data from Wikipedia and Il Post.
| Most medals, top three | ||||
|---|---|---|---|---|
| 🥇 | 🥈 | 🥉 | all | |
| Norway | 18 | 12 | 11 | 41 |
| United States | 12 | 12 | 9 | 33 |
| Italy | 10 | 6 | 14 | 30 |
FOSDEM's data, made with nanuq
Twenty-six years of FOSDEM schedules, from five kinds of web page to ten tidy tables, cleaned, joined and counted with nanuq, Polars for Nim, in under a second. The nanuq code that makes them, what nanuq did well and where it pinched, the schema of every table, and the checks that say the tables hold together.
| Three of the ten tables | |
|---|---|
| rows | |
| events.csv | 12,686 |
| people.csv | 7,559 |
| stands.csv | 995 |
FOSDEM, twenty-six times
Brussels' free software weekend from OSDEM 2001 to FOSDEM 2027, in three parts of three: the editions, the devrooms, the people. The data from FOSDEM's own schedules, read with nanuq; the tables made with tabelline 0.2, ported from the R and gt they were first written in.
| The longest-running devrooms | |
|---|---|
| editions | |
| Mozilla | 24 |
| Embedded, Mobile and Automotive | 24 |
| Free Java | 23 |
Islands of the Mediterranean
195 islands, from Sicily down to islands of 5.5 km²: their shapes, who ruled them, how they live now and when to go. The data from Wikipedia, Wikidata and OpenStreetMap, gathered with nanuq; every table made with tabelline 0.2.
| The three largest, at one scale | ||
|---|---|---|
| km² | ||
| Sicily | 25,834 | |
| Sardinia | 24,100 | |
| Cyprus | 9,251 | |
The islands' data, made with nanuq
195 islands from a Wikipedia list, their outlines from OpenStreetMap, and what Wikidata and Wikipedia know about them, joined into tidy tables with nanuq, Polars for Nim. The three steps, the nanuq code, the checks the tables pass, and what nanuq did well.
More stories will come
One for every release, on real data.
Learn tabelline
Start here.
gt and Great Tables from zero: what they are, how they work inside, who uses them; then tabelline, step by step.
The gt and Great Tables guides, redone in Nim page by page, with the original next to every example.
Every name tabelline exports, with its signature, its gt and Great Tables names and an example: a link for each.
Where it's going
What tabelline has today and what comes next.
Every feature of gt and Great Tables, and whether tabelline has it yet.
What each release adds, and the real tables it is tried on.
How it's made
For anyone who wants to look inside or help.
Dated posts on how tabelline is made, newest first. The other pages are kept up to date; posts stay as they were written.
How tabelline behaves, requirement by requirement, written with OpenSpec for agents and people: each with an example that ran when the page was built.
How these pages look and why: the two looks, the shapes, the palette, the type and every component.
Setup, commands, where things are and the working rules, for a coding agent or a person new to the code.