Best of NPMAugust 2024

  1. 1
    Article
    Avatar of communityCommunity Picks·2y

    nextjs-toploader

    A Next.js Top Loading Bar component called `nextjs-toploader` utilizes nprogress and works with Next.js 14 and React. It can be installed via npm or yarn and integrated into different components. The default configuration includes parameters like color, speed, height, and more, which can be customized as needed.

  2. 2
    Article
    Avatar of hnHacker News·2y

    Standalone

    Create interaction, motion, and 3D content with a new open-source, offline standalone version of cables, available for free download. The software offers a customizable node-based interface, real-time adjustments, and the ability to integrate with local development setups using npm packages. The MIT license ensures freedom and transparency, allowing users to inspect and modify the code. Contributions and community support are encouraged.

  3. 3
    Article
    Avatar of hnHacker News·2y

    Markdown to amazing forms and web pages

    blocks.md is a JavaScript library available through npm that converts Markdown files into customizable, accessible, and localizable forms and web pages. It differentiates between simple usage and integration, requiring different licenses for each scenario. Key features include logic jumps, page progress indicators, various input types, and the ability to send form responses to a server or Google Sheets. Additionally, it supports adding class names, IDs, WAI-ARIA tags, local data binding, and more. Future features include date-time inputs, file uploads, and more advanced form control elements.

  4. 4
    Article
    Avatar of socketdevSocket·2y

    Node.js Takes Steps Towards Removing Corepack

    Node.js is planning to remove Corepack from its distribution after a series of community discussions and a formal roadmap by the Package Maintenance Working Group (PMWG). The roadmap includes revising the Node.js download page, separating Corepack documentation, and adding instructions for using Yarn and pnpm. The PR for this removal has received the necessary approvals but faces pushback from some community members. The decision aims to reduce the maintenance burden and allow Corepack to evolve independently, although concerns remain about user impacts.

  5. 5
    Video
    Avatar of jherrJack Herrington·2y

    Secret React-Native Hack For React Web Devs!

    This post discusses a useful React Native technique for dealing with npm packages that don't behave well in server-side rendering (SSR) scenarios. It details the steps to patch problematic libraries using tools like the patch-package library, facilitating seamless integration for React web developers. The post also highlights Infinite Red, a React Native consultancy, and describes a practical example demonstrating the patching process.

  6. 6
    Article
    Avatar of watercoolerWatercooler·2y

    :hidethepain:

  7. 7
    Article
    Avatar of hnHacker News·2y

    Micro-libraries need to die already

    The post argues against the use of micro-libraries, emphasizing that they often introduce more downsides than benefits. The author highlights various costs of dependencies, including poor fits for problems, potential security risks, bloat, and updates causing issues. By examining a case study of the 'is-number' library, the post demonstrates that simple functionalities are often better off being directly embedded in the codebase rather than relying on external libraries. The discussion suggests that fear of bugs and edge cases drives developers towards using many libraries unnecessarily.