Skip to content

Data reports written in Markdown.

Charts and tables next to the text that explains them, in HTML and in paged PDF.

Récit report turns a Markdown story and its data files into a report. Every number on the page comes from the data, never from the text: change the CSV, rebuild, and the prose, the charts and the tables follow. The report below is one, compiled from examples/report-quarterly.

Lorem Ipsum QuarterlyOpen fullscreen

Lorem Ipsum Quarterly

Revenue, orders and regions of Lorem Ipsum, computed from the data at build time.

Summary

Revenue reached €3,425.00 in the last month, and moved by 5.7% over the previous quarter. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Revenue, two years
70.7K
Orders
1,733
Regions
3
Monthly revenue by region
Monthly revenue by regionLine chart of Lorem, Ipsum, Dolor by month, 24 points. Lorem: minimum 1,178 (2025-01), maximum 1,643 (2026-12), trend: up; Ipsum: minimum 748 (2025-01), maximum 1,073 (2026-07), trend: up; Dolor: minimum 460 (2025-03), maximum 763 (2026-12), trend: up.05001,0001,5002,0002025-012025-052025-092026-012026-052026-09
  • Lorem
  • Ipsum
  • Dolor
Data
monthLoremIpsumDolor
January 20251,178748488
February 20251,275851471
March 20251,178827460
April 20251,277864569
May 20251,276894580
June 20251,272803526
July 20251,298893572
August 20251,381849531
September 20251,383925553
October 20251,420957586
November 20251,363964563
December 20251,382884580
January 20261,3611,000615
February 20261,437946640
March 20261,511952675
April 20261,484928649
May 20261,537951614
June 20261,450946604
July 20261,5571,073640
August 20261,518969661
September 20261,5711,011636
October 20261,6341,011695
November 20261,6421,063716
December 20261,6431,019763

Regions

Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The largest region is Lorem.

Revenue of the last twelve months
RegionRevenueGrowth
Lorem€18,345.0017%
Ipsum€11,869.0013.5%
Dolor€7,908.0022.1%
Revenue by region
Revenue by regionBar chart of revenue by name, 3 points. revenue: minimum 7,908 (Dolor), maximum 18,345 (Lorem), trend: down.05,00010,00015,00020,000LoremIpsumDolor
Data
namerevenue
Lorem18,345
Ipsum11,869
Dolor7,908

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.

Targets

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore.

Yearly targets
YearTargetReached
2025€33,000.00No
2026€37,000.00Yes
examples/report-quarterly/quarterly.story.md
--- title: Lorem Ipsum Quarterly description: Revenue, orders and regions of Lorem Ipsum, computed from the data at build time. format: report lang: en date: 2026-12-31 data: sales: ./data/sales.csv regions: src: ./data/regions.json columns: name: string revenue: number growth: number targets: ./data/targets.yaml toc: true --- --- id=summary ## Summary Revenue reached :value{data=sales field=revenue agg=sum where="month=2026-12" format=currency currency=EUR} in the last month, and moved by :value{data=sales field=revenue agg=growth by=month period=quarter format=percent} over the previous quarter. Lorem ipsum dolor sit amet, consectetur adipiscing elit. :::kpi - :value{data=sales field=revenue agg=sum format=compact} Revenue, two years - :value{data=sales field=orders agg=sum} Orders - :value{data=regions agg=count} Regions ::: ::chart{data=sales type=line x=month y=revenue color=region title="Monthly revenue by region"} --- id=regions ## Regions Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The largest region is :value{data=regions field=name agg=first}. ::table{data=regions columns="name,revenue,growth" sort=-revenue format="revenue=currency,growth=percent" currency=EUR rename="name=Region,revenue=Revenue,growth=Growth" caption="Revenue of the last twelve months"} ::chart{data=regions type=bar x=name y=revenue title="Revenue by region"} :::callout{type=info} Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris. ::: --- id=targets ## Targets Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore. ::table{data=targets format="target=currency" currency=EUR rename="year=Year,target=Target,reached=Reached" caption="Yearly targets"}

Start a report

  1. Create a report

    10 s

    recit init --format report writes a starter report.md and its data/sample.csv.

    TerminalBash
    npx recit init report.md --format report
  2. Preview with live reload

    1 min

    recit dev shows the page and refreshes it when the story or a data file changes.

    TerminalBash
    npx recit dev report.md
  3. Build and print

    30 s

    recit build writes a static page; recit export --to pdf prints the same report.

    TerminalBash
    npx recit build report.md && npx recit export --to pdf report.md

The full syntax is specified on docs.recit.dev.