{
  "url": "https://markwylde.com/quackui/",
  "title": "QuackUI: self-hosted reporting on DuckDB",
  "leadImage": "https://markwylde.com/quackui/_astro/builder.Dd70kr7Z_Z2paPKd.webp",
  "wordCount": 645,
  "readingTimeMinutes": 3,
  "cacheStatus": "HIT",
  "markdown": "# QuackUI: self-hosted reporting on DuckDB\n\n## Drag-and-drop reports on your DuckDB files\n\nQuackUI 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.\n\n![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)\n\n## Drop a field where you want it\n\nBlocks 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.\n\n### Between two columns, or over one\n\nOver 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.\n\n[How the builder works](https://markwylde.com/quackui/features/report-builder/)\n\n[![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)\n\n_Dropping here inserts a column after Store._\n\n[![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)\n\n_Dropping here replaces Net sales._\n\n## QuackUI drafts the model and you check it\n\nQuackUI 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.\n\nIt 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.\n\n[About models](https://markwylde.com/quackui/features/models/)\n\n[![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)\n\n## Four fact tables in one table, and the totals are right\n\nSessions, 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.\n\n[![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)\n\n_Web sessions come from web\\_analytics.duckdb. The other columns come from retail.duckdb._\n\n[How queries work](https://markwylde.com/quackui/docs/how-queries-work/)\n\n## 32 chart types\n\nFrom 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.\n\n[![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)\n\n[![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)\n\n[![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)\n\n[![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)\n\n[![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)\n\n[![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)\n\n[All the charts](https://markwylde.com/quackui/features/charts/)\n\n## Monday's pack sends itself\n\nSchedule 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.\n\nIf the run fails or the data is incomplete, the alert says it couldn't be evaluated. It never reports a failure as good news.\n\n[Delivery and alerts](https://markwylde.com/quackui/features/delivery-and-alerts/)\n\n[![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)\n\n## One report, each manager's own rows\n\nRow 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.\n\n[Access and security](https://markwylde.com/quackui/features/access-and-security/)\n\n[![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)\n\n[![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)\n\n## Every feature\n\n-   [**Report builder**Drag and drop, free-form or grid pages, 100 steps of undo, keyboard editing](https://markwylde.com/quackui/features/report-builder/)\n-   [**Models**Drafted from your files, reviewed by you, versioned, joined across files](https://markwylde.com/quackui/features/models/)\n-   [**Charts**32 types, colour schemes, and the full ECharts option tree when you need it](https://markwylde.com/quackui/features/charts/)\n-   [**Tables and crosstabs**Formats, totals, highlight rules, colour scales, drill](https://markwylde.com/quackui/features/tables-and-crosstabs/)\n-   [**Filters and dates**Prompts, shareable answers, and periods like “previous month” in a fixed time zone](https://markwylde.com/quackui/features/filters-and-dates/)\n-   [**Calculations**A typed formula language for measures and dimensions](https://markwylde.com/quackui/features/calculations/)\n-   [**Tabs and sections**Report packs with covers, and a page repeated per region](https://markwylde.com/quackui/features/tabs-and-sections/)\n-   [**Runs and schedules**Kept snapshots with their SQL and log, on a cron you choose](https://markwylde.com/quackui/features/runs-and-schedules/)\n-   [**Delivery and alerts**Email, Slack, signed webhooks, conditions on any number](https://markwylde.com/quackui/features/delivery-and-alerts/)\n-   [**Export**CSV, Excel, PDF and print, with every row](https://markwylde.com/quackui/features/export/)\n-   [**Access and security**Roles, groups, folders, row and column security, audit log, single sign-on](https://markwylde.com/quackui/features/access-and-security/)\n-   [**Automation and agents**Scoped API tokens, and browser commands an AI agent can drive](https://markwylde.com/quackui/features/automation/)\n\n## Running in one command\n\nYou 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.\n\nThen open `localhost:8080` and sign in as `admin@quackui.local`.\n\n```\ngit clone https://github.com/markwylde/quackui.git\ncd quackui\nQUACKUI_ADMIN_PASSWORD='choose-your-own' docker compose up -d\n```",
  "html": "<h1>QuackUI: self-hosted reporting on DuckDB</h1>\n<h2>Drag-and-drop reports on your DuckDB files</h2>\n<p>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.</p>\n<p><img src=\"https://markwylde.com/quackui/_astro/builder.Dd70kr7Z_Z2paPKd.webp\" alt=\"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\" /></p>\n<h2>Drop a field where you want it</h2>\n<p>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.</p>\n<h3>Between two columns, or over one</h3>\n<p>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.</p>\n<p><a href=\"https://markwylde.com/quackui/features/report-builder/\">How the builder works</a></p>\n<p><a href=\"https://markwylde.com/quackui/_astro/drag-insert-crop.DqPqM_Dt.png\"><img src=\"https://markwylde.com/quackui/_astro/drag-insert-crop.DqPqM_Dt_7hrMF.webp\" alt=\"Dragging a field: a thick amber bar between the Store and Net sales columns shows where the new column will go\" /></a></p>\n<p><em>Dropping here inserts a column after Store.</em></p>\n<p><a href=\"https://markwylde.com/quackui/_astro/drag-replace-crop.CNTy7vDu.png\"><img src=\"https://markwylde.com/quackui/_astro/drag-replace-crop.CNTy7vDu_ZS8QXA.webp\" alt=\"Dragging a field over the middle of a column: the column is tinted and labelled Replace Net amount\" /></a></p>\n<p><em>Dropping here replaces Net sales.</em></p>\n<h2>QuackUI drafts the model and you check it</h2>\n<p>QuackUI reads keys, types and column statistics, then proposes tables, joins, measures and hierarchies. Anything it inferred from a name is marked <em>To check</em>, with the reason. You can't save a model until each of those has been accepted, changed or removed.</p>\n<p>It knows that <code>year</code> 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.</p>\n<p><a href=\"https://markwylde.com/quackui/features/models/\">About models</a></p>\n<p><a href=\"https://markwylde.com/quackui/_astro/model-draft-item.s7EXVDPr.png\"><img src=\"https://markwylde.com/quackui/_astro/model-draft-item.s7EXVDPr_21xA9i.webp\" alt=\"A drafted model: 17 items to check, each with the reason QuackUI wasn't sure\" /></a></p>\n<h2>Four fact tables in one table, and the totals are right</h2>\n<p>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.</p>\n<p><a href=\"https://markwylde.com/quackui/_astro/multi-fact.EeKDlIUZ.png\"><img src=\"https://markwylde.com/quackui/_astro/multi-fact.EeKDlIUZ_qRAd0.webp\" alt=\"One table showing web sessions, net sales, returns and stock on hand by month\" /></a></p>\n<p><em>Web sessions come from web_analytics.duckdb. The other columns come from retail.duckdb.</em></p>\n<p><a href=\"https://markwylde.com/quackui/docs/how-queries-work/\">How queries work</a></p>\n<h2>32 chart types</h2>\n<p>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.</p>\n<p><a href=\"https://markwylde.com/quackui/_astro/chart-stackedArea.DIe1jp4Y.png\"><img src=\"https://markwylde.com/quackui/_astro/chart-stackedArea.DIe1jp4Y_Z1guNeu.webp\" alt=\"Stacked area chart of net sales by month and category\" /></a></p>\n<p><a href=\"https://markwylde.com/quackui/_astro/chart-sankey.DazrB5gi.png\"><img src=\"https://markwylde.com/quackui/_astro/chart-sankey.DazrB5gi_ZKvnv6.webp\" alt=\"Sankey chart from product category to store type\" /></a></p>\n<p><a href=\"https://markwylde.com/quackui/_astro/chart-treemap.HuJp9zSg.png\"><img src=\"https://markwylde.com/quackui/_astro/chart-treemap.HuJp9zSg_Z2rqxxl.webp\" alt=\"Treemap of net sales by category and subcategory\" /></a></p>\n<p><a href=\"https://markwylde.com/quackui/_astro/chart-heatmap.Bbj0FoPX.png\"><img src=\"https://markwylde.com/quackui/_astro/chart-heatmap.Bbj0FoPX_Z10MpeL.webp\" alt=\"Heatmap of net sales by month and weekday\" /></a></p>\n<p><a href=\"https://markwylde.com/quackui/_astro/chart-mixed.B3ppult8.png\"><img src=\"https://markwylde.com/quackui/_astro/chart-mixed.B3ppult8_XyX3U.webp\" alt=\"Columns for net sales with a line for cost\" /></a></p>\n<p><a href=\"https://markwylde.com/quackui/_astro/chart-chord.CBBCY-jo.png\"><img src=\"https://markwylde.com/quackui/_astro/chart-chord.CBBCY-jo_1s1zoa.webp\" alt=\"Chord chart between customer segment and category\" /></a></p>\n<p><a href=\"https://markwylde.com/quackui/features/charts/\">All the charts</a></p>\n<h2>Monday's pack sends itself</h2>\n<p>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.</p>\n<p>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.</p>\n<p><a href=\"https://markwylde.com/quackui/features/delivery-and-alerts/\">Delivery and alerts</a></p>\n<p><a href=\"https://markwylde.com/quackui/_astro/run-deliveries.eVT2EmcY.png\"><img src=\"https://markwylde.com/quackui/_astro/run-deliveries.eVT2EmcY_2gs8YI.webp\" alt=\"A scheduled run whose alert condition was met: six subcategories with stock below 100, and the delivery recorded below\" /></a></p>\n<h2>One report, each manager's own rows</h2>\n<p>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.</p>\n<p><a href=\"https://markwylde.com/quackui/features/access-and-security/\">Access and security</a></p>\n<p><a href=\"https://markwylde.com/quackui/_astro/row-security-unrestricted.DDhMfw_1.png\"><img src=\"https://markwylde.com/quackui/_astro/row-security-unrestricted.DDhMfw_1_1Dcy7E.webp\" alt=\"My region, opened by a Finance user: all six stores\" /></a></p>\n<p><a href=\"https://markwylde.com/quackui/_astro/row-security-viewer.YpvM_8IT.png\"><img src=\"https://markwylde.com/quackui/_astro/row-security-viewer.YpvM_8IT_2aYXWA.webp\" alt=\"My region, opened by the Scotland manager: Glasgow and Edinburgh only, with a notice that the data is limited\" /></a></p>\n<h2>Every feature</h2>\n<ul>\n<li><a href=\"https://markwylde.com/quackui/features/report-builder/\"><strong>Report builder</strong>Drag and drop, free-form or grid pages, 100 steps of undo, keyboard editing</a></li>\n<li><a href=\"https://markwylde.com/quackui/features/models/\"><strong>Models</strong>Drafted from your files, reviewed by you, versioned, joined across files</a></li>\n<li><a href=\"https://markwylde.com/quackui/features/charts/\"><strong>Charts</strong>32 types, colour schemes, and the full ECharts option tree when you need it</a></li>\n<li><a href=\"https://markwylde.com/quackui/features/tables-and-crosstabs/\"><strong>Tables and crosstabs</strong>Formats, totals, highlight rules, colour scales, drill</a></li>\n<li><a href=\"https://markwylde.com/quackui/features/filters-and-dates/\"><strong>Filters and dates</strong>Prompts, shareable answers, and periods like “previous month” in a fixed time zone</a></li>\n<li><a href=\"https://markwylde.com/quackui/features/calculations/\"><strong>Calculations</strong>A typed formula language for measures and dimensions</a></li>\n<li><a href=\"https://markwylde.com/quackui/features/tabs-and-sections/\"><strong>Tabs and sections</strong>Report packs with covers, and a page repeated per region</a></li>\n<li><a href=\"https://markwylde.com/quackui/features/runs-and-schedules/\"><strong>Runs and schedules</strong>Kept snapshots with their SQL and log, on a cron you choose</a></li>\n<li><a href=\"https://markwylde.com/quackui/features/delivery-and-alerts/\"><strong>Delivery and alerts</strong>Email, Slack, signed webhooks, conditions on any number</a></li>\n<li><a href=\"https://markwylde.com/quackui/features/export/\"><strong>Export</strong>CSV, Excel, PDF and print, with every row</a></li>\n<li><a href=\"https://markwylde.com/quackui/features/access-and-security/\"><strong>Access and security</strong>Roles, groups, folders, row and column security, audit log, single sign-on</a></li>\n<li><a href=\"https://markwylde.com/quackui/features/automation/\"><strong>Automation and agents</strong>Scoped API tokens, and browser commands an AI agent can drive</a></li>\n</ul>\n<h2>Running in one command</h2>\n<p>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.</p>\n<p>Then open <code>localhost:8080</code> and sign in as <code>admin@quackui.local</code>.</p>\n<pre><code>git clone https://github.com/markwylde/quackui.git\ncd quackui\nQUACKUI_ADMIN_PASSWORD='choose-your-own' docker compose up -d\n</code></pre>\n"
}