billiegoose / modserv

A next generation registry (WIP)
Apache License 2.0
9 stars 1 forks source link

Question: add entries directly? #6

Open wcainboundary opened 7 years ago

wcainboundary commented 7 years ago

Question: I have a question about the current functionality. As a user, is it possible to add entries to the registry yourself (that are not put there by npmjs.org)? Either quite "manually" like copying files to the right folder, or more programatically by pushing new entries there (but not npmjs.org)?

billiegoose commented 7 years ago

That's... actually an interesting question, and I don't know the answer. I'd always thought of it as "mirror" or "follower" of the main registry. Under the hood, it's using something called PouchDB and is set up to "replicate" from another PouchDB which is usually registry.npmjs.org or another local-npm/modserv instance.

However, I don't understand PouchDB well enough to know what that actually means. @nolanlawson would probably know, seeing how he wrote a lot of both local-npm and PouchDB. Is it possible to add your own entries to the local PouchDB database, while still replicating registry.npmjs.org? Or does replicating make a read-only copy?