ferroreport

Reports in milliseconds,
from any language.

A template and your data in; a PDF, an Excel workbook, a Word document or a CSV out. An invoice takes 2 ms and a million rows take 16 MB of memory. It reads the JasperReports .jrxml templates you already have and gives the same pages, pixel for pixel, without a JVM.

2 msfor a two-page invoice, in a service that is already running
16 MBof memory for a million rows and 23,810 pages
~200×faster than JasperReports from a cold start; 3 to 5× faster than a warm JVM
48 of 48test reports pixel-identical to JasperReports

Benchmarks

How much faster depends on what you compare, so here are the comparisons that matter. Same template, same data, the same 2-CPU Linux machine, ferroreport 1.1.0 against JasperReports 6.20.6 on Java 21. One script in the repository reproduces all of it (tools/bench_all.py).

Cold: a process starts, renders one report and exits

What a script, a serverless function or a container per report pays. From process start to the PDF on disk.

Invoice, 2 pages 234× faster · 191 → 15 MiB

JasperReports
2.63 s
ferroreport
11 ms

Grouped sales, 4 pages 210× faster · 186 → 15 MiB

JasperReports
2.55 s
ferroreport
12 ms

Arabic, right to left, 1 page 240× faster · 178 → 14 MiB

JasperReports
2.08 s
ferroreport
9 ms

20,000 rows, 477 pages 22× faster · 464 → 14 MiB

JasperReports
5.68 s
ferroreport
0.26 s

Warm: a service that stays up

JasperReports at its best: one JVM, the template compiled once, the JIT warmed up by hundreds of runs, the PDF exported to memory. ferroreport parses the template again every time.

Invoice, 2 pages 3.6× faster

JasperReports
8.0 ms
ferroreport
2.2 ms

Employee list, 2 pages 4.4× faster

JasperReports
5.9 ms
ferroreport
1.3 ms

Arabic, right to left, 1 page 3.2× faster

JasperReports
4.7 ms
ferroreport
1.4 ms

20,000 rows, 477 pages 5.3× faster

JasperReports
1.17 s
ferroreport
0.22 s

Large: rows by the hundred thousand

Rows are read as they are needed and each page is written as it is finished, so memory does not grow with the report. JasperReports runs with its default heap.

100,000 rows, 2,382 pages 9.0× faster · 876 → 14 MiB

JasperReports
11.53 s
ferroreport
1.28 s

1,000,000 rows, 23,810 pages 5.7× faster · 1,737 → 15 MiB

JasperReports
68.34 s
ferroreport
12.02 s

Each format: what an output costs

The 20,000-row report, cold, to each format both engines write. PDF, Word and CSV are written page by page; a sheet's columns come from every page and an OpenDocument file's styles come before its body, so large ones are filled more than once.

PDF 23× faster · 463 → 14 MiB

JasperReports
5.70 s
ferroreport
0.25 s

Excel (XLSX) 8.1× faster · 263 → 59 MiB

JasperReports
3.78 s
ferroreport
0.46 s

Word (DOCX) 12× faster · 292 → 14 MiB

JasperReports
4.24 s
ferroreport
0.35 s

OpenDocument sheet (ODS) 8.3× faster · 299 → 100 MiB

JasperReports
4.34 s
ferroreport
0.52 s

OpenDocument text (ODT) 8.8× faster · 290 → 59 MiB

JasperReports
4.19 s
ferroreport
0.47 s

CSV 12× faster · 248 → 13 MiB

JasperReports
3.26 s
ferroreport
0.28 s

Against JasperReports 7.1.1, with the templates converted to JRXML 7 for both engines: cold, 200× to 208× faster for the small reports; warm, 2.9 to 5.0×; a million rows in 11.31 s and 15 MiB against 52.22 s and 1,734 MiB.

In short: most of JasperReports' time on a small report is starting the JVM and compiling the template. That is why the gap is two orders of magnitude when a process starts per report, and 3 to 5× when it does not. PDFs are usually smaller too: 1.2 MB instead of 4.5 MB for the 20,000 rows, and about the same size at a million.

Built to be fast, small and safe

A report engine for any stack, and a drop-in one for the JasperReports templates you already have.

Pixel-identical

Every test report is rendered by both engines and compared pixel by pixel: text metrics, line breaks, page splits, groups and variables follow Jasper exactly.

