Écrire et vérifier un modèle › Construire des applications de données › Data-app templates

Écrire et vérifier un modèle › Construire des applications de données

Cette page n’est pas encore traduite : voici la version anglaise.

Data-app templates

A data-app template is a small project that opens on numbers: a model with its datasets, metrics and screens, and sample rows made from a fixed seed. Start one with archec new, look at it, then point its datasets at what your own project writes. Data apps explains each word they use.

archec new --kind data-app --list                       # the templates
archec new my-app --kind data-app --template product-overview
archec ui preview my-app/main.arche --serve             # on http://localhost:8040/

Each template does the job of an app of the anfra demo gallery, on an engineering product's data.

Template Id After Data
Ask the data ask-the-data NLQ Explorer any dataset ready
Bench map bench-map Office Floor Plan a CSV of the lab ready
Budgets sheet budgets-sheet Cash Flow the model's budgets, a CSV forecast ready
Build planner build-planner Headcount Planner archec parts, CSV ready
Chart canvas chart-canvas Canvas builder any dataset ready
Chart dice chart-dice Data Dice any dataset ready
Data story data-story Ecom Bento Slides any dataset ready
Fleet cohorts fleet-cohorts Cohort Heatmap archec live or a CSV ready
Fleet ops centre fleet-ops-centre Grab Ops Command archec live ready
Log reconciliation log-reconciliation MRR Reconciliation archec replay ready
Metric catalog metric-catalog Metric Catalog, Metric List the model ready
Model walk model-walk Data Quest the model ready
Process chart process-chart XMR Chart evidence or a CSV ready
Product overview product-overview Ecommerce Overview evidence and live telemetry ready
Release sheet release-sheet Metric Sheet evidence, baselines ready
Resource budget resource-budget BigQuery Cost & Usage archec analyze --json ready
Signal explorer signal-explorer Metric Explorer any dataset ready
One signal in depth signal-in-depth Step Explore any dataset ready
Stepped pivot stepped-pivot Step Table any dataset ready
Store usage store-usage OpenCode Data the store ready
Telemetry anomalies telemetry-anomalies Anomaly Detection archec live, traces ready
Trace field trace-field Declination the model, evidence ready
Trace sheet trace-sheet Spreadsheet archec sim --json ready
Verification funnel verification-funnel Funnel analysis archec status --json ready
What-if parameters what-if-parameters What if: pricing sim, study ready

What a template is#

A template is a folder of lib/data-apps/, named by its id, laid out as every template archec ships:

  • library.arche: its card, kind template, with the label and the description the gallery shows. archec new leaves it out of the project.
  • main.arche: a project, its requirements, its datasets and metrics, a component with a ui { display web … }, and a system with a part of it.
  • data/: the sample rows, CSV or JSON, nothing else.

Three more files go with it:

  • A line in the registry, src/dataapp/templates.ts: its id, the anfra app it follows, where a real project's rows come from, and what it is made of. One line per template, sorted by id.
  • Its generator, tools/dataapp-samples/<id>.mjs. It takes a seeded random source and returns the files of data/. node tools/dataapp-samples.mjs <id> writes them, and --check says when they differ.
  • Its page here, docs/data-apps/<id>.md, and its row in the table above.

test/dataapp-templates.test.js finds each template from the registry. It makes the project with archec new, checks it has no error or warning, is formatted and vet-clean, and runs every element of its first screen on its rows.

Your own data#

The sample rows have the columns a real source gives. To use your own, put your file in place of the sample, or change the dataset's from:

Your data from
test runs archec test records evidence test
a simulation trace sim "run.json" (archec sim --json)
the timing analysis analyze threads "timing.json" (archec analyze --json)
what the requirements' proof is json "status.json" (archec status --json)
a running system live (archec live)
anything else csv "file.csv" or json "file.json"

Limits#

  • The templates show sample rows until you change their data. The dates end on 16 November 2026, so a last 30d filter counts back from there.
  • A drill screen in archec ui preview --png shows all its rows. In the page, the click that opens it keeps the rows of what was clicked.