-
Notifications
You must be signed in to change notification settings - Fork 11
Verdaccio - A lightweight private npm proxy registry #38
Comments
by default, verdaccio caches the tarball and the (i assume) packument version of the package.json in a flat file in $ ls -la ~/.config/verdaccio/storage/accepts/
total 176
drwxr-xr-x 4 oli staff 128 Apr 10 11:39 .
drwxr-xr-x 1584 oli staff 50688 Apr 10 11:39 ..
-rw-r--r-- 1 oli staff 5409 Apr 10 11:02 accepts-1.3.5.tgz
-rw-r--r-- 1 oli staff 80913 Apr 10 11:39 package.json to try it out locally $ npm i -g verdaccio@next
$ verdaccio
warn --- config file - /Users/oli/.config/verdaccio/config.yaml
warn --- Plugin successfully loaded: verdaccio-htpasswd
warn --- Plugin successfully loaded: verdaccio-audit
warn --- http address - http://localhost:4873/ - verdaccio/4.0.0-alpha.7 then in another shell, configure npm to use your new local registry proxy, and $ npm set registry http://localhost:4873/
# npm i wont hit the network unless you clear your cache...
# see: https://twitter.com/verdaccio_npm/status/1115926213296558080
$ npm cache clear --force
$ cd <to some project with a package.json>
$ npm i now you have all the tarballs for that project in |
docs on writing a storage plugin. https://verdaccio.org/docs/en/dev-plugins#storage-plugin |
UX hurdles
|
You can add a |
I think this is a feature. 😉 |
This is true, though it rewrites to the |
As mentioned on the package managers weekly call yesterday, there's a few different ways IPFS support could be added: Without directly involving npm-on-ipfs:
For more direct integration with npm-on-ipfs:
All three are possible to do in combination as well. |
https://github.com/verdaccio/verdaccio
It'd be interesting to explore adding IPFS so that verdaccio servers could could share and co-host there caches via IPFS. If a bunch of verdaccio instances are in a swarm together then they could pool their individual caches (being careful not publish private modules). Combined with the
npm-on-ipfs
client, it could support installing and verifying packages via ipfs or ipns specifiers as per zkat/pacote#173see also:
The text was updated successfully, but these errors were encountered: