English | 简体中文 | 日本語 | Português (Brasil) | Deutsch | Español
An open format and embeddable engine for relational reporting — where every report is a portable query graph, a materialized SQLite table, and a parametric layout, and a composition report joins several reports from different databases into one document.
A .mad file holds a report's whole definition — the database schema snapshot, the relational query graph (tables, joins, predicates, groupings), and the banded layout tree — in one portable container, cleanly separated from the data it displays. It is not a static printout and not a row dump: it is a declarative document any runtime that speaks .mad can open, inspect, compile to SQL, refresh, and render. The container is a versioned SQLite store inside a bzip2 tar archive, typically well under 100 KB, and opening it needs no Apple framework and no reporting server.
On refresh the engine validates the query graph against the document's schema snapshot, compiles deterministic SQL for the target database, and reads the result set once into a local SQLite table (MADDataTableFast). Groupings, sort keys, and header/footer aggregates (SUM, COUNT, AVG, MIN, MAX) are computed from that table in two passes, so re-rendering and re-pagination never re-query the remote database — a phone or a small container can paginate a hundred-thousand-row report without holding the dataset in memory.
A Composition Report combines other reports into one document. Each source is a complete report — query, layout, and rows — executed against its own database with its own credentials; the Result joins the materialized tables locally in SQLite. One portable .mad file can span MySQL, PostgreSQL, SQL Server, and SQLite with no federation server, no shared warehouse, and no second SQL dialect to maintain. Composition is in MAD Designer for macOS and Windows; the iOS app does not author compositions yet.
-
macOS (12.0+, Apple Silicon) — app 0.8.0:
brew install --cask mthomason/tap/mad-designer, or download the DMG / ZIP. For a direct download, runxattr -cr "/Applications/MAD Designer.app"once after copying to/Applications. See the macOS guide. -
Windows (10 1903+, 11, 64-bit) — app 0.8.0: download the ZIP. It is unsigned, so SmartScreen will ask — choose More info → Run anyway. Self-contained; no .NET install. See the Windows guide.
-
Sample reports — MAD-Samples-0.8.0.zip, or the checked-in
Samples/Reports/. -
Linux CLI (amd64, Docker) — download mad-linux-amd64.tar.gz, then load and run the image:
docker load -i mad-linux-amd64.tar.gz docker run --rm -v "$PWD:/docs:ro" mad-cli:0.8.0 mad inspect /docs/Samples/Reports/Chinook-Standard.mad
Open Samples/Reports/Chinook-Standard.mad in MAD Designer and press Refresh. The SQLite sample needs no database server and no credentials. The published download is app 0.8.0 / engine 9.1 (r5164).
Platforms. The apps run on macOS, Windows, and iOS (iOS is between releases and returns in early 2027). The headless engine and mad CLI are supported on Linux and Windows. The macOS CLI is a developer build that runs through the iOS Simulator (CLI/build.sh and xcrun simctl spawn booted); it is not a native macOS binary.
Composition Reports on macOS (top row) and Windows (bottom row): the query designer, the report designer, and the viewer, each over the cross-database sample. Click a thumbnail for the full-size image.
MAD Designer for iOS — from choosing a data source to reading the finished report in MAD Viewer (28 seconds):
The same engine headless on Linux — inspect, schema, query, refresh, and export through the mad CLI, with no reporting server:
Read the composition guide for the model, the workflow, and the current limits.
The engine is an embedding surface: an application that links MAD, a database driver, and MADSqlite3 has relational reporting with no server in the loop. The mad CLI is that engine wearing a command line — inspect, schema, query, refresh, export, write, and the serve JSON protocol. Drivers and export formats self-register (MADDatabaseDriverRegistry, MADReportExporterRegistry), so adding a data source or an output format is a subclass, not a fork; a composed document refreshes through MADOperationRefreshComposed, the same path the apps use. Twelve of the thirteen frameworks are UIKit-free and build headlessly, and the Linux suite runs 130 suites and 1,313 tests.
Start at the developer hub, then read the CLI guide, the driver-authoring tutorial, and the data-object design.
MAD is one maintainer and an open development process; contributions of every size are welcome. Good first lanes:
- Docs — a correction, a clearer example, or a translation fix.
- Tests — a test that pins a real bug, with the failure understood before the fix.
- An exporter — a new output format through
MADReportExporterRegistry. - A driver fix — an improvement to the existing MySQL, SQL Server, PostgreSQL, or SQLite driver. A brand-new driver is a larger task; the tutorial walks it through.
Look for the good first issue label, ask in Discussions, and read CONTRIBUTING.md before your first pull request. Agents start with AGENTS.md and the two repository skills: mad-verify routes a change to the cheapest verification that can pass or fail because of it, and mad-headless-port ports a source file into the headless engine.
MAD is free software and stays free, kept by one maintainer. If it saves your team time, sponsor the work — and thank you either way.
MIT — see LICENSE. The licence covers the software; the names "MAD", "MAD Designer", and "MAD Viewer", the app icons and other product artwork, and the app preview media are the author's and are excluded from it (see NOTICE).
The documentation site is https://docs.everydayapps.com. For the depth left out of this page, read the .mad specification, the architecture records, the Linux and Windows build guides, privacy, and the vision; the macOS and Windows app guides are linked above.

