# write-excel-file: 6.4 out of 10

Reasonable, with limits. 5th of 8 in [CSV and Excel files](https://elestia.ai/opensource/spreadsheets/index.md).

write-excel-file is a small, MIT-licensed library from one maintainer. It writes .xlsx files in the browser or Node.js from arrays of rows or JSON objects, with styles, images, formulas and conditional formatting. It is a good lightweight choice for exporting tables to Excel. It cannot read files or write CSV, it has little outside validation, and its API changed in each of the last two major versions.

**Best for:** Web apps that need to export data to a styled .xlsx file with a small bundle and one dependency, and never read spreadsheets.

## Scores

- **Overall: 6.4** (likely 5.4 to 7.4)
  - Claude Opus 5.5 (5.5): It is a good, lean writer for browser or Node Excel exports, and it is maintained, which ExcelJS and the npm version of SheetJS are not. Several things hold it back: it is write-only, it has one maintainer, the last two majors broke the API, and there is almost no independent validation. Its real direct use is small despite the download spike. Pick it for simple-to-moderate styled exports. Use a fuller library if you need to read files, handle CSV, or build complex workbooks.
  - GPT-6.2 Sol (7.3): This is a strong choice for new projects that create formatted Excel reports of predictable size. Its typed API keeps routine exports simple, and it has shipped more recently than ExcelJS. ExcelJS is more capable for workbook edits and large streaming exports, while SheetJS covers more file formats. The release gap and reliance on one listed publisher limit confidence in long-term support.
- **Needed by many: 4.2** (likely 3.1 to 5.3)
  - Claude Opus 5.5 (4.0): Many business web apps need an Excel export, but this tool covers only one part of the category: writing .xlsx. It does not read files or handle CSV. It does work on both browser and Node.js.
  - GPT-6.2 Sol (4.3): Formatted Excel export is a recurring need in reporting and business apps, and the writer works across browser and Node.js projects. Its scope is limited to creating new .xlsx files. The developer survey gives context on runtimes, while the share of projects that need Excel export is an estimate.
- **Helps a lot: 6.7** (likely 5.7 to 7.7)
  - Claude Opus 5.5 (6.0): For writing files it is capable: rich cell styles, column and row spans, frozen panes, images, formulas, conditional formatting and Node streams, all with a tiny dependency footprint. It cannot read or edit existing workbooks, has no charts, and leaves things like data validation to add-ons. Repeated API changes between majors also make examples and AI-written code less reliable. ExcelJS does more but is unmaintained.
  - GPT-6.2 Sol (7.4): Version 4.1.1 has typed, documented APIs for turning rows or objects into styled workbooks. Node.js can stream the ZIP output, but worksheet data is assembled in memory first. ExcelJS handles large row-by-row exports better, and a user reported that larger exports can fail in Supabase Edge when workers are unavailable. Independent measurements vary by version and workload, and coding-agent performance is unmeasured.
- **Holds up over time: 6.0** (likely 4.5 to 7.3)
  - Claude Opus 5.5 (5.5): Development is active: 36 commits and 19 npm versions in the last year, with the latest in June 2026. The author has kept up a family of packages for years, including read-excel-file, which was updated in November 2026. Still, there is one maintainer with no visible funding, and the last two majors brought breaking changes. Recent issues from June to September 2026 are still open.
  - GPT-6.2 Sol (6.4): The project published 19 npm versions in a year and fixed reported workbook bugs, with its latest release in June 2026. The February and April major versions both changed public APIs, and users reported friction with the v3 types. GitLab hosts the primary project, so the GitHub release count carries little weight. One listed npm collaborator and limited evidence of funding or release backup make the two-year outlook less certain.
- **Used widely: 3.9** (likely 2.6 to 5.4)
  - Claude Opus 5.5 (3.5): Downloads jumped 27x to 11M in four weeks, far above the median ratio of 4.1. But ecosyste.ms finds only 58 dependent repos and 21 packages, against thousands for ExcelJS, node-xlsx and read-excel-file. That gap suggests most installs come from a transitive dependency or automation, not from people choosing it. There are 36 stars and no posts on HN or Bluesky.
  - GPT-6.2 Sol (4.2): Four-week downloads rose from 404,252 to almost 11 million, a 27.2-fold increase against the catalog median of 4.1-fold. That signals momentum, while the 58 indexed dependent repositories and 21 packages suggest a much smaller base of direct adopters than ExcelJS or SheetJS. GitHub stars and Bluesky links cover the backup repository, and the mix of direct, automated, and transitive installs remains unclear.
- **Vouched for: 4.6** (likely 3.5 to 5.9)
  - Claude Opus 5.5 (2.5): I found no survey mentions, independent benchmarks, named production users, or frameworks that build on it. Third-party comparison pages call it a simple writer and only list it. The 2023 rewrite was not documented anywhere I could find. The score rests mainly on the absence of evidence.
  - GPT-6.2 Sol (6.6): HCL lists version 4.1.1 in BigFix AEX v14, and IntraFind uses the library for chat exports. An independent comparison found the API suited to modest reports, while LibreGrid chose a different implementation because it needed more Excel features. These are specific examples of adoption and evaluation, with little survey or framework evidence to establish broader confidence.
- **Safe: 7.7** (likely 6.3 to 8.6)
  - Claude Opus 5.5 (7.0): The attack surface is small: one runtime dependency (fflate), an MIT licence and no known advisories. Against that, one person publishes it, there is no OpenSSF Scorecard, and there are no GitHub releases to show how versions are built. I could not open Socket's page to check provenance.
  - GPT-6.2 Sol (8.3): The MIT-licensed writer has one runtime dependency and zero direct advisories in the bundle. Its dependency range admits the fflate fix for a ZIP-reading advisory, and the writer uses fflate for compression. One npm collaborator is listed, and release provenance and OpenSSF Scorecard coverage remain unverified.

## Good

- It has a single dependency (fflate), so it adds little to a browser bundle compared with SheetJS or ExcelJS.
- One API covers browser, Node.js and universal entry points, with toFile, toBuffer, toStream and toBlob outputs.
- It covers what common exports need: cell styles, merged cells, frozen rows, column widths, images, formulas and conditional formatting.
- It ships its own TypeScript types and is actively developed, with 19 npm versions in the last year.

## Bad

- It only writes .xlsx. Reading needs the sister package read-excel-file, and CSV needs another library.
- Majors 3 and 4 both broke the API, so older tutorials and AI-generated code often use the wrong signatures.
- It is maintained by one person and has almost no independent reviews, benchmarks or community discussion.
- Advanced features such as data validation rely on third-party add-ons that must write XML in the right order, or Excel reports a corrupt file.

## The numbers

- Downloads, 4 weeks: 11M
- In a year: ×27
- GitHub stars: 36
- Commits, 12 months: 36
- Last npm release: Jun 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/catamphetamine/write-excel-file
- npm: https://www.npmjs.com/package/write-excel-file

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
