yarnpnp2nix: More efficient way of packaging NodeJS applications

This page summarizes the projects mentioned and recommended in the original post on /r/NixOS

Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
  1. yarnpnp2nix

    A performance focused and space efficient way of packaging NodeJS applications with Nix

    Just wanted to share something I've been working on in case it's helpful to anyone here - https://github.com/madjam002/yarnpnp2nix

  2. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  3. crane

    A Nix library for building cargo projects. Never build twice thanks to incremental artifact caching.

    I imagine/hope you've seen this, but over in Rust-land I do something similar using https://github.com/ipetkov/crane. I've been on the lookout for something precisely like this for a while. I don't know much about the newer versions of yarn but imagined such a thing was possible. I am looking forward to trying this out, especially if the above is eventually addressed.

  4. dream2nix

    Simplified nix packaging for various programming language ecosystems [maintainer=@DavHau]

    I'm not 100% sure, but looking at the docs [here](https://nix-community.github.io/dream2nix/subsystems/node.html#granular-pure-default) and the implementation [here](https://github.com/nix-community/dream2nix/tree/main/src/subsystems/nodejs/builders/granular-nodejs) it seems as it builds dependencies separately and symlinks (see `install-deps.py` those into a `node_modules` tree. I don't know much about Yarn's PNP (was doing more backend/devex last few years), but it sounds vaguely similar in that each package should be built once as a separate derivation and then symlinked to a big `node_modules`-as-a-symlink-tree derivation?

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Why We're Moving on from Nix

    8 projects | news.ycombinator.com | 7 Jun 2025
  • Embrace the Power of Nix for Your Python + Rust Workflow

    2 projects | dev.to | 24 Jul 2024
  • NixOS: Declarative Builds and Deployments

    13 projects | news.ycombinator.com | 14 Jan 2024
  • Transitioning to Rust as a company

    8 projects | /r/rust | 2 Jun 2023
  • Lanzaboote vs. bootspec-secureboot

    4 projects | /r/NixOS | 11 Mar 2023