TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

2 pointsby aabbcc1241over 2 years ago

1 comment

aabbcc1241over 2 years ago
Author here. I was impressed by the performance archived by bun. But I wonder if (v8) node.js really couldn&#x27;t be faster. So I challenge myself to make a package manager that runs fast.<p>The design is inspired by pnpm, which use hardlinks for each packages&#x27; files in the node_modules. Instead slnpm use softlinks for each packages&#x27; directory, so it takes less space and time to install.<p>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.<p>The current version only use sync APIs and it calls npm to install uncached pacakges using child_process.<p>I know this cli tool is relative simple. It&#x27;s nowhere close to bun but it may inspire you to build something that you can use often with really simple design.