-
Notifications
You must be signed in to change notification settings - Fork 108
Flat-File version #42
Comments
@konobi this https://github.com/cnpm/cnpmjs.org project solves similar (same?) problem. Cache compatible with npm clients. It uses MySql instead of flat files. I did not try it myself but looks easy to get up and running and stable. Quote from their README
|
If we're talking about npm registry servers, sinopia uses flat files. You can rsync files between its instances. Works fine as a private registry, but I doubt the entire npm registry would work fast enough if implemented like that. It's just too many files. |
@rlidwka thanks for the good link (and the links it contains in similar existing things). I think that we might agree that the original requirement
BTW: I'm looking for a minimal NPM repository REST API specification. What urls does it have to support. What search queries does it have to support. Do you know where such specification is? I don't mean code implementing it that might be reverse-engineered. I mean an approved document. I'd like to use it for implementing PHP readonly client (the result should be a mixture of http://nipstr.com and http://component.xmojmr.cz) |
I'm afraid that would be the entire CouchDB API spec. :( I could draft a de-facto standard which npm uses now, but it would worth nothing since they can change it anytime. |
@rlidwka CouchDB API spec (http://docs.couchdb.org/en/latest/intro/tour.html) is not quite the answer I'm looking for. It does not seem to contain Imagine (it really is a fake example) there is an external company creating a fancy 3D visualization tools and their data-interface engine will be written in C# (because they already have a lots of code in the behind available) etc. and you need to pass their developers a specification of the What would you give them? or what set of articles they should read? (the now-available alternative that they can install Maybe I'm asking stupid question, but I'm new to this side of |
Most of the API is embedded in the code for |
@othiym23 , extracting current api isn't a big deal indeed. But is there any chance that npm won't be changing its behaviour/API in the future making that documentation outdated and without notice? I've seen that a few times before... |
It would be great to get a version of this that works against flat files, available either locally on disk or over http/ftp. This would allow for npm mirroring using rsync and most normal functionality being available without needing to hit the npm servers directly. These files should be updatable from the central registry and allow for small diffs between updates. Would be great for having local, organization wide mirrors.
Of course, all publishing functionality would still need to go to the npm central registry.
The text was updated successfully, but these errors were encountered: