#​553 — October 29, 2024

Read on the Web

Together with  Frontend Masters logo
Node.js Weekly

Transformers.js v3: Now You Can Run Transformers in Node.jsA JavaScript port of Hugging Face’s transformers Python library that makes it possible to run natural language, vision, and audio machine learning models. v3 adds WebGPU support and now supports Node (plus Deno and Bun) as well as the browser. 1200+ models are ready to run in areas like embeddings, text generation, and speech recognition (as with whisper-small).

Hugging Face

Node v22.11.0 'Jod' Released; Becomes Active LTS Release — With this release, Node 22 flips from being the ‘Current’ cutting edge release to being a dependable release with the all-important LTS (Long Term Support) designation. It is, however, broadly the same as Node v22.10.

Richard Lau

Master Performance and Speed Up Your Site — This detailed video course shares the fundamentals of web performance, covering key Core Web Vitals metrics such as Cumulative Layout Shift (CLS), and Interaction to Next Paint (INP). You'll learn how to best use Lighthouse, WebPageTest and other tools in order to make your site lightning.

Frontend Masters sponsor

Node v23.1.0 (Current) Released — Node 22 takes a breather, but Node 23 picks up the ‘Current’ baton and will get all the juiciest new features until Node 24 arrives in April/May 2025. In v23.1, JSON modules and import attributes are now stable, the MockTimers test runner API is stable, and Buffer objects created from resizable ArrayBuffers will now update their size properly.

Antoine du Hamel

Understanding npm audit and Fixing Vulnerabilitiesnpm audit checks your project’s dependencies for security issues by comparing them to a known vulnerability database.

Niraj Chauhan

Bootstrapping CRUD with PongoPongo is a package that uses Postgres as a database but offers a MongoDB style, document-oriented API.

Oskar Dudycz

Run GitHub Actions Up to 2x Faster at Half the Cost — Blacksmith runs GitHub Actions up to 2x faster at half the cost. Trusted by 100+ companies like Ashby and Slope.

Blacksmith sponsor

📄 Node.js, Pipes, and Disappearing Bytes – If piping a Node app’s output to another command, mysterious problems can arise.. Sam Lijin

📄 Building a Mental Model of Node.js Streams Pavel Romanov

📄 Setting the Default Time Zone in Node.js Stefan Judis

🛠 Code & Tools

Tinybench 3.0: A Tiny, Simple Benchmarking Library — Uses whatever precise timing capabilities are available (e.g. process.hrtime or peformance.now). You can then benchmark whatever functions you want, specify how long or how many times to benchmark for, and get a variety of stats in return. GitHub repo.

Tinylibs

Fetch Mock 12.0: Mock Requests by the fetch API — A flexible API for mocking HTTP requests made by fetch or fetch-imitating libraries. Supports browsers, Node, and web/service workers.

Rhys Evans

parse-xml 4.2: A Fast, Compliant XML Parser — Its goal is to be fast, robust with good error handling, and to have no native dependencies. v4.2 boasts being up to 28% faster than previous versions.

Ryan Grove

Dependency Cruiser 16.5: A Way to Visualize Dependencies — If you want a look at the output, there’s a whole page of graphs for popular, real world projects including Chalk, Yarn, and React.

Sander Verweij

Wireit: Extends npm/Yarn Scripts to Make Them Smarter, More Efficient — Working with npm run, Wireit extends your scripts with features like result caching, parallelization, and watching/re-running on changes. There’s a VS Code extension to help you write such enhanced scripts too.

Google

match-sorter 7.0: Deterministic Best-Match Array Sorting — If you have an array of items you want to filter and sort deterministically, match-sorter provides a specified, predictable algorithm. Play with a live demo here.

Kent C. Dodds

AutoCannon 8.0: A Fast HTTP/1.1 Benchmarking Tool — Inspired by wrk and wrk2 with support for HTTP pipelining.

Matteo Collina

📰 Classifieds

🚀 pgai Vectorizer automates embedding creation and syncing in Postgres with one SQL command—keeps embeddings updated, no tools needed.


🧵 Jumping between multiple environments, juggling tasks like logging & tracing? Our Node.js app server with automatic multithreading can help.


[Guide] Debugging Microservices & Distributed Systems: Best practices on debugging modern web applications. Read more 🔍

  • serverless-express 4.16 – Run Express on AWS Lambda, API Gateway, Lambda@Edge, etc. Now supporting Express 5 too.

  • Execa 9.5 – Powerful process execution library. With v9.5, when redirecting stdout or stderr to a file, you can optionally append rather than replace.

  • Medusa 2.0 – A popular Node.js based ecommerce platform.

  • 📺 YouTube.js 11.0 – Unofficial JS client for YouTube's private API.

  • Mineflayer 4.23 – Create Minecraft bots in JavaScript.

  • Faker 9.1 – Generate large amounts of fake data.

  • AVA 6.2 – Popular test runner for Node.

  • Opossum 8.2 – Circuit breaker library.