JavaScript Library for Events and DOM manipulation. Replaces jQuery for Backbone (2.5kb gzipped)
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Meet jBone

Join the chat at

Build Status Bower version npm version JS.ORG CDNJS.COM License GitHub Stats

jBone is very small and fast abstraction for Events and DOM manipulation in modern browsers with identical jQuery interfaces in most cases.

It replaces jQuery for Backbone in web and mobile applications (about 2.5kb gzipped, much faster than jQuery and Zepto).

Why jBone?

The main idea of jBone is to use native JavaScript methods as much as possible in your project.

It is superior solution for applications based on Backbone and running on mobile devices as it is extremely small (2.5kb) and really fast library.

jBone project was created to allow people to use Backbone without jQuery.

See benchmark results here.

Get it

Via bower
$ bower install jbone --save
Via component
component install kupriyanenko/jbone
Via nodejs or browserify
$ npm install jbone --save

Use it

Add a <script> element for jbone.js

<script src="path/to/jbone/dist/jbone.js"></script>

Or include it like npm module (with nodejs or browserify)

var $ = require('jbone');

And write awesome code:

var $input = $("<input>", {
    "class": "name"

$input.on("", function(e) {
    console.log("clicked on", this);



Extend it

jBone.fn.addClass = function(className) {
    var i = 0,
        length = this.length;

    for (; i < length; i++) {

    return this;


AJAX, Deferred

This part is not covered in jBone. You can choose one of a huge amount of AJAX implementations as well as standard Promises/A+ implementations.

For example: when, Q, simply-deferred, AJAX.

Example of AJAX connection:

// connect reqwest on your page

jBone.ajax = reqwest.compat;

    url: ""

Example of connection with Deferred Object:

// connect simply-deferred on your page


var deferred = $.Deferred();

$.when(deferred).then(function(response) {
    // some code

Browser support

  • Internet Explorer 11+
  • Safari 6+
  • iOS 5+ Safari
  • Android 2.3+ Browser
  • Chrome
  • Firefox









Array methods


Running the Tests


  1. npm install
  2. npm test


  1. bower install
  2. Open page with tests in browser test/tests.html