write-excel-file
Reasonable, with limits. 5th of 8 CSV and Excel files.
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
Overall6.4
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 5.5, likely 4.5 to 6.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.
- github.com/catamphetamine/write-excel-file: Features and migration history
- peers ExcelJS commitsLastYear: The richer peer had no commits in the last year
- dependents: Few direct dependents
- npm-compare.com/exceljs,xlsx: Context on the main peers
GPT-6.2 Sol: 7.3, likely 6.2 to 8.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.
- github.com/catamphetamine/write-excel-file: Documents the current browser and Node.js export API.
- simple-excel.getjetstream.app/docs/comparison: Compares modest report export, workbook editing, streaming, and format coverage.
- npm latestPublishedAt; peers ExcelJS latestPublishedAt: Latest releases are June 2026 for write-excel-file and October 2023 for ExcelJS.
- npmjs.com/package/write-excel-file?activeTab=dependencies: One npm collaborator is listed.
Needed by many4.2
How many developers need a tool for this job?
Claude Opus 5.5: 4.0, likely 3.0 to 5.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.
- github.com/catamphetamine/write-excel-file: Writes .xlsx only, with browser, node and universal entry points
- github description: Write *.xlsx files in a browser or Node.js
GPT-6.2 Sol: 4.3, likely 3.2 to 5.5
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.
- github.com/catamphetamine/write-excel-file: Documents framework-independent .xlsx generation in browsers and Node.js.
- github.com/intrafind/ihub-apps/issues/1770: Shows a concrete application export workflow.
- 2025.stateofjs.com/en-US/other-tools: Browser and Node.js lead the runtime survey, which has no spreadsheet-export measure.
Helps a lot6.7
How well does it do the job for those who need it?
Claude Opus 5.5: 6.0, likely 5.0 to 7.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.
- github.com/catamphetamine/write-excel-file: Feature list and limits, plus the 2.x to 3.x and 3.x to 4.x migration notes
- cdn.jsdelivr.net/npm/write-excel-file@4.1.1/README.md: Version 4 API with toFile, toBuffer and toStream; needs Node 18
- pkgpulse.com/guides/sheetjs-vs-exceljs-vs-node-xlsx-excel-files-node-2026: Third-party guide on when to use richer writers such as ExcelJS
- npm hasTypes: Ships its own types
GPT-6.2 Sol: 7.4, likely 6.3 to 8.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.
- github.com/catamphetamine/write-excel-file: Current examples cover column mapping, styling, formulas, and runtime-specific output.
- github.com/catamphetamine/write-excel-file/issues/17: Maintainer confirms in-memory file generation before writing.
- github.com/xlsxflow/xlsxflow: Independent competitor benchmark reports faster large writes with ExcelJS streaming.
- github.com/catamphetamine/write-excel-file/issues/18: User reports size-dependent failures in Supabase Edge.
- github.com/libregrid/libregrid/blob/main/docs/phases/phase-05-excel-export.md: Downstream evaluation identifies missing tables, sheet protection, and outline levels.
Holds up over time6.0
Will it still be a good choice in two years?
Claude Opus 5.5: 5.5, likely 4.0 to 7.0
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.
- npm versionsLastYear: 19 versions in the last year
- github commitsLastYear: 36 commits; 4 contributors overall
- github.com/catamphetamine/write-excel-file/issues: 3 open issues from June to September 2026
- npm latestPublishedAt: Last published 2026-06-08
GPT-6.2 Sol: 6.4, likely 5.0 to 7.6
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.
- npm versionsLastYear, latestPublishedAt: 19 versions in the past year, last published June 8.
- gitlab.com/catamphetamine/write-excel-file/-/tags: Primary GitLab tags confirm the latest release date.
- github.com/catamphetamine/write-excel-file/blob/master/CHANGELOG.md: Documents two breaking upgrades and fixes for Excel compatibility and workbook corruption.
- gitlab.com/catamphetamine/write-excel-file/-/work_items/107: User reports a type error when accessing styling properties after the v3 upgrade.
- npmjs.com/package/write-excel-file?activeTab=dependencies: Lists one npm collaborator and identifies GitLab as the primary repository.
Used widely3.9
How many use it, and is that growing?
Claude Opus 5.5: 3.5, likely 2.5 to 5.0
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.
- npm downloadsLast4Weeks: 11.0M, up from 404k a year ago
- dependents: 58 repos and 21 packages, far below the peers
- github stars: Only 36 stars
- peers read-excel-file dependentRepos: 1,359 for the sister package
GPT-6.2 Sol: 4.2, likely 2.7 to 5.8
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.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: Download growth substantially exceeds the catalog baseline.
- dependents repos, packages; peers dependentRepos: 58 indexed repositories versus 4,295 for ExcelJS and 39,551 for SheetJS.
- github stars, bluesky posts, hackerNews stories: 36 stars on the backup repository, zero matched posts, and zero matched stories.
- github.com/catamphetamine/write-excel-file: The project identifies GitHub as a backup and GitLab as its primary home.
Vouched for4.6
Who stands behind it being good?
Claude Opus 5.5: 2.5, likely 1.5 to 4.0
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.
- hackerNews stories: No HN stories
- bluesky posts: No Bluesky posts
- typed-xlsx.chronicstone.dev/getting-started/comparison: Comparison of xlsx writers that leaves it out
- dev.to/mubsira/stop-bundling-sheetjs-for-simple-excel-exports-a-5-kb-alternative-kpb: Article on lightweight export libraries that does not mention it
GPT-6.2 Sol: 6.6, likely 5.4 to 7.7
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.
- help.hcl-software.com/intelligentoperations/bigfixaex/version_14.0/HCL_BigFix_AEX_v14.0_Release_Notes.pdf: Lists write-excel-file 4.1.1 among shipped components.
- github.com/intrafind/ihub-apps/issues/1770: Documents use in chat export and a completed change to load it on demand.
- simple-excel.getjetstream.app/docs/comparison: Independent competitor evaluation identifies modest-sized reports as a good fit.
- github.com/libregrid/libregrid/blob/main/docs/phases/phase-05-excel-export.md: Used it as a format reference and declined it as a dependency due to feature gaps.
Safe7.7
How safe is it to depend on?
Claude Opus 5.5: 7.0, likely 5.5 to 8.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.
- npm dependencies: 1 dependency
- advisories total: 0 advisories
- scorecard: No Scorecard data
- npm license: MIT
GPT-6.2 Sol: 8.3, likely 7.1 to 9.2
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.
- npm license, dependencies; advisories total; scorecard: MIT, one dependency, zero direct advisories, and no collected OpenSSF score.
- github.com/catamphetamine/write-excel-file/blob/master/package.json: Declares fflate ^0.8.2 and runs tests before publishing.
- osv.dev/vulnerability/GHSA-px8p-9vwx-vf98: The ZIP-reading advisory is fixed in fflate 0.8.3 on the compatible release line.
- npmjs.com/package/write-excel-file?activeTab=dependencies: Lists one collaborator and documents fflate compression.
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
- npm downloads, 4 weeks
- 11M ×27 in a year
- GitHub stars
- 36
- Commits, 12 months
- 36
- npm version
- 4.1.1 Jun 2026
- Versions, 12 months
- 19
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
Read on 21 November 2026 from GitHub (catamphetamine/write-excel-file), npm (write-excel-file), OSV and the OpenSSF Scorecard.
CSV and Excel files
- 7.8node-csv
- 7.6Papa Parse
- 6.7read-excel-file
- 6.5fast-csv
- 6.4write-excel-file
- 5.8SheetJS
- 5.2node-xlsx
- 4.2ExcelJS