#!/usr/bin/env python3 """ ROM Farmer Project Report Generator Generates a self-contained HTML report showcasing ROM Farmer's capabilities. Mermaid diagrams are rendered to PNG and embedded as base64 for portability. """ import base64 from datetime import datetime from pathlib import Path from playwright.sync_api import sync_playwright OUTPUT_DIR = Path("/path/to/rom-farmer/docs") OUTPUT_DIR.mkdir(exist_ok=True) def render_mermaid_to_base64(mermaid_code: str, width: int = 800) -> str: """Render Mermaid diagram to base64-encoded PNG using Playwright.""" html_template = f"""
{cap["description"]}
The configuration-driven ROM collection pipeline that maximizes great games per gigabyte
Project Report • {datetime.now().strftime('%B %d, %Y')}
A complete solution for building optimized retro gaming collections
"EVERYTHING is really about getting the best compression ratio so that we can have more great games than anyone else for the storage space."
ROM Farmer transforms ROM collection management from tedious manual work into a streamlined, configuration-driven process. Define your target device and storage budget in YAML, and ROM Farmer handles everything else: validation, filtering, compression, metadata, and organization.
End-to-end pipeline from source archives to deployment-ready collections
8 stages process your ROMs with surgical precision
Verify every ROM against official No-Intro/Redump DAT files using MD5 hashes
One Game, One ROM - select best version per title with English priority
Apply curated best-of lists or custom selection criteria
Delete unwanted titles, add extras from Myrient/other sources
Extract cartridge ROMs from ZIPs, handle disc images appropriately
Target-aware format selection: ZIP, 7z, CHD, RVZ, or uncompressed
Arrange files using flat, alphabetical, or rich subdirectory structures
Create gamelist.xml with artwork, videos, and game information
Everything you need for professional-grade ROM management
Intelligent tier-based prioritization ensures quality over quantity
5-tier system ensures must-have platforms always fit
Define a storage budget like "256GB" and ROM Farmer calculates usable space (accounting for filesystem overhead), then processes platforms in tier order. Tier 1-2 platforms are always included in full. When space gets tight, Tier 3+ platforms automatically switch to "best-of" mode, including only curated essential games instead of full libraries.
Smart device profiles that know what works and what doesn't
Define how the frontend organizes and accesses ROMs:
Define hardware capabilities and limitations:
40+ platforms with format-specific handling
The problems we solve
More great games, better organized, with full metadata and media, optimized for your specific device — all from a single YAML configuration file. Build once, deploy anywhere.