Best of Node.js — October 2023
- 1
- 2
- 3
- 4
Hacker News·2y
Goodbye, Node.js Buffer
The article discusses the need to move from Node.js Buffer to Uint8Array for binary data handling. It highlights the incompatibilities between the two and provides guidance on transitioning from Buffer to Uint8Array. It also mentions the need for more utility methods in Uint8Array.
- 5
Towards Dev·3y
Asynchronous JavaScript
This article explores the world of asynchronous JavaScript and how it can be managed using promises and the elegant async/await syntax. It discusses the concept of asynchronous actions in JavaScript, the use of async/await keywords, the need for error handling in async/await, and the execution order of asynchronous code. With the right tools and understanding, developers can write readable and maintainable asynchronous code in JavaScript.
- 6
Amplication·2y
Node.js Worker Threads Vs. Child Processes: Which one should you use?
Node.js has introduced the concept of Worker Threads and Child Processes to help with parallel processing in your app so that you can execute specific processes in parallel. In this article, we will understand both concepts and discuss when it would be useful to employ each of them. We will look at how we can implement a Worker Thread in Node.
- 7
AWS Tip·2y
Deploying a Node.js Application on AWS
Learn how to deploy a Node.js application on AWS using Termius for SSH access and GitHub for version control. Discover the benefits of deploying on AWS, the steps to create an AWS instance, connect it to Termius, and clone a repository from GitHub. Install Node.js, Express, and other dependencies, and deploy your application on AWS.
- 8
Snyk·2y
How to protect Node.js apps from CSRF attacks
This article explores how CSRF attacks work in Node.js applications and provides strategies to protect against them. It covers the synchronizer token pattern (STP), SameSite cookies, and the Double Submit Cookie pattern. The article also mentions the importance of testing CSRF protection and provides best practices for securing Node.js applications.
- 9
Pointer·3y
wasp-lang/wasp: The fastest way to develop full-stack web apps with React & Node.js.
Wasp is a framework for developing full-stack web apps with React and Node.js. It offers quick start, no boilerplate code, and no lock-in. It provides features such as full-stack auth, RPC, simple deployment, jobs, email sending, and full-stack type safety. Wasp works by generating the full source of the web app based on a configuration file and source files with unique logic.
- 10
Community Picks·3y
vercel/ncc: Compile a Node.js project into a single file. Supports TypeScript, binary addons, dynamic requires.
ncc is a CLI tool for compiling a Node.js module into a single file, with the motivation of publishing minimal packages to npm and shipping relevant app code to serverless environments. It has zero configuration and built-in support for TypeScript.
- 11
Dev Genius·3y
Microservices Architecture with Node.js: Building Scalable and Robust Applications
Microservices architecture involves breaking an application down into smaller, independent services that communicate with each other through APIs. Node.js is a popular choice for building microservices. The article provides a guide on setting up microservices architecture in Node.js using Seneca.js and explains how to connect microservices.
- 12
asayer·3y
Collaboration in Real Time with React and Node
Learn how to build a real-time collaboration board using React and Node. Experience the benefits of global reach, brainstorming together, and efficiency boost. Use React and Node.js to create a real-time whiteboard where users can collaborate in real-time. Install necessary dependencies and configure the client and server for real-time communication. Implement drawing functionality, and enable drag and drop for enhanced interactivity.
- 13
- 14
Hacker News·2y
Introducing MSW 2.0
MSW 2.0 introduces new changes to the Mock Service Worker library, including a refined public API with first-class support for Fetch API primitives. The update aims to improve the educational aspect of the library, allowing developers to learn concepts and APIs that can be applied outside of MSW. The new version also embraces JavaScript standards and removes the need for polyfills, providing a feature-rich and standard way of handling requests and defining responses. MSW 2.0 deprecates support for Node.js v14 and relies on the standard Fetch API for representing requests and responses.
- 15
Netguru·2y
8 Types of Applications You Can Build With Node.js
Node.js is a versatile technology that can be used to build web applications, IoT systems, APIs, real-time chats, complex single-page applications, real-time collaboration tools, streaming apps, and microservices architecture. It excels in scenarios that require real-time capabilities, scalability, and asynchronous operations. Node.js is efficient at handling HTTP requests and provides a rich ecosystem of packages and libraries for developers to leverage in their projects. It is a popular choice for efficient, scalable, and responsive applications across various use cases.
- 16
- 17
AppSignal·2y
What's New in Node.js 21
Node.js version 21 introduces improvements in the Fetch API, Web Streams API, WebSocket client, ES Modules, test runner, module customization, and performance. It is not recommended for production use and can be upgraded using the relevant link or an environment management tool like Volta.
- 18
- 19
- 20
- 21
gitconnected·2y
All About Infinite Scrolling using React and JavaScript
Learn how to implement infinite scrolling using React and JavaScript. Explore two methods: using the Window's Scroll and Size Properties, and using the Intersection Observer API. Virtualization improves performance by rendering only the visible items in a list or grid. The Intersection Observer API allows for efficient infinite scrolling without continuous monitoring of the scroll event.