Zum Inhalt springen

Data-Driven PDF Reports

59+ components, 3 report patterns, theme system. Typst as embedded engine, no markup required. Runs on Linux, macOS and Windows.

59+ Components 8 Categories 3 Report Patterns Cross-Platform Component API Theme Tokens Template Packs Embedded Typst Charts & Diagrams Barcodes & QR Crosstabs & Pivot Type-Safe
v0.1.0-alpha.3 · In active development
cargo add renderreport

What is RenderReport?

A library for professional PDF reports – without you needing to learn Typst. 59+ components in 8 categories, 3 report patterns and a theme system for consistent styles.

From audit reports to executive summaries to marketing showcases. Inspired by JasperReports and Eclipse BIRT, with a modern Rust API and Typst as the embedded engine.

This Simple

main.rs
 use renderreport::prelude::*;

fn main() -> renderreport::Result<()> {
    let engine = Engine::new()?;

    let report = engine
        .report("default")
        .title("SEO Audit Report")
        .add_component(ScoreCard::new("Performance", 87))
        .add_component(ScoreCard::new("SEO Score", 92))
        .add_component(Finding::new(
            "Missing Alt Texts",
            Severity::Medium,
            "23 images without alt attributes"
        ))
        .build();

    let pdf = engine.render_pdf(&report)?;
    std::fs::write("report.pdf", pdf)?;
    Ok(())
} 

No Typst code. No markup. Just Rust.

Components

Pre-built building blocks for professional reports.

ScoreCard & Gauge

Metrics with visual score display, gauge meters and BigNumber. Configurable thresholds and status indicators.

Finding & SpotlightCard

Audit findings with severity level, SpotlightCards with variants (critical, info, feature, opportunity).

AuditTable & Crosstab

Data tables, dynamic pivot tables with aggregation and ComparisonBlocks.

Charts & Sparklines

Bar, Line, Pie, Area, Scatter, Radar – plus inline Sparklines and TrendTiles.

Timeline & ProcessFlow

Project phases, milestones, process steps and RoadmapBlocks with status indicators.

ProductHero & PricingCard

Marketing components: Hero sections, feature grids, BenefitStrips, testimonials and CTAs.

Barcode & QR

11 formats: QR Code, Data Matrix, EAN-13, Code128, PDF417 and more.

Layout & Columns

Section, Grid, Columns with ratio, FlowGroup, PageBreak – flexible layouts for any report.

Narrative & Storytelling

Finding, PullQuote, WhyItMatters, ProblemSolution, BeforeAfter, UseCaseCard, FaqList.

+ ProgressBar, MetricStrip, ImpactGrid, DiagnosisPanel, RecommendationCard, StepCardRow, ChecklistPanel, Callout, SummaryBox, GlossaryList, BigNumber, Image, Funnel, Divider, Watermark, PageBreak...

Why RenderReport?

The benefits of Typst, without the learning curve.

Compile-Time Safety

Full compile-time guarantees. Errors in report construction are caught before execution.

Embedded Typst

Typst runs as a library, not as a CLI. No external dependency.

Theme Tokens

CSS-variable-like theming. Consistent styles across all components.

Template Packs

Extensible packages for specialized reports. SEO audits, security assessments.

Lightning Fast

No CLI overhead. Incremental compilation for maximum performance.

Type-Safe

Rust type system catches errors at compile time. Robust report generation.

Theme System

theming.rs
 let mut theme = Theme::new("brand", "Corporate Theme");

theme.tokens.set("color.primary", TokenValue::Color("#1a56db"));
theme.tokens.set("color.ok", TokenValue::Color("#059669"));
theme.tokens.set("color.warning", TokenValue::Color("#d97706"));
theme.tokens.set("font.heading", TokenValue::Font("Montserrat"));
let report = engine.report("default")
    .theme(theme)
// All components automatically use the theme
.build(); 

One theme changes the appearance of all components consistently.

Report Patterns

Pre-configured report structures for common use cases. Patterns combine components into ready-made report layouts.

AuditPattern

Hero → Context → Findings → Recommendations → Roadmap → CTA. Perfect for security and SEO audits.

ExecutivePattern

KPI Dashboard → Top Findings → Recommendation → Timeline. Compact C-level summaries on one page.

MarketingPattern

Hero → Features → Comparison → Testimonials → Pricing → CTA. Product showcases and sales decks.

Use Cases

Reports for every industry.

SEO & Security Audits

Performance scores, findings with severity, recommendations and roadmaps. Created in minutes with AuditPattern.

Executive Summaries

C-level reports with KPIs, top findings, recommendations and timeline. ExecutivePattern provides the structure.

Marketing & Sales

Product demos, feature comparisons, pricing and testimonials. MarketingPattern for professional showcases.

Compliance & Checklists

ChecklistPanel, AuditTable and DiagnosisPanel for audits and certifications.

Business Analytics

Pivot analyses, crosstabs, charts and KPI dashboards from any data source.

Project Reports

Timeline, PhaseBlock, RoadmapBlock and ProcessFlow for progress and status reports.

Technology

Rust Typst (embedded) Virtual Filesystem MIT / Apache-2.0

Rust for performance and safety. Typst for professional typesetting.

Ready for Data-Driven Reports?

Open Source. Type-Safe. No Typst knowledge required.