Rye is a lightweight javascript library for DOM manipulation and events with support for all modern browsers, including IE9+. It has support for touch events/gestures, an event emitter, isolated DOM events and more.

Introduction

Rye is a browser library written from the ground-up with modern browsers in mind. It is an attempt to bring together the best practices in javascript, borrowing from both browser and node.js code patterns.

It also tries to be as minimal as possible, using standard browser APIs and ES5 methods whenever possible. Reading the source code is encouraged.

Rye is built as a collection of modules. You can use it whole, or just import specific modules you need. The API should be familiar to everyone who has worked with jQuery or Zepto, but not totally compatible; inconsistencies like .map/.each argument order and behavior have been fixed, and follow the native map/forEach methods.

One important thing to note is that Rye doesn't try to subclass Array in any way. A Rye instance is just a standard object, with the current elements selection stored in the .elements array. All standard ES5 array methods are available and operate on the elements collection; while still providing traversing methods you might know from other libraries like .next, .prev, .children, etc.