Best of Node.jsDecember 2024

  1. 1
    Article
    Avatar of game_developersGame Developers·1y

    my new portfolio as a full stack developer

    After gaining experience in web and backend development, the author expanded their skills to include ElectronJS, CapacitorJS, and Docker to create and deploy cross-platform applications. Using inspiration from designer Yanka Darelova, the author built an application with Vue 3 Composition APIs, TypeScript, and Sass/SCSS, adding an ExpressJs backend and Mongo database. The app is secure, utilizing Nginx for load balancing and SSL encryption, and is available for exploration at baderidris.com.

  2. 2
    Article
    Avatar of communityCommunity Picks·1y

    Creating a Secure Node.js REST API

    Explore how to create a secure REST API in Node.js with detailed instructions on setting up the back end using Node.js, Express.js, and Mongoose. Learn about the essential CRUD operations, user authentication with JSON web tokens, and security best practices to protect your API.

  3. 3
    Article
    Avatar of devtoDEV·1y

    Tracking down high memory usage in Node.js

    The post discusses a developer's approach to tracking and fixing high memory usage in Node.js applications. It covers understanding the code, replicating the issue, capturing memory profiles from staging services, and verifying the fix. The result was a significant reduction in memory usage and better service reliability.

  4. 4
    Video
    Avatar of youtubeYouTube·1y

    Master Microservices with Real-Life UBER Project | Advanced Backend

    Learn how to effectively use microservices by working on a real-life project inspired by Uber. This guide explains the challenges with monolithic architectures and demonstrates how microservices can solve scalability issues. You will see specific coding examples of setting up a backend, breaking applications into smaller services, and handling high-traffic scenarios by scaling individual components.

  5. 5
    Article
    Avatar of itnextITNEXT·1y

    How to Use an LLM-Powered Boilerplate for Building Your Own Node.js API

    Discover how an enhanced Node.js API boilerplate utilizes LLM Codegen to generate module code based on text descriptions. This feature automates the creation of E2E tests, database migrations, and business logic. The boilerplate supports OpenAI and Claude LLM clients and adheres to vertical slicing architecture and Clean Code principles, ensuring the generated code is clean and maintainable.

  6. 6
    Article
    Avatar of netguruNetguru·1y

    Building a Robust Node.JS WebSocket Server: A Comprehensive Guide

    WebSockets enable real-time, bidirectional communication, enhancing applications like chat systems and live data feeds. Setting up a WebSocket server in Node.js involves installing necessary libraries, creating a server, and handling client connections. For performance and scalability, use techniques like horizontal scaling and Redis for state management, alongside secure deployment practices. Node.js's non-blocking architecture is ideal for building scalable WebSocket servers, providing persistent connections and low latency.

  7. 7
    Article
    Avatar of communityCommunity Picks·1y

    An Elegant NodeJS framework

    Enhance your application's performance with this NodeJS framework that offers multi-store Redis and in-memory cache configuration. It supports MySQL and Postgres databases with a declarative syntax. Built-in error handling, Sentry integration, and elegant APIs for AWS S3 and local storage streamline your development process. The framework also features localization, message queues, a powerful code generation tool, and an integrated HTML mail template system.

  8. 8
    Article
    Avatar of communityCommunity Picks·1y

    How Much Traffic Can Node.js Handle?

    Node.js is an open-source development platform that executes JavaScript code on the server-side. It uses a single thread with an event loop to handle thousands of concurrent connections efficiently, avoiding traditional issues associated with threads. Benchmarks show that Node.js frameworks like Express.js can handle up to 15,000 requests per second, and Node.js itself is highly performant for real-time applications. Proper implementation ensures both speed and security, making Node.js a great choice for modern web development.

  9. 9
    Article
    Avatar of appsignalAppSignal·1y

    A Deep Dive Into CommonJS and ES Modules in Node.js

    Node.js has increasingly adopted ES modules as the preferred method for JavaScript modularization, offering a standardized solution compatible across different runtimes. This post explains the core differences between CommonJS and ES modules, highlighting the benefits of using ESM, such as browser compatibility, asynchronous loading, and improved static analysis. It also provides practical guidance for transitioning from CommonJS to ES modules, discussing how Node.js supports both module systems and the steps needed to migrate codebases.

  10. 10
    Article
    Avatar of hnHacker News·1y

    jdx/mise: dev tools, env vars, task runner

    Mise is a versatile front-end tool for development environments, managing development tools, environment variables, and tasks similar to asdf, direnv, and make respectively. It supports installing and switching between different versions of tools like node, python, cmake, terraform, and more. It can be easily installed and integrated into various shells.

  11. 11
    Article
    Avatar of platformaticPlatformatic·1y

    How can I enable my Node.js app to adapt to changing demand?

    Adapting a Node.js application to changing demand involves optimizing resource utilization, implementing auto-scaling with Kubernetes or cloud services, using effective load balancing strategies, and monitoring application health. Achieving resilience and efficient behavior under varying workloads ensures minimal downtime and improved performance.

  12. 12
    Video
    Avatar of communityCommunity Picks·1y

    How NodeJS Works? - You don't Know NodeJS

    Learn about the internal workings of Node.js, including its event loop, V8 engine, and libuv library. This video covers the architecture of Node.js, how it handles asynchronous operations, the role of the thread pool, and the differences between single-threaded and multi-threaded programming languages. The guide also provides practical examples and insights on optimizing performance in Node.js applications.

  13. 13
    Article
    Avatar of hnHacker News·1y

    Lightweight HTML templating library for any-side rendering

    Mizu is a versatile HTML templating library that supports any-side rendering, allowing developers to create dynamic content easily. The post demonstrates how to use Mizu with Deno, Node.js, and other environments to render HTML and generate static files. Examples show the usage of Mizu's render method to inject context into templates and generate different file types.

  14. 14
    Article
    Avatar of communityCommunity Picks·1y

    Declutter Your Disk Space with NPKill: A Lifesaver for Node.js Developers

    Developers often struggle with bloated disk space due to numerous `node_modules` folders. NPKill simplifies this cleanup process with its CLI tool that quickly locates and deletes these folders. It offers features like fast folder discovery, interactive deletion, and cross-platform compatibility. Installation is easy using npm, and it provides commands for customized searches and auto-deletion. NPKill is more interactive than other tools like Rimraf and is particularly useful for freelancers, teams, and open-source contributors.

  15. 15
    Article
    Avatar of platformaticPlatformatic·1y

    Reimagining caching invalidation for a faster & more scalable Node.js app

    Caching is crucial for improving application performance, especially during high-pressure events like Black Friday sales. However, cache invalidation in distributed microservices environments can be challenging, leading to issues like serving stale data. Platformatic offers a solution that simplifies caching through client-side HTTP standards and automated synchronization, ensuring that cached data remains consistent and up-to-date across all instances. This solution aims to minimize complexity and improve scalability and reliability.

  16. 16
    Article
    Avatar of freecodecampfreeCodeCamp·1y

    Learn Continuous Integration, Delivery, and Deployment with GitHub Actions, Docker, and Google Cloud Run

    Learn how to set up a Continuous Integration (CI), Continuous Delivery (CD), and Continuous Deployment pipeline using GitHub Actions, Docker, and Google Cloud Run. This guide covers the basics of each concept and provides hands-on steps to build and deploy a Node.js project, including setting up automated tests, creating workflows in GitHub Actions, building and pushing Docker images to Docker Hub, and deploying to both a staging and production environment on Google Cloud Run.

  17. 17
    Video
    Avatar of bytegradByteGrad·1y

    Web Scraping With GPT-4 Vision AI & Playwright Is Ridiculously EASY - I Can't Believe This Works

    AI advancements, particularly GPT-4 Vision AI, have simplified web scraping. Techniques like using network requests directly, scraping from server-side rendered websites via embedded HTML data, and utilizing proxies to avoid detection are discussed. Methods to scrape using both text-based and vision-based approaches with tools like Playwright and Smart Proxy are outlined, all while tapping into modern AI models to efficiently extract data.

  18. 18
    Article
    Avatar of trevorlasnTrevor Lasn·1y

    AsyncLocalStorage: Simplify Context Management in Node.js

    AsyncLocalStorage allows you to maintain context across async operations without manually passing data through functions. It's useful for tracking requests in microservices, logging, and managing database transactions. However, it's unnecessary for simple synchronous code and can add complexity when building public APIs. AsyncLocalStorage requires Node.js 23 or higher.

  19. 19
    Article
    Avatar of communityCommunity Picks·1y

    nestjs/nest: A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀

    Nest is a Node.js framework designed to build efficient, scalable server-side applications using modern JavaScript and TypeScript. Combining principles from OOP, FP, and FRP, it provides a robust architecture inspired by Angular. Nest utilizes Express and offers compatibility with other libraries like Fastify, enabling extensive use of third-party plugins. It's MIT-licensed and supported by a strong community and official support channels.

  20. 20
    Article
    Avatar of cerbosCerbos·1y

    CRDTs and collaborative playground

    Cerbos simplifies authorization logic for developers with tools like their collaborative IDE, the Playground. The Playground leverages CRDTs (Conflict-Free Replicated Data Types) for real-time collaboration, ensuring data synchronization without complex conflict resolution. Tools like Yjs and Automerge support this functionality, allowing developers to build and test access control systems efficiently. The architecture involves Node.js backend for communication and IndexedDB for browser storage, ensuring robust and scalable collaborative experiences.

  21. 21
    Article
    Avatar of denoDeno·1y

    Run your Next.js SSR app on Deno Deploy

    Next.js, a powerful metaframework for building server-rendered or statically generated web applications, can now leverage Deno Deploy for server-side rendering (SSR). This guide shows you how to deploy a Next.js app with SSR on Deno Deploy, either by linking a GitHub repository or using the command line. The post also highlights new features in Deno 2.1, such as first-class Wasm support, improved package management, and long-term support.