Show HN: A simple and fast Node.js package manager using symbolic link

  • Author here. I was impressed by the performance archived by bun. But I wonder if (v8) node.js really couldn't be faster. So I challenge myself to make a package manager that runs fast.

    The design is inspired by pnpm, which use hardlinks for each packages' files in the node_modules. Instead slnpm use softlinks for each packages' directory, so it takes less space and time to install.

    Initially, I used node-fetch and tar in async manner when downloading packages. It works for plain javascript packages but it became quite complex for packages that require install hooks to build itself.

    The current version only use sync APIs and it calls npm to install uncached pacakges using child_process.

    I know this cli tool is relative simple. It's nowhere close to bun but it may inspire you to build something that you can use often with really simple design.