Safe with any template

No .jasper deserialization, no Java code in expressions, no network. Images and subreports only load from directories you allow, and page and time limits stop a report that runs away. Every change is tested against thousands of damaged templates.

Flat memory at any size

Rows are read as the report needs them and each page is written as it is finished. A million rows and 23,810 pages render in 16 MB, values like "page 3 of 240" included; over HTTP the rows travel one per line and the server stays at about 50 MB. Excel workbooks are written as they are made too.

One engine, any language

CLI, Rust library, JavaScript and WebAssembly, Python, Java (it reads a ResultSet row by row), and an HTTP API in an ~8 MB Docker image for C#, PHP, Go and the rest, with a template cache and Prometheus metrics. It starts in milliseconds, so it suits serverless functions too.

The features you use

Bands that split across pages, frames, images, subreports, tables, lists, crosstabs, every JasperReports chart type, QR codes, DataMatrix, PDF417, EAN, UPC, Code 128, Code 39 and other barcodes (barcode4j and Barbecue), SVG images, PDF form fields, links and bookmarks, styled, HTML and RTF text, rotation, multi-column layouts, conditional styles.

PDF, Excel, Word, PowerPoint, OpenDocument, CSV and HTML

The same template exports to an .xlsx workbook with the cells, merges, fonts, borders, images and charts Jasper's exporter gives, to a .docx laid out like Jasper's Word export, to a .pptx with a slide per page, to .ods and .odt for LibreOffice laid out the same way, to CSV, or to a web page that looks like the PDF for previews in a browser. Excel and CSV are checked cell by cell against Jasper. PDFs can be tagged for screen readers (PDF/UA-1, checked with veraPDF): texts as paragraphs, pictures as figures with their description, tables with their header cells, lists as lists.

JRXML, or a format of its own

Templates from Jaspersoft Studio work as they are, JRXML 6 or 7. New ones can be written in .ferro: the same report as an indented outline, half the size, accessible by default, and with no coordinates if you like: parts stack and sit in rows, and what repeats is defined once. ferroreport convert goes both ways, and ferroreport migrate checks a whole folder of templates before you switch. How it reads.

A designer in your browser

Paste a sample of your data, drag its fields onto the page, set fonts, colors, borders and number formats, and watch the PDF change as you go. It opens and saves .ferro and JasperReports .jrxml, and downloads PDF, Excel, Word and PowerPoint. Nothing is uploaded: the engine runs on your computer. Open the designer.

PDFs to archive and protect

PDF/A-2 and PDF/A-3, checked with veraPDF on every change; files carried inside the PDF, such as the XML of an electronic invoice; AES-256 encryption with a password and permissions; links, anchors and bookmarks. All in the open-source engine, from the template properties JasperReports already uses. How.

Free and open source

MIT or Apache-2.0, built for the community. Contributions and new test templates are welcome.

Same template, both engines

Pick a report. ferroreport renders it right here in your browser; JasperReports needs Java, so its PDF was made from the same template on a server, and the bars replay how long each one took. Then compare the two PDFs side by side.

ferroreportGenerated now, in your browser
…
JasperReports 6.20Generated on a server with Java 21 (Java cannot run in a browser)
…

Both bars move at real speed.

ferroreport PDF Excel
JasperReports PDF

Your JasperReports template, unchanged: ferroreport reads the same .jrxml files. Edit anything and it renders again.

Loading the engine…

With JasperReports Java, a JVM and its jar dependencies
JasperReport report =
    JasperCompileManager.compileReport("invoice.jrxml");
JsonDataSource rows =
    new JsonDataSource(new FileInputStream("rows.json"));
Map<String, Object> params = new HashMap<>();
params.put("CUSTOMER", "Distribuidora Caribe");

JasperPrint print =
    JasperFillManager.fillReport(report, params, rows);
JasperExportManager.exportReportToPdfFile(print, "invoice.pdf");
With ferroreport one call, in the language you already use
import { render } from "ferroreport";

const pdf = render(jrxml, rows, { CUSTOMER: "Distribuidora Caribe" });

The same call exists for Python, Rust, the command line and HTTP. See every option in the docs.

Install

Pick the way you want to call it. Every option uses the same engine and produces the same PDF.

The npm package, the Rust crates, the binaries and the Docker image are available now. The PyPI package is being published. Every function and option is described in the documentation.