#415 — November 25, 2021 |
Node Weekly |
Getting Started with Validation in Node — You’ve got a webapp and you want to validate the data it’s sent, but there are lots of options. Here Simon breaks down one approach using JSON schemas along with Ajv. Simon Plenderleith |
Seven Ways to Improve Node Performance at Scale — Some basic advice including using timeouts and caching, profiling and monitoring your code, and how clustering and load balancing can help. Ayooluwa Isaiah |
Another Bug Bites the Dust — AppSignal is an easy-to-use error and performance monitoring tool. We support the most popular Node.js frameworks and packages out-of-the-box. All features are included in all plans. Start a trial and send us your address for a box of Dutch cookies. AppSignal sponsor |
node-safe: Deno-Style Security Permissions for Node on macOS — Yes, it’s macOS only as it uses macOS’s native sandboxing features, but this is an interesting project nonetheless and can be used to scope a Node app’s access to the file system, network, or ability to spawn processes. berstend |
Implementing Server-Sent Events (SSE) in Node and React — Server-Sent Events (SSE) is an often overlooked technology for sending live updates from a backend server to a frontend client without refreshing the page or endless polling from JavaScript. This is a basic example. Eric Cabrel Tiogo |
Extracting Image Metadata (EXIF) using Node — Extra data can sometimes be stored inside images, such as geolocation coordinates, text strings, and more, and it can be extracted from Node code. David Herron |
Beyond Lightstep sponsor |
Fiddle: The Easiest Way to Get Started with Electron — If you’ve wanted to play with Electron for building a JavaScript-powered desktop app but didn’t have the time, Fiddle makes it into more of a quick-start ‘playground’ experience. Electron |
MicroDiff: Lightweight, No Dependency Object and Array Comparison Library — Given two objects or arrays, it returns the differences. Boasts high performance and TypeScript support. AsyncBanana |
|
🛠 Code & Tools
ElectroDB: A DynamoDB Library to Make Single Table Designs Easier — DynamoDB is AWS’s super scalable NoSQL database service and a common approach when using it is to implement a ‘single table design’ for storing your app’s data. ElectroDB makes such designs and the entities associated with them easier to work with from Node.js. Tyler W. Walch |
Polly 5.2: Record, Replay, and Stub HTTP Interactions — Works in both Node and the browser and gives you a lot of control over recording, replaying and intercepting HTTP requests made from your test suites. Netflix, Inc. |
Progress.js: Customizable CLI Progress Bars — We like the bit appended to the license here: “Do whatever you want with my code just don’t make it boring”. Nathan P. Bombana |
Cloudflare Wrangler 2.0 Beta: An Improved Workers Dev Experience — Wrangler is Cloudflare Workers’ (a serverless platform) developer tool complete with a live development environment and live debugging of functions. Kristian Freeman, one of Cloudflare’s developer advocates, has called it “a mind-boggling seismic shift in developer experience.” Partovi and Pai (Cloudflare) |
np 7.6.0: A Better Sindre Sorhus |
Build Video for Your Node App That Just Works Mux sponsor |
Wallpaper: Manage Desktop Wallpaper on macOS, Linux and Windows — Could be a nice way to script changes if you like to have desktop wallpaper. I’m a bit boring.. it’s just solid black for mine 😆 Sindre Sorhus |
Nandu: Alternative NPM Registry Software — Nandu provides an open source NPM registry that can be used with all the major tools. There’s a focus on security in multi user and team environments, but they’re keen to have people test it out before they can bill it truly production ready. Taskforce.sh Inc. |
The Lounge: A Modern, Self Hosted Web-Based IRC Client
|
Jira REST API Node.js Wrapper v8.0
|