---
title: "An npm package naming pitfall"
publication: "Node Weekly"
issue: 464
published_at: "2022-11-24"
canonical_url: "https://nodeweekly.com/issues/464"
---

Plus AWS Lambda gets Node 18, money for monorepos, and an interesting take on building Discord bots. |        

#​464 — November 24, 2022 

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

Together with [![Frontend Masters logo\](https://res.cloudinary.com/cpress/image/upload/c_fill,g_auto,w_300,h_70/e_make_transparent/co_white,e_outline:5/nk0tfdvalivacz8rw7rt.png)](https://frontendmasters.com/courses/api-design-nodejs-v4/?utm_source=nodeweekly&utm_medium=email&utm_content=nodejsv4) 

![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/xe47nmhxk8qphxmgeiaq.jpg)](https://hyperstackjs.io/)  

[Hyperstack: A New Rails-Inspired Node.js Web Framework](https://hyperstackjs.io/) — I often hear people say they wished Node had a ‘full’ Web framework akin to Ruby on Rails, here’s a fresh attempt to do just that. Tread carefully; the paint is still fresh. 

Dotan Nahum   

💡 While we like to support new, promising projects, it's not as if it _hasn't_ been done before though. [AdonisJS](https://adonisjs.com/) and [Sails](https://sailsjs.com/) are good options in this space.  

[Node.js Architecture Pitfalls to Avoid](https://blog.appsignal.com/2022/11/23/nodejs-architecture-pitfalls-to-avoid.html) — _Beware: opinions ahead._ It’s a little scattershot but the author, who has worked on numerous production Node.js apps, shares some hard earned wisdom on the use of globals, dependencies, and environment variables. 

Nate Anderson   [![\](https://copm.s3.amazonaws.com/e92e0bcd.jpg)](https://frontendmasters.com/courses/api-design-nodejs-v4/?utm_source=nodeweekly&utm_medium=email&utm_content=nodejsv4) 

[Design & Build APIs from the Ground Up](https://frontendmasters.com/courses/api-design-nodejs-v4/?utm_source=nodeweekly&utm_medium=email&utm_content=nodejsv4) — Join Scott Moss for this fresh video course exploring API design in Node. You'll learn about ORMs, Prisma, routes and middleware, error handling, authentication, deployment, and more. 

Frontend Masters sponsor    

[Node.js 18.x Runtime Now Available on AWS Lambda](https://aws.amazon.com/blogs/compute/node-js-18-x-runtime-now-available-in-aws-lambda/) — Now that Node 18 the active LTS release, it’s getting supported by all of the major platforms ([including Vercel](https://vercel.com/changelog/node-js-18-lts-is-now-available)). The AWS SDK for JavaScript has also been upgraded to v3 ([here’s why that matters](https://aws.amazon.com/blogs/developer/why-and-how-you-should-use-aws-sdk-for-javascript-v3-on-node-js-18/)) and there’s added support for ES module resolution via a `NODE_PATH` env variable. 

Suraj Tripathi (AWS)   

**IN BRIEF:** 

- When your npm package's name looks too much like another package's name, [there can be problems](https://reactflow.dev/blog/reactflow-npm-package-name/) even if you control both names! Luckily, the author got it sorted out by npm's support in this case. _"Never do anything on npm that you are not 100% sure about"_ is handy advice 😆
- The company behind the popular monorepo-oriented Nx build tool for JavaScript [has raised $8.6m in seed funding.](https://techcrunch.com/2022/11/17/with-8-6m-in-seed-funding-nx-wants-to-take-monorepos-mainstream/) Who said there wasn't money in developer tools? Making monorepos more mainstream in the JavaScript world is the end goal here.   

[Producing Native ES Modules on Node.js with TypeScript](https://2ality.com/2021/06/typescript-esm-nodejs.html) — First appearing in 2021, this handy blog post from JavaScript’s resident doctor has undergone a 2022 update. 

Dr. Axel Rauschmayer   

[Tutorial: Add SSO & Access Control to Your Node.js App](https://userfront.com/tutorials/nodejs-authentication) 

Userfront sponsor   

[Writing and Organizing Node API Tests The Right Way](https://larswaechter.dev/blog/nodejs-api-testing/) — The author presents an architecture for writing and organizing unit and integration tests focusing on the REST API use case. Jest, Supertest and Chai make up the testing stack. 

Lars Wächter    

🛠 Code & Tools  

[Better SQLite3 8.0: The 'Fastest and Simplest' SQLite3 Library](https://github.com/WiseLibs/better-sqlite3) — A bold claim but it’s been around for years and has a lot of users, so who are we to argue? It certainly has [great docs.](https://github.com/WiseLibs/better-sqlite3/blob/master/docs/api.md) v8.0 brings SQLite up to [SQLite 3.40.0](https://www.sqlite.org/releaselog/3_40_0.html), drops support for Node 10 and 12, and includes some fixes. 

Joshua Wise   

[tslog 4.0: 'Beautiful' Logging with TypeScript Support](https://tslog.js.org/#/) — Featured packed, fully typed, can do stack traces via the native V8 API, show code frames, and more. Now supports both Node _and_ the browser. 

Eugene Terehov   

[Replace Your Notification Microservice with a SaaS Solution](https://www.courier.com/?utm_campaign=cooper-press&utm_source=email&utm_medium=node-weekly-11-24-sponsored-link&utm_content=homepage) — Integrate with any communication provider. Twilio, Slack, Teams, WhatsApp, Discord, Sparkpost, Sendgrid, Mailgun, Mandrill… 

Courier.com sponsor   

[aoi.js 6.0: String-Based Package to Create Discord Bots](https://aoi.js.org/) — Has a focus on making bots easily customizable by non-developers (akin to mIRC bot scripting back in the day) by way of defining most bot behavior in specially formatted strings rather than JavaScript. [GitHub repo.](https://github.com/AkaruiDevelopment/aoi.js) 

Akarui Development Team   

[express-openapi-validator 5.0: Auto-Validate Requests and Responses to an OpenAPI Spec](https://github.com/cdimascio/express-openapi-validator) — _“Simply, install the validator onto your express app, point it to your OpenAPI 3 specification, then define and implement routes the way you prefer.”_ 

Carmine DiMascio   

- [NodeBB 2.6](https://github.com/NodeBB/NodeBB)
 ↳ Node.js based forum software.
- [Axios 1.2](https://github.com/axios/axios/releases/tag/v1.2.0)
 ↳ Long standing promise-based HTTP client API.
- [resvg-js 2.2](https://github.com/yisibl/resvg-js)
 ↳ Rust-powered high-performance SVG renderer.
- [lmdb-js 2.7](https://github.com/kriszyp/lmdb-js)
 ↳ Fast, efficient data store wrapper for the LMDB key/value store.
- [Typegoose 9.13](https://github.com/typegoose/typegoose)
 ↳ Define Mongoose models using TypeScript classes.
- [on-change 4.0.2](https://github.com/sindresorhus/on-change)
 ↳ Watch an object or array for changes.    

💻 Jobs  

[Find Tech Jobs with Hired](https://hired.com/join/?utm_source=newsletter&utm_medium=sponsor&utm_campaign=%28b2c%29%28l-all%29%28r-all%29%28cooper-nodeweekly%29&utm_content=find-your-next-job) — Create a profile on Hired to connect with hiring managers at growing startups and Fortune 500 companies. It's free for job-seekers. 
Hired   

[Full Stack Engineer (EU Remote or Relocate to Berlin)](https://feather-insurance.com/careers/full-stack-engineer?channel_id=921907) — We’ve built a product thousands of people love (see Trustpilot if you don’t believe us). We need your help with **React, GraphQL & TypeScript**. 
Feather       

🕰 **ICYMI** _(Some older stuff that may catch your eye...)_ 

- Microsoft's [Denver Brittain shows us how](https://techcommunity.microsoft.com/t5/apps-on-azure-blog/getting-started-with-mongodb-atlas-and-azure-functions-using/ba-p/3662099) to get started with MongoDB Atlas and Azure Functions using Node.js.
- Here are some ways to [smoothly turn a monolithic Node.js codebase into a monorepo](https://www.infoq.com/articles/nodejs-monorepo/), while minimizing disruptions and risks.
- Rishabh Rawat runs though some [best practices for scaling your Node REST APIs](https://www.freecodecamp.org/news/nodejs-api-best-practices-for-scaling/).
- [This tutorial runs through six steps](https://javascript.plainenglish.io/complete-node-js-testing-setup-with-jest-supertest-typescript-and-husky-e9d3fa109e1d) to create a complete and 'pain-free' Node testing environment.
- [Chimezie Enyinnaya dives into the repository pattern](https://blog.logrocket.com/exploring-repository-pattern-typescript-node/), explores its benefits, and demonstrates how to implement it with TypeScript and Node.js.     

**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|*)
