Office Engine is an MIT-licensed JavaScript library for viewing and editing DOCX, XLSX, and PPTX files directly in a browser, without sending documents to a server. Its central idea is to make large office files usable quickly by loading content progressively: it uses HTTP range requests and lazy ZIP access where possible, parses XML in a Web Worker, and renders only visible pages, cells, or slides. The project reports that a 24.8 MB spreadsheet with 300,000 rows and 12 columns shows its first content in about 330 milliseconds and loads fully in roughly two seconds. Benchmarks were run in headless Chromium on Apple M-series hardware.
The editors support document text and formatting, spreadsheet cells and formulas (134 functions), and presentation text, shapes, images, and slideshows. Saving regenerates only changed file components, preserving the original bytes for untouched parts. Additional features include CSV import, PDF and other exports, printing, and real-time collaboration with cursors, avatars, and offline edits that sync after reconnection. Developers can embed it as a React component or use a hook, vanilla JavaScript mount, or web component. The repository provides a live demo with large sample files and upload-your-own-file support; its documentation also describes supported formats and limitations.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.