Read, write and edit xlsx as a stream.

A JavaScript library with no dependencies. Rows go through one at a time, so memory stays flat whether the file has a hundred rows or a million. Runs in Node, Bun, browsers and Cloudflare Workers.

$ npm install @xlsxflow/core

Also reads .xls and .ods, and writes .ods. Free under the MIT licence.

Making a sample file
ABCDEFGH
1
2
3
4
5
6
7
8
9
10
11
12
13
14

This sample was written by SheetWriter in your browser a moment ago, then read back by SheetReader. Open your own file to try it; it stays on your computer.

Read a file

import { SheetReader, createBlobReader } from '@xlsxflow/core';

const rows = await new SheetReader().parse(createBlobReader(file));
for await (const row of rows) {
  console.log(row.rowNumber, row.cells); // 1 ['Order', 'Date', …]
}

Stream one out of a server

import { SheetWriter } from '@xlsxflow/core';

const writer = new SheetWriter();
writer.addSheet('Report', rowsFromDatabase()); // an array or async iterable
const xlsx = writer.write(); // ReadableStream<Uint8Array>
return new Response(xlsx);

Styles, formulas, merges, frozen panes, images and more are covered in the documentation.

Compared with SheetJS and ExcelJS

SheetJS reads and writes far more formats, and ExcelJS has a longer track record. XlsxFlow focuses on .xlsx: streaming in flat memory, keeping everything in a file it edits, and running on Web APIs alone.

FeatureXlsxFlowSheetJS Community EditionExcelJS 4.4
Streaming .xlsx read and writeYesNo (streams CSV, HTML and JSON out)Yes
Cell styles, read and writeYesNo (SheetJS Pro)Yes
ImagesYesNoYes
.xlsReadRead and writeNo
.odsRead and writeRead and writeNo
.xlsb, .numbers and other formatsNoYesNo
ChartsAdd (Pro)No (SheetJS Pro)No
Pivot tablesAdd (Pro)No (SheetJS Pro)Partial, undocumented
Password-protected filesOpen and save (Pro)Old .xls obfuscation only (SheetJS Pro opens AES files)No
LicenceMIT, Pro is paidApache 2.0MIT

Speed and memory

LibraryWrite 1M cellsHeap growthRead 1M cellsPeak memory
XlsxFlow2.9 s+2 MB2.3 s96 MB
ExcelJS 4.4, streaming3.4 s+9 MB2.7 s263 MB
SheetJS 0.20.3, compressed4.4 s+140 MB6.1 s549 MB

Features were checked against each project's own documentation on 8 October 2026: SheetJS formats, SheetJS Pro and the ExcelJS README. ExcelJS's last release was in October 2023.

Timings are from one laptop on Node 25 and varied by up to 2× between runs, so treat differences under about 20% as a tie. The method, more libraries and the scripts are in the README. Spotted something out of date? Tell us and we'll correct it.

Want numbers for your own data? Compare all three on one of your files, in your browser.

SheetJS and ExcelJS belong to their respective owners. XlsxFlow isn't affiliated with or endorsed by either project.

Free, and Pro for $5.

What it doesCorePro
Read .xlsx, .xlsm, .xls and .ods
Write and edit .xlsx, write .ods
Styles, formulas, images, tables, notes and conditional formats
Fill Excel templates with data, with rows that repeat for listsNot included
Column, bar, line, area and pie chartsNot included
Pivot tablesNot included
Open and save password-protected .xlsx filesNot included

@xlsxflow/pro is an add-on to the core package for the work that usually needs Excel itself: templates, charts, pivot tables and passwords.

  • Free for the first 100 developers during the beta, then $5 per developer, one-time payment.
  • Perpetual licence, with every version released within a year of your order.
  • Build servers and CI don't need their own key.
  • Full refund within 14 days if it doesn't work for you, processed by Polar.

How it works

  1. Install it: npm install @xlsxflow/core @xlsxflow/pro
  2. Get Pro through the Polar checkout. You come back here and your key appears in Get your licence key. Lost it later? Enter the order ID from your Polar receipt there.
  3. Call await setLicenseKey(key) once at startup. Without a key, Pro functions throw an error.

Get your licence key

Bought Pro? Enter the order ID from your Polar receipt and the email you used. The key is made on the spot and works offline; nothing is stored here.

Lost the receipt or stuck? Email palikaomkar@gmail.com.