A cross-browser JavaScript range and selection library.
I've started a discussion about the future of Rangy.
Rangy 1.3 has AMD support.
There is an official Rangy module on NPM called rangy.
Documentation is in the GitHub wiki.
There is an official Rangy package for Bower with Rangy 1.2 and 1.3 versions, called rangy.