JSK Weekly - 09 September , 2023

Role-based access control (RBAC for short) is a common pattern for determining whether a user is authorized to perform a certain action. The idea is that each user has a set of roles, and each action the user can take has a set of roles that are allowed to perform the action. Sounds pretty simple, right? Well check out Val Karpov's "Why You Shouldn't Write Your Own RBAC in Node.js" for all the details.

Other popular stories this week include "Rapidly create custom browser mods", "Converting Callback APIs to Promises in Node.js" and "Firebase vs. Supabase" on Bits and Pieces.


General

Firebase vs. Supabase

Firebase and Supabase are well-known BaaS (backend as a service) platforms. These platforms provide pre-built backend infrastructure and services and revolutionize web and mobile app development...

Authored by: Bit

Rapidly create custom browser mods

Stop creating yet another screen. PixieBrix is the first low-code platform to add automation, integrations, collaboration, and AI to the web apps your teams already use.

Authored by: pixiebrix

Modernizing packages to ESM featuring Mark Erikson (JS Party #290)

Mark Erikson (web dev professor/historian, OSS Maintainer & engineer at Replay) joins us to talk about the shift from CommonJS to ESM. We discuss the history of module patterns in JS and the grueling effort to push the world's biggest developer ecosystem forward. Get ready to go to school kids, this one's deep!

Authored by: JS Party

Improving Nest.js : Essential Packages You Should Know

Nest.js has become a go-to framework for developers seeking to build powerful server-side applications with Node.js. Its combination of TypeScript's safety and the modular architecture has won the...

Authored by: In Plain English


JavaScript

🛡️ Unleashing the Guardians: 7 Vital Practices to Fortify Your JavaScript Applications! 🚀

Picture this: you've spent countless hours meticulously crafting your front-end masterpiece using JavaScript and React.js. The visuals are stunning, the interactions are seamless, and you're on the...

Authored by: Frontend Weekly

Creating Multiline Strings in JavaScript

As JavaScript developers, we often need to handle large chunks of text data, which may span across multiple lines. This is where multiline strings come into pl...

Authored by: StackAbuse


TypeScript

How to Handle and Convert the 'Unknown' Type in TypeScript - Upmostly

Hey there, TypeScript enthusiast! Working with TypeScript, chances are you've come across the intriguing "unknown" type. It's like that enigmatic puzzle piece

Authored by: Upmostly


React

React Rally 2023 - A (Brief) Guide to React Rendering Behavior

A shorter look at how React rendering actually works

Authored by: Mark Erikson


Node.js

Node.js Multithreading: Executing Callbacks in Separate Threads

It has already been five years since Node.js introduced the worker_threads native library, designed for creating workers, essentially functioning as threads. When it was released, I was incredibly...

Authored by: Bit

Why You Shouldn't Write Your Own RBAC in Node.js

Implementing RBAC in Node.js can be a challenge, especially when it comes to navigating relationships between roles and permissions. As your authorization model grows, issues like scoped roles and distinct permissions become more prevalent.

That's why Valeri Karpov suggests using a policy language. In this post, Val shares how to write authorization code in Node.js and compares it to the model you can build using Oso, an authorization service that includes the open source policy language library, Polar.

Authored by: Valeri Karpov

Node.js includes built-in support for .env files

With the recent release of version 20.6.0, Node.js now has built-in support for .env files. You can now load environment variables from a .env file into...

Authored by: Phil Nash

Converting Callback APIs to Promises in Node.js

JavaScript, although only single-threaded, is an asynchronous language. In the beginning, it only used callbacks for asynchronous tasks, but ES6 introduced the...

Authored by: StackAbuse

Building a PDF Chat with Node.js, OpenAI and ModelFusion

In this blog post, we'll build a console app capable of searching and understanding PDF content to answer questions using Node.js, OpenAI, and ModelFusion. You'll learn how to read and index PDFs for...

Authored by: In Plain English





0 comments