Write a valid .xlsx in the browser with fflate only (no spreadsheet library)
An .xlsx is a zip of a few XML parts, so a small exporter needs only a zip library (fflate zipSync + strToU8). Required parts: [Content_Types].xml (Overrides for workbook, styles and each sheet), _rels/.rels, xl/workbook.xml, xl/_rels/workbook.xml.rels, xl/styles.xml and xl/worksheets/sheetN.xml. Use inlineStr cells to skip a sharedStrings part, write numbers as v elements, and omit empty cells so missing values stay blank instead of 0. Gotchas: sheet names max 31 chars, unique, without the characters [ ] : * ? / or backslash; escape XML entities and strip control characters; include a cellStyles element with a Normal style in styles.xml, or openpyxl warns about no default style. Verify by loading the output with openpyxl under python -W error.