---
title: "Stream if you wanna go faster"
publication: "Node Weekly"
issue: 540
published_at: "2024-07-16"
canonical_url: "https://nodeweekly.com/issues/540"
---

Plus node:sqlite is a step closer, and why to be optimistic about npm supply chain security. |        

#​540 — July 16, 2024 

[Read on the Web](https://nodeweekly.com/issues/540)  

Together with [![WorkOS\](https://res.cloudinary.com/cpress/image/upload/c_fill,g_auto,w_514,h_98/e_make_transparent/co_white,e_outline:9/tdfxwgk852ui9leli4wm.png)](https://workos.com/?utm_source=cpnode&utm_medium=newsletter&utm_campaign=q22024)  

![Node.js Weekly](https://res.cloudinary.com/cpress/image/upload/v1653576619/lgfqinzbdqttwmhvljxb.png) 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/txlvaqhtwgrjdmt7yvic.jpg)](https://blog.platformatic.dev/a-guide-to-reading-and-writing-nodejs-streams)  

[A Guide to Reading and Writing Node.js Streams](https://blog.platformatic.dev/a-guide-to-reading-and-writing-nodejs-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](https://nodejs.org/api/stream.html), where they make sense, and how to handle back-pressure and error management. 

Matteo Collina   

[Work Progresses on `node:sqlite`](https://github.com/nodejs/node/pull/53752#issuecomment-2227295638) — 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](https://codesandbox.io/p/devbox/node-sqlite-with-node-js-nightly-vygw6p?file=%2Findex.js). 

Node.js GitHub Repo   [![\](https://copm.s3.amazonaws.com/aa690d4a.png)](https://workos.com/?utm_source=cpnode&utm_medium=newsletter&utm_campaign=q22024) 

[WorkOS: The Modern Identity Platform for B2B SaaS](https://workos.com/?utm_source=cpnode&utm_medium=newsletter&utm_campaign=q22024) — 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](https://blog.scottlogic.com/2024/07/09/supply-chain-security-in-npm-we-can-be-optimistic-about-the-future.html) — 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](https://socket.dev/blog/unverified-npm-account-takeover-vulnerability-for-sale-on-dark-web-forum) was offered for sale on a dark web forum.  

**IN BRIEF:** 

- [Deno 1.45 is out](https://deno.com/blog/v1.45) 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?](https://www.reddit.com/r/node/comments/1e1r5tu/people_who_work_on_large_scale_applications_what/)
- [The npm registry has begun](https://github.blog/changelog/2024-07-09-leaner-npm-packument-metadata-contents/) removing READMEs from package version metadata to reduce the size of package_packuments._
- [Tabular-JSON](https://tabular-json.org/) 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](https://www.wezm.net/v2/posts/2024/yoga-7x-snapdragon-developer-review/) — 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](https://www.crowdcast.io/c/stackblitz-for-work?utm_source=node&utm_medium=secondary) — 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](https://www.checklyhq.com/blog/why-page-goto-is-slowing-down-your-playwright-test/) Stefan Judis 

📄 [Playwright vs. Puppeteer: Which is Better?](https://blog.apify.com/playwright-vs-puppeteer/) Lekh and Vasilis (Apify) 

📄 [Building a Full-Stack App with Kafka and Node](https://www.confluent.io/blog/building-full-stack-app-with-kafka-and-nodejs/) Lucia Cerchie (Confluent)    

🛠 Code & Tools 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/tpiclg6n7wna8ypdbxn1.jpg)](https://github.com/BuilderIO/micro-agent)  

[Micro Agent: An AI Agent That Writes Code for You](https://github.com/BuilderIO/micro-agent) — 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.](https://www.builder.io/blog/micro-agent)  

[why-is-node-running: Find Out Why Node is Running](https://github.com/mafintosh/why-is-node-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](https://docs.google.com/forms/d/e/1FAIpQLSdBPMJathunNduH8LKM5EPcUSIyFGzL3K3zPq_dpOZJ1ImIuQ/viewform). 

--- 

🐘 Postgres user? Check out our sister newsletter, [Postgres Weekly.](https://postgresweekly.com/)     

[Poku 2.0: A Cross-Platform Test Runner for JS](https://poku.io/) — [Poku’s philosophy](https://poku.io/docs/philosophy#javascript-essence-for-tests-) 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](https://github.com/lukeautry/tsoa) — 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](https://eslint.org/blog/2024/07/eslint-v9.7.0-released/) – Now supports ECMAScript 2025 duplicate capturing groups in regexes.
- [Typegoose 12.6](https://github.com/typegoose/typegoose) – Define Mongoose 8.5 models as TypeScript classes.
- [Path-to-RegExp 7.1](https://github.com/pillarjs/path-to-regexp) – Turn path strings (e.g. `/user/:name`) into regular expressions.
- [xero-node 9.0](https://github.com/XeroAPI/xero-node) – Node SDK for the popular _Xero_ accounting system.
- [ClickHouse JS 1.4](https://github.com/ClickHouse/clickhouse-js) – Official JS client for [ClickHouse DB.](https://clickhouse.com/)
- [tsdav 2.1](https://github.com/natelindev/tsdav) – WebDAV, CALDAV, and CARDDAV client library.
- [NestJS Throttler 6.0](https://github.com/nestjs/throttler) – Rate limiting module for NestJS.
- [Polyglot.js 2.6](https://github.com/airbnb/polyglot.js) – I18n helper library from Airbnb.
- [Soap 1.1](https://github.com/vpulim/node-soap) – A SOAP client _and_ server library.    

**Got a link for us?** Reply and tell us. We can't include everything but we'll look at anything you send. _Thanks!_ 

--- 

**Sponsorship:** Email `[kristina@cooperpress.com](mailto:kristina@cooperpress.com)` for details. 

--- 

Published by Cooper Press Ltd.
Fairfield Enterprise Centre, Louth, LN11 0LS, United Kingdom 

[Cancel your subscription](https://nodeweekly.com/leave/*|UID|*) or [change your address](https://nodeweekly.com/edit_subscription/*|UID|*).
