Playing in the sandbox

March 2, 2023 By Mark Otto 0

Node.js Weekly

zx 7.2: A Tool for Writing Better Shell Scripts — Always a popular tool when we link it! zx is an alternative way to run Node that makes it more useful for shell scripting by bringing along a variety of niceties like process management, argument handling, and including useful packages like Chalk for text coloring. v7.2 adds retry and spinner helpers (for retrying callbacks and showing a spinner UI element, respectively).

Google

Sandbox Security Concerns with Node’s vm Modulenode:vm lets you compile and run code within separate contexts of the underlying V8 engine. Great for sandboxing, right? Not so fast. Even the docs say it’s not for running untrusted code. Liran looks at the implications.

Liran Tal

Experiments in Mitigating Serverless Cold Start Delays — If you’re using Node for serverless functions on Vercel or Netlify, is a ‘cold start’ delay still a thing, and would frequently pinging a function mitigate against it? Due to how Vercel and Netlify specifically work, those pings may not be as useful as you’d suspect..

Punit Sethi

Sandboxing JavaScript CodeVal Town is an interesting, rather minimalist platform for running JavaScript in the cloud, and if you’re going to let folks run JavaScript on your server, good sandboxing is a must – they use Node and vm2 (well, for now anyway.) Andrew’s route to V8 sandboxing bliss, however, was Deno rather than Node, as he demonstrates here.

Andrew Healey

???? Code & Tools

Remult: A CRUD Framework for Full-Stack TypeScript — Promises a ‘zero-boilerplate’ CRUD API experience by using your TypeScript entities as a single source of truth for your API, frontend type-safe API client and backend ORM. There are tutorials for using it alongside React, Angular, Vue and Next.js.

Remult Team

  • eta (η) 2.0.1
    ↳ Embedded template engine for Node, Deno & browser.

  • Restify 11.1
    ↳ Middleware-driven REST API framework.

  • csvToJson 2.0
    ↳ Convert CSV files to JSON with Node.

  • mojo.js 1.23
    ↳ Real-time web framework for Node. (Their example of how easily you can spin up a WebSocket system is pretty neat.)

  • Slonik 33.1
    ↳ Type-safe Postgres client library.

  • pnpm 7.28
    ↳ Alternative, efficient package manager.

Software Engineer (Backend) — Join our “kick ass” team. Our software team operates from 17 countries and we’re always looking for more exceptional engineers.
Sticker Mule

Find Tech Jobs with Hired — Hired makes job hunting easy-instead of chasing recruiters, companies approach you with salary details up front. Create a free profile now.
Hired