The Node.js best practices list gets a 2023 update
#496 — July 25, 2023
The Node.js Best Practices List: 2023 Edition — A valuable, long standing resource has been “modernized to 2023 standards” (complete with recommendations of more modern libraries) with lots of work by creator Yoni and an ever growing team of contributors. The topics remain the same, however, covering areas like code style, project architecture, and taking apps into production. (If you’re already familiar with this list, you can skim through the #new and #updated hashtags on the page.)
Yoni Goldberg et al.
Microsoft TypeChat: An Approach for Type-Safe LLM Responses — It’s interesting to see a new project from Microsoft with so many prominent names attached to it, but demonstrates the huge excitement within MS for ML and large language models (LLMs). TypeChat’s goal is to work around the issue of LLMs outputting unstructured natural language and instead to direct such output into a predictable, typed form.
Hejlsberg, Lucco, Rosenwasser et al.
How To Build a Web App in 60 Seconds Using AI — Dynaboard’s low-code IDE offers 40+ built-in UI components & easy DB connections. Use AI to generate any SQL, JS & CSS.
Node v18.17.0 (LTS) Released — Not a huge update of the LTS release, more a ‘keeping up to date’ release, but Node 18 gains Ada 2.0 (the WHATWG-compliant URL parser), as well as improvements to Web Crypto API support.
📣 Node v20.5.0 (Current) has also been released, but without any significant changes or new features.
pkg-size: Find the True Size of an npm Package — A well designed tool that can quickly show you the true size of an npm package (including dependencies) using the actual packages by npm installing them in a WebContainer-powered virtual environment, all in your browser. Hiroki has a Twitter thread where he explains more about how it works.
If you’re a VS Code and TypeScript user who’s tired of lengthy, hard to decipher error messages, Pretty TypeScript Errors is a VS Code extension worth checking out.
North Korea’s newest export: malicious npm packages?
The 2023 State of the API Report is Here — The State of the API is the world’s largest survey and report on APIs, with findings from over 40K developers and API professionals.
Silas Marvin (PostgresML)
Content-Security-Policy (CSP) Testing Using Cypress
Using npm Workspaces with Docker
🛠 Code & Tools
MailDev: SMTP Server and Web Interface for Testing Emails — If your app needs to send email, rather than sending it to a live account, you could send it to this app which lets you get a local preview without having to think about spam filters, etc.
💻 Hired makes job hunting easy-instead of chasing recruiters, companies approach you with salary details up front. Create a free profile now.
📧 Did you know we have a Postgres newsletter too? We cover everything from SQL through to the latest in vector storage, GIS, hosted platforms, and Postgres extensions.
Classifieds is a new way to share projects, events or services you may find useful, with a mix of free and paid options.
fast-png 6.2: Pure JS PNG Image Decoder and Encoder — Pass it a PNG to decode via a TypedArray or Buffer, or a Canvas ImageData (or compatible object) to encode into PNG.
brotli-wasm 2.0: A Brotli Compressor and Decompressor — Covers both Node and the browser by means of WebAssembly.
↳ A nicer way to work with SQLite3.
↳ Message queue and job processing for Node.
↳ Admin panel for Node webapps.
↳ MongoDB object modeling.
↳ Define Mongoose models with TypeScript classes.
↳ TypeScript LDAP client.
↳ CLI framework.