Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

123 lines (100 sloc) 4.259 kB


a small yet powerful JavaScript library composed of application agnostic opensource submodules wrapped in a slick intuitive interface. At only 7k Ender.js can help you build anything from small prototypes to providing a solid base for large-scale rich applications. Inside Ender you get


DOM queries

$('#boosh p').html('hello').css({
  color: 'red',
  'text-decoration': 'underline'


  color: function (c) {
      color: c
    return this;

$('#boosh a[rel~="bookmark"]').color('orange');


var Person = $.klass(function (name) { = name;
    walk: function () {}
var SuperHuman = Person.extend({
  walk: function () {
  fly: function () {}
(new SuperHuman('bob')).walk();


$.ajax('path/to/html', function (resp) {
  url: 'path/to/json',
  type: 'json',
  method: 'post',
  success: function (resp) {
  failure: function () {}

script loading

$.script(['mod1.js', 'mod2.js'], 'base', function () {
  // script is ready

// event driven. listen for 'base' files to load
$.script.ready('base', function () {



$('p').animate('opacity', {
  from: 0,
  to: 1,
  time: 300


Utility methods provided by underscore are augmented onto the '$' object. Some basics are illustrated:

$.map(['a', 'b', 'c'], function (letter) {
  return letter.toUpperCase();
}); // => ['A', 'B', 'C']

$.uniq(['a', 'b', 'b', 'c', 'a']); // => ['a', 'b', 'c']

No Conflict

var ender = $.noConflict(); // return '$' back to its original owner

The haps

Ender.js pulls together the beauty of well-designed modular software and proves that git submodules can actually work. Thus if one part of the system goes bad or unmaintained, it can be replaced with another with minimal to zero changes to the wrapper (Ender). Furthermore if you want remove a feature out entirely (like for example, the animation utility), you can fork this repo and remove the appropriate submodule.


For those interested in contributing on the core wrapper itself. Here's the process. Assuming you have git already — install NodeJS — then run the following commands in your workspace:

git clone
cd !$
git submodule update --init

Take special note that building with Ender will more than likely require frequently updating your submodules. Thus if you're unsure how this works, it's best to read up on how submodules work. However the simple answer is to get used to doing this:

git pull
git submodule update

Why all this?

Because in the browser - small, loosely coupled modules are the future, and large, tightly-bound monolithic libraries are the past.


Ender.js (the wrapper) is licensed under MIT - copyright 2011 Dustin Diaz

For the individual submodules, see their respective licenses.

Current times

It's obviously early days for Ender.js, and there are still bugs in each of the respective submodules, but they are each actively being worked on and you can be sure that Ender will pull in these changes as often as possible.

Jump to Line
Something went wrong with that request. Please try again.