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

premium offline experience #88

Open
dominictarr opened this issue May 21, 2015 · 3 comments
Open

premium offline experience #88

dominictarr opened this issue May 21, 2015 · 3 comments

Comments

@dominictarr
Copy link
Owner

to make this work offline really really well, here is what I want to happen (I havn't implemented this yet because i've been busy with other things)

create a lite registry server - this would be a back ground process which tailed all the npm metadata into a local database (leveldb, of course), not all modules are in the registry (some are on github) so it would need to cache those modules to resolve it. Luckily this is already implemented in npmd-cache. Basically this server would just use npmd-cache, and a local database.

The lite registry would expose a resolve service, (see npmd-resolve) it would give you a tree of modules to install, but it would only look in it's local cache/db so that it doesn't need to go over the network.

You could run this service on your laptop, just for your self, or you could run it on the local network for a team.

@dominictarr
Copy link
Owner Author

maybe you could even "follow" a user or package, and have the lite-registry eagerly cache new publishes from that user/package so you can always install the fresh stuff

@DamonOehlman
Copy link

Nice - It's highly likely that I'll get distracted by something shiny on the weekend, but if I do get some time to code for the betterment of JS developers everywhere I'll take a look at this at CampJS :)

@dominictarr
Copy link
Owner Author

ah, yeah a lite registry like this would be perfect for something like campjs

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