Repository navigation
Description
Like rawgit.com but also resolve & serve all kinds of dependencies: git submodules, npm, bower etc.
This is similar to what every PaaS (heroku buildpacks) and CI (travis) do — checkout and install — but here the focus would be on serving lots of projects & version from few machines, caching & quick "install" on demand. This requires:
storing packages only once; use package managers like npm to resolve precise versions but don't install them on disk.
Complication: loose version specs like '*' resolve to different things with time. Need invalidation.
dedupping package content between managers (mathjax 2.5.1 on git, npm and bower are almost identical) and versions (mathjax 2.5 and 2.4 still share a lot). bup is a natural approach, up to GC being hard.
The most interesting part is GC: how to prune the cache without losing all work. It makes sense to store metadatas (package.json etc) long after the content is dropped. Probably full directory trees with file hashes [after bup-splitting?] are also useful.
Extra bonus for horizontal scaling with p2p cache sharing (memcached style).
The end result as I see it would be only useful for serving static sites —
but more importantly the project could serve as basis for faster CI &deployment.
P.S. Should strive to support fully hermetic perma-URLs: capturing versions of the programming landuages, package managers, rawdep itself(!), and the moment in time for exact version resolution...
see also similar thoughts in #5
Activity