Sheetstream v0.2:在 Node 中用 82 MB 内存写入百万行 XLSX
📊 核心数据与事实(2026-10-08):
Sheetstream 发布 v0.2,这是一个用 Rust 通过 napi-rs 实现的 Node.js 库,可流式读写任意大小的 XLSX 和 CSV,默认每 1000 行一批,百万行文件只占几十 MB 内存。
• 原文实测切片:import { writeXlsx } from 'sheetstream' await writeXlsx ( 'invoices.xlsx' , invoices ( ) , { columns : [ { key : 'id' , header : 'Invoice' , width : 10 } , { key : 'customer' , header : 'Customer' , width : 28 } , { key : 'total' , header : 'To…
• 原文实测切片:The measured 1M row by 10 column write with a width and number format on every column plus a styled, frozen, filtered header peaks at about 80 MB of RSS, the same as without formatting.
• 原文实测切片:CSV import { writeCsv , readCsv } from 'sheetstream' await writeCsv ( 'users.csv' , rows ( ) , { delimiter : ';' , bom : true } ) for await ( const batch of readCsv ( 'users.csv' , { delimiter : ';' , inferTypes : true } ) ) { for ( const user…
💡 对独立开发者的启发:
1/ 写代码发新版是最舒服的「伪勤奋」——大多数独立开发项目零收入不是产品不行,而是压根没做分发。
2/ 任何一次上线流量都会自然衰减;在动手写第二个工具之前,先给第一个产品建好可持续获客漏斗(SEO 长尾词、Reddit 真实复盘、社媒切片)。
3/ 把 80% 精力放分发和落地页首屏转化上:先靠单点高痛点工具跑出稳定现金流,再谈矩阵放大。
📅 日期:2026-10-08(北京时间)
📰 信息源出处:Hacker News Show HN · AnzalAbidi(github.com)
🔗 原文:https://github.com/anzal1/sheetstream
📡 归档:https://billionare.me/items/fzh5fhbl79r12yn25phnsna3x
社媒成稿工作台 · 一键复制
飞书同步推送 · 含数据/日期/出处/启发Sheetstream v0.2:在 Node 中用 82 MB 内存写入百万行 XLSX 📊 核心数据与事实(2026-10-08): Sheetstream 发布 v0.2,这是一个用 Rust 通过 napi-rs 实现的 Node.js 库,可流式读写任意大小的 XLSX 和 CSV,默认每 1000 行一批,百万行文件只占几十 MB 内存。 • 原文实测切片:import { writeXlsx } from 'sheetstream' await writeXlsx ( 'invoices.xlsx' , invoices ( ) , { columns : [ { key : 'id' , header : 'Invoice' , width : 10 } , { key : 'customer' , header : 'Customer' , width : 28 } , { key : 'total' , header : 'To… • 原文实测切片:The measured 1M row by 10 column write with a width and number format on every column plus a styled, frozen, filtered header peaks at about 80 MB of RSS, the same as without formatting. • 原文实测切片:CSV import { writeCsv , readCsv } from 'sheetstream' await writeCsv ( 'users.csv' , rows ( ) , { delimiter : ';' , bom : true } ) for await ( const batch of readCsv ( 'users.csv' , { delimiter : ';' , inferTypes : true } ) ) { for ( const user… 💡 对独立开发者的启发: 1/ 写代码发新版是最舒服的「伪勤奋」——大多数独立开发项目零收入不是产品不行,而是压根没做分发。 2/ 任何一次上线流量都会自然衰减;在动手写第二个工具之前,先给第一个产品建好可持续获客漏斗(SEO 长尾词、Reddit 真实复盘、社媒切片)。 3/ 把 80% 精力放分发和落地页首屏转化上:先靠单点高痛点工具跑出稳定现金流,再谈矩阵放大。 📅 日期:2026-10-08(北京时间) 📰 信息源出处:Hacker News Show HN · AnzalAbidi(github.com) 🔗 原文:https://github.com/anzal1/sheetstream 📡 归档:https://billionare.me/items/fzh5fhbl79r12yn25phnsna3x