Check out http://bower.io/ :
> Bower is a package manager for the web. It offers a generic, unopinionated solution to the problem of front-end package management, while exposing the package dependency model via an API that can be consumed by a more opinionated build stack.
rails-assets is an example of a higher-level, more opinionated stack that adds value on top of bower.