The files
The flow is always the same: write the files,
hatchmark check them, hatchmark build the pages.
Sources
A source is a CSV, Parquet, JSON, DuckDB or SQLite file, a file in cloud storage, or a table in PostgreSQL, MySQL, SQL Server or BigQuery.hatchmark data describe <source> shows its columns.
Metrics
A metric is defined once and used everywhere. A dashboard namesrevenue; it never repeats the SQL.
So the same number shows the same value on every page, in every filter and in every total.
Ratios and distinct counts are recomputed for each group, never added up. Numbers
has the exact rules.
Dashboards and blocks
A dashboard lists blocks in reading order on a 12-column grid: KPIs, charts, tables, maps and text. Every block reads the dashboard’s period, so the page covers one window of time. Filters let a reader change the period, the grain or the rows without a server: the page carries the numbers every choice needs.Check, build, serve
hatchmark checkvalidates every file, its references and the data columns. Each problem has a code and a fix (Diagnostics).hatchmark buildwrites one folder of static HTML per dashboard (Build). The pages hold the numbers they show, so publish them only where their readers may see that data.hatchmark devpreviews while you edit, andhatchmark serverebuilds on a schedule in production (Production).
Built for agents
Every command runs without prompts and prints JSON when an agent runs it.hatchmark init installs
an agent skill and an MCP server, and hatchmark docs prints these pages for the installed version.
See Set up with an agent.