Replies: 12 comments 3 replies
-
TBH, I have never heard about this project. But it seems like it is only for archives, not a npm-compatible registry |
Beta Was this translation helpful? Give feedback.
-
Created an issue at verdaccio, maybe someone will be interested in this concept. |
Beta Was this translation helpful? Give feedback.
-
@zkochan what is your vision on how it will work? |
Beta Was this translation helpful? Give feedback.
-
My vision is some sort of a smart cache that will contain the tarballs you need before you even executed |
Beta Was this translation helpful? Give feedback.
-
About the way it will work. I see these solutions:
|
Beta Was this translation helpful? Give feedback.
-
If you look into this package https://github.com/nice-registry/download-counts you'll see that only a small percentage of packages in the npm registry have more than 100 downloads a day. So I think the 3rd solution might be the best one. |
Beta Was this translation helpful? Give feedback.
-
Also similar idea: https://github.com/mixu/npm_lazy |
Beta Was this translation helpful? Give feedback.
-
We might be able to do this if we make pnpm run with the store server by default. The issue with the store server is currently that it is pretty slow. Installations are up to 20% slower with the store server than w/o it. |
Beta Was this translation helpful? Give feedback.
-
I really would like to see this happen with Dat. Is the store server installation speed the only hurdle? Could we build it anyway? I would prefer slow decentralized install over fast centralized installs. I discussed with mafintosh some months ago that the approx. best way of doing this with Dat is one Dat Archive per author, so essentially installing package If you want guidance/help how to do this, you can count on me to get started. |
Beta Was this translation helpful? Give feedback.
-
@staltz I can start working on it not soon. Currently, I am invested into making pnpm the best package manager for multi-package repositories. This can be the next big thing though. We can start with writing specs. We have a separate repo for specs here. |
Beta Was this translation helpful? Give feedback.
-
@ipfs come here real quick |
Beta Was this translation helpful? Give feedback.
-
From v0.58.0 pnpm caches of all the tarballs in a "registry mirror" hosted in the local filesystem. The local registry uses the same structure that verdaccio (former sinopia) uses for its storage.
As a consequence, the tarballs storage can be a torrent seeded by the verdaccio server.
Clients would have all the tarballs hosted locally even before installation started.
I'll probably create an issue in the verdaccio backlog, but there might be even other ways to distribute the registry.
Beta Was this translation helpful? Give feedback.
All reactions