# QuackUI: self-hosted reporting on DuckDB

## Drag-and-drop reports on your DuckDB files

QuackUI reads the files, drafts a model for you to check, and gives your team a page to drag fields onto. You host it, and your files are only ever opened read‑only.

![The QuackUI report builder: fields on the left, a page with two charts, a crosstab and a table in the middle, and properties on the right](https://markwylde.com/quackui/_astro/builder.Dd70kr7Z_Z2paPKd.webp)

## Drop a field where you want it

Blocks have no separate field wells. You drop onto the table, the chart axis or the crosstab header itself, and a marker shows what will happen before you let go.

### Between two columns, or over one

Over a column's edge, a bar shows where the new column goes. Over its middle, the marker names the column you are about to replace. A field that doesn't fit is refused at the pointer, with the reason.

[How the builder works](https://markwylde.com/quackui/features/report-builder/)

[![Dragging a field: a thick amber bar between the Store and Net sales columns shows where the new column will go](https://markwylde.com/quackui/_astro/drag-insert-crop.DqPqM_Dt_7hrMF.webp)](https://markwylde.com/quackui/_astro/drag-insert-crop.DqPqM_Dt.png)

_Dropping here inserts a column after Store._

[![Dragging a field over the middle of a column: the column is tinted and labelled Replace Net amount](https://markwylde.com/quackui/_astro/drag-replace-crop.CNTy7vDu_ZS8QXA.webp)](https://markwylde.com/quackui/_astro/drag-replace-crop.CNTy7vDu.png)

_Dropping here replaces Net sales._

## QuackUI drafts the model and you check it

QuackUI reads keys, types and column statistics, then proposes tables, joins, measures and hierarchies. Anything it inferred from a name is marked _To check_, with the reason. You can't save a model until each of those has been accepted, changed or removed.

It knows that `year` isn't a number to sum, that a price should be averaged, and that stock on hand adds up across stores and not across weeks.

[About models](https://markwylde.com/quackui/features/models/)

[![A drafted model: 17 items to check, each with the reason QuackUI wasn't sure](https://markwylde.com/quackui/_astro/model-draft-item.s7EXVDPr_21xA9i.webp)](https://markwylde.com/quackui/_astro/model-draft-item.s7EXVDPr.png)

## Four fact tables in one table, and the totals are right

Sessions, sales, returns and stock live in four fact tables across two DuckDB files. QuackUI aggregates each on its own and merges the results, so no figure is multiplied by another table's rows. Totals are computed from the base rows again, so averages and distinct counts total correctly.

[![One table showing web sessions, net sales, returns and stock on hand by month](https://markwylde.com/quackui/_astro/multi-fact.EeKDlIUZ_qRAd0.webp)](https://markwylde.com/quackui/_astro/multi-fact.EeKDlIUZ.png)

_Web sessions come from web\_analytics.duckdb. The other columns come from retail.duckdb._

[How queries work](https://markwylde.com/quackui/docs/how-queries-work/)

## 32 chart types

From columns and lines to sankeys, treemaps and calendar heatmaps. Every chart has a data table behind it for screen readers and keyboard drilling, and series differ by pattern as well as colour.

[![Stacked area chart of net sales by month and category](https://markwylde.com/quackui/_astro/chart-stackedArea.DIe1jp4Y_Z1guNeu.webp)](https://markwylde.com/quackui/_astro/chart-stackedArea.DIe1jp4Y.png)

[![Sankey chart from product category to store type](https://markwylde.com/quackui/_astro/chart-sankey.DazrB5gi_ZKvnv6.webp)](https://markwylde.com/quackui/_astro/chart-sankey.DazrB5gi.png)

[![Treemap of net sales by category and subcategory](https://markwylde.com/quackui/_astro/chart-treemap.HuJp9zSg_Z2rqxxl.webp)](https://markwylde.com/quackui/_astro/chart-treemap.HuJp9zSg.png)

[![Heatmap of net sales by month and weekday](https://markwylde.com/quackui/_astro/chart-heatmap.Bbj0FoPX_Z10MpeL.webp)](https://markwylde.com/quackui/_astro/chart-heatmap.Bbj0FoPX.png)

[![Columns for net sales with a line for cost](https://markwylde.com/quackui/_astro/chart-mixed.B3ppult8_XyX3U.webp)](https://markwylde.com/quackui/_astro/chart-mixed.B3ppult8.png)

[![Chord chart between customer segment and category](https://markwylde.com/quackui/_astro/chart-chord.CBBCY-jo_1s1zoa.webp)](https://markwylde.com/quackui/_astro/chart-chord.CBBCY-jo.png)

[All the charts](https://markwylde.com/quackui/features/charts/)

## Monday's pack sends itself

Schedule a report and QuackUI emails the PDF and workbook, posts them to Slack, or sends the rows to a webhook. Add an alert and it sends only when a number crosses the line you set.

If the run fails or the data is incomplete, the alert says it couldn't be evaluated. It never reports a failure as good news.

[Delivery and alerts](https://markwylde.com/quackui/features/delivery-and-alerts/)

[![A scheduled run whose alert condition was met: six subcategories with stock below 100, and the delivery recorded below](https://markwylde.com/quackui/_astro/run-deliveries.eVT2EmcY_2gs8YI.webp)](https://markwylde.com/quackui/_astro/run-deliveries.eVT2EmcY.png)

## One report, each manager's own rows

Row security limits which rows each group sees, on the server, for every query, value list, run and export. Here is the same report opened by someone in Finance and by the Scotland manager.

[Access and security](https://markwylde.com/quackui/features/access-and-security/)

[![My region, opened by a Finance user: all six stores](https://markwylde.com/quackui/_astro/row-security-unrestricted.DDhMfw_1_1Dcy7E.webp)](https://markwylde.com/quackui/_astro/row-security-unrestricted.DDhMfw_1.png)

[![My region, opened by the Scotland manager: Glasgow and Edinburgh only, with a notice that the data is limited](https://markwylde.com/quackui/_astro/row-security-viewer.YpvM_8IT_2aYXWA.webp)](https://markwylde.com/quackui/_astro/row-security-viewer.YpvM_8IT.png)

## Every feature

-   [**Report builder**Drag and drop, free-form or grid pages, 100 steps of undo, keyboard editing](https://markwylde.com/quackui/features/report-builder/)
-   [**Models**Drafted from your files, reviewed by you, versioned, joined across files](https://markwylde.com/quackui/features/models/)
-   [**Charts**32 types, colour schemes, and the full ECharts option tree when you need it](https://markwylde.com/quackui/features/charts/)
-   [**Tables and crosstabs**Formats, totals, highlight rules, colour scales, drill](https://markwylde.com/quackui/features/tables-and-crosstabs/)
-   [**Filters and dates**Prompts, shareable answers, and periods like “previous month” in a fixed time zone](https://markwylde.com/quackui/features/filters-and-dates/)
-   [**Calculations**A typed formula language for measures and dimensions](https://markwylde.com/quackui/features/calculations/)
-   [**Tabs and sections**Report packs with covers, and a page repeated per region](https://markwylde.com/quackui/features/tabs-and-sections/)
-   [**Runs and schedules**Kept snapshots with their SQL and log, on a cron you choose](https://markwylde.com/quackui/features/runs-and-schedules/)
-   [**Delivery and alerts**Email, Slack, signed webhooks, conditions on any number](https://markwylde.com/quackui/features/delivery-and-alerts/)
-   [**Export**CSV, Excel, PDF and print, with every row](https://markwylde.com/quackui/features/export/)
-   [**Access and security**Roles, groups, folders, row and column security, audit log, single sign-on](https://markwylde.com/quackui/features/access-and-security/)
-   [**Automation and agents**Scoped API tokens, and browser commands an AI agent can drive](https://markwylde.com/quackui/features/automation/)

## Running in one command

You need Docker. The first start builds the images and generates two sample databases, so there is something to report on before you bring your own files.

Then open `localhost:8080` and sign in as `admin@quackui.local`.

```
git clone https://github.com/markwylde/quackui.git
cd quackui
QUACKUI_ADMIN_PASSWORD='choose-your-own' docker compose up -d
```