Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: add entries directly? #6

Open
wcainboundary opened this issue May 4, 2017 · 1 comment
Open

Question: add entries directly? #6

wcainboundary opened this issue May 4, 2017 · 1 comment

Comments

@wcainboundary
Copy link

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
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants