Stream if you wanna go faster
#540 — July 16, 2024
A Guide to Reading and Writing Node.js Streams — A post from the creator of Fastify (and a Node.js TSC member) is always a treat. Matteo reminds us of the benefits of using Node’s powerful streaming data features, where they make sense, and how to handle back-pressure and error management.
Matteo Collina
Work Progresses on node:sqlite — Last week, we featured efforts to include SQLite and a client library into the Node distribution. Things continue to progress quickly, with the feature proposed for inclusion in the forthcoming Node v22.5. You can see how it’ll work in this CodeSandbox example.
Node.js GitHub Repo
WorkOS: The Modern Identity Platform for B2B SaaS — Start selling to enterprise customers with just a few lines of code. WorkOS provides flexible, easy-to-use APIs to integrate SSO, SCIM, and RBAC in minutes. It’s used by hundreds of high-growth startups including Perplexity, Vercel, Drata, & Webflow.
WorkOS sponsor
NPM Supply Chain Security: Why We Can Be Optimistic About the Future — We frequently link to stories about misuses of npm to distribute malware, nefarious packages, and more, but Robat reflects on just how much things are improving with 2FA, package provenance, and community efforts.
Robat William
⚠️ In related news, Socket reports an unverified npm account takeover vulnerability was offered for sale on a dark web forum.
IN BRIEF:
Deno 1.45 is out and continues to improve its Node.js compatibility story significantly. It’s also gained support for workspaces and monorepos.
The Node subreddit got its teeth into an age old question: MongoDB versus Postgres?
The npm registry has begun removing READMEs from package version metadata to reduce the size of package packuments.
Tabular-JSON is a proposed superset of JSON that adds support for CSV-like tables and optional quotes.
A Developer’s Review of a Snapdragon X Laptop — The Lenovo Yoga Slim 7x, specifically. It’s a neat developer-focused look at a new option on the market. It’s not all about Node but he did try to get Node working under Windows on ARM and ran into some teething problems.
Wesley Moore
Bring StackBlitz to Work — In our upcoming livestream, we’ll cover the best ways to build and share prototypes and quickly reproduce bugs.
StackBlitz sponsor
📄 Why page.goto() is Slowing Down Your Playwright Tests Stefan Judis
📄 Playwright vs. Puppeteer: Which is Better? Lekh and Vasilis (Apify)
📄 Building a Full-Stack App with Kafka and Node Lucia Cerchie (Confluent)
🛠 Code & Tools
Micro Agent: An AI Agent That Writes Code for You — Sure, you can ask ChatGPT, Copilot or Claude to write code for you, but you know how that can sometimes turn out.. Is there a better way? Micro Agent is a Node-based tool that takes the approach of writing a test case first and then iterates upon a solution until the tests pass.
Builder․io
💡 Steve Sewell and Vishwas Gopinath have blogged more about how it works here.
why-is-node-running: Find Out Why Node is Running — Most of the time you know why your app is running, but when you don’t, this can help you to find out what’s keeping it going.
Mathias Buus
📰 Classifieds
Meetings should be more like code reviews. We’re building a product for that and looking for software leaders to join the beta. Apply here.
🐘 Postgres user? Check out our sister newsletter, Postgres Weekly.
Poku 2.0: A Cross-Platform Test Runner for JS — Poku’s philosophy is to ‘bring the JavaScript essence back to testing.’ It runs the same way across Node, Bun and Deno, and auto-detects ESM, CommonJS and TypeScript.
Weslley Araújo
tsoa: Build OpenAPI-Compliant REST APIs with TypeScript — Use TypeScript-based controllers and models as the single source of truth for your API with an OpenAPI spec then generated from them.
Luke Autry
ESLint v9.7.0 – Now supports ECMAScript 2025 duplicate capturing groups in regexes.
Typegoose 12.6 – Define Mongoose 8.5 models as TypeScript classes.
Path-to-RegExp 7.1 – Turn path strings (e.g. /user/:name) into regular expressions.
xero-node 9.0 – Node SDK for the popular Xero accounting system.
ClickHouse JS 1.4 – Official JS client for ClickHouse DB.
tsdav 2.1 – WebDAV, CALDAV, and CARDDAV client library.
NestJS Throttler 6.0 – Rate limiting module for NestJS.
Polyglot.js 2.6 – I18n helper library from Airbnb.
Soap 1.1 – A SOAP client and server library.