Drumee
Engineering

Browser-based DOCX, XLSX and PPTX viewer and editor for JavaScript, TypeScript and React

The Drumee team · 30 November 2026 · 6 min read A 300k-row XLSX opening in the browser: rows stream in, then a jump to the last row. Opening an Office file in a web app usually means sending it somewhere else. You upload the DOCX to a document se...

Browser-based DOCX, XLSX and PPTX viewer and editor for JavaScript, TypeScript and React

Browser-based DOCX, XLSX and PPTX viewer and editor for JavaScript, TypeScript and React

The Drumee team · 30 November 2026 · 6 min read

A 300,000-row XLSX file streaming into the browser, then jumping to the last row

A 300k-row XLSX opening in the browser: rows stream in, then a jump to the last row.

Opening an Office file in a web app usually means sending it somewhere else. You upload the DOCX to a document server, the server renders it, and the result comes back to the browser.

That works, but it means running OnlyOffice or Collabora next to your app, patching it, scaling it, and accepting that every document passes through one more machine.

We didn't want that for Drumee, our self-hosted workspace. Our users pick Drumee because their files stay on their own servers. Sending those files to a third-party document server just to open them would break that promise.

So we built office-engine: a JavaScript document viewer and editor for Office files that runs entirely in the browser. No server, no runtime dependencies, nothing leaves the tab. Today we're releasing it under the MIT license as @p10node/office-engine.

What it opens and edits

  • Edit DOCX, XLSX and PPTX directly in the browser, then save back to the original format.
  • Open and edit legacy Office 97-2003 files (DOC, XLS, PPT), RTF and OpenDocument (ODT, ODS, ODP). They are converted in the worker and saved as DOCX, XLSX or PPTX.
  • View Apple Pages, Keynote and Numbers files, and Microsoft Visio drawings (.vsdx).
  • Open CSV, text, Markdown, HTML and SVG as editable sheets or documents.
  • Draw Mermaid, PlantUML and Graphviz diagrams with a built-in layout engine. No Java, no WebAssembly, no network call.
DOCX editor with a Google Docs-style toolbar
PPTX editor with slide thumbnails

Editing comes with a Google Docs-style toolbar: styles, lists, tables and images in documents; 540+ Excel and Google Sheets functions (including dynamic arrays, LET and LAMBDA) in spreadsheets; shapes, images and a slideshow in presentations. Comments with replies and @mentions, real-time collaboration, dark mode and theming are built in.

Three people editing the same spreadsheet in real time

Real-time collaboration: three browsers, one sheet.

Zero runtime dependencies, zero servers

Parsing, page layout, formulas, diagrams and ZIP handling are all inside the library, and they run in a Web Worker so the UI never blocks. That changes what you have to operate:

  • No document server to deploy, patch or scale.
  • No data leaves the browser. Files are read and written in the tab.
  • Ships as a static bundle. It works on an air-gapped network, behind strict CSP, or on a plain CDN.

This is why we call it a lightweight self-hosted alternative to OnlyOffice and Collabora. Those are full office suites with their own servers. office-engine is a library you add to the app you already have.

Open a 55 GB CSV in a browser tab

There is no row limit. The first screen shows in seconds. Up to 12 million cells stay in memory, and every other row is read from the file the moment it scrolls into view.

  • 55 GB: CSV, 500M rows, open in ~4.5 min
  • < 1 GB: tab memory, 1M or 500M rows
  • ~2.5 s: 300k-row XLSX fully loaded
Table: Open a 55 GB CSV in a browser tab. CSV 500M rows × 10 cols: Size 55 GB; First paint ~2.8 s; Fully loaded ~4.5 min | CSV 100M rows × 10 cols: Size 10.6 GB; First paint ~690 ms; Fully loaded ~50 s | CSV 1M rows × 10 cols: Size 99.1 MB; First paint ~390 ms; Fully loaded ~2.7 s | XLSX 300k rows × 12 cols: Size 24.8 MB; First paint ~320 ms; Fully loaded ~2.5 s | DOCX 20k paragraphs: Size 1.2 MB; First paint ~320 ms; Fully loaded 2,012 pages in ~3 s | PPTX 305 slides: Size 0.3 MB; First paint ~210 ms; Fully loaded on demand

Measured in headless Chromium on an Apple M1 Pro, November 2026.

XLSX goes up to Excel's full 1,048,576 × 16,384 grid, DOCX to thousands of pages, and PPTX to hundreds of slides.

How it stays fast

  • Progressive loading, like Google Docs. Lazy ZIP reading, HTTP Range requests and a streaming XML parser show the first page before the file is fully read.
  • Virtualized views. Only the pages, cells and slides on screen are rendered.
  • Word-like pagination. Paragraphs split across pages between lines, tables between rows with header rows repeated, with widow/orphan control and keep-with-next.
  • Fast save. Only the parts you edited are regenerated; everything else keeps its original bytes.

Embed it in one line of React

npm install @p10node/office-engine
import { DocViewer } from '@p10node/office-engine'

// View a local file
<DocViewer src={file} style={{ height: 600 }} />

// Stream a remote file with Range requests
<DocViewer src="https://cdn.example.com/report.xlsx" />

// Edit and save back to the original format
<DocViewer src={file} editable onSave={(blob, name) => upload(blob, name)} />

Not using React? Drop in one script and a web component:


**Try Drumee with your team:** your first month is $1. [Start your team for $1](https://drumee.com/team-1usd?offer=TEAM1_BLOG&utm_campaign=blog_1usd&utm_source=drumee_blog&utm_medium=blog)

<script src="office-engine.embed.js"></script>
<office-viewer src="/files/report.docx" style="height:600px"></office-viewer>

It is written in TypeScript and ships its own types. There is also a vanilla mount() API and a hook.

Also on the server, without LibreOffice

@p10node/convert runs the same engine in Node or Bun to convert DOC, XLS, PPT, RTF, OpenDocument, Pages, Visio, CSV, Markdown and HTML to DOCX, XLSX or PPTX. It exposes Gotenberg-compatible HTTP routes in a Docker image. The diagram and Markdown renderers also ship as standalone packages from 17 KB gzipped.

Why Drumee built it

Drumee is a self-hosted, privacy-first workspace: files, chat, meetings and documents on infrastructure you control. Every component we add has to respect that. A document server would have been one more service to run and one more place for files to travel. A browser engine keeps documents where they already are: on your server and in your user's tab.

We're open-sourcing it because any team building a file manager, LMS, CRM, data room or internal tool runs into the same problem.

Try it

  • Live demo: 300k-row sheet, 305-slide deck, drop in your own file
  • GitHub: a star helps
  • npm: @p10node/office-engine
  • Docs: API, theming, collaboration
  • Drumee: see it inside a full self-hosted workspace

Keep reading