Atlas sits on top of Backbone.js, adding features and enhancing the API

npm install atlas
5 downloads in the last week
5 downloads in the last month

Atlas (for Backbone.js)

Atlas sits on top of Backbone.js, adding features and making it nicer to use.

ES5 getters/setters

Atlas adds ES5 getters and setters to Backbone.Model for every default attribute.

var User = Backbone.Model.extend({
  defaults: {
    username: undefined,
    email: undefined

var user = new User();

// Backbone's API:
user.set({ 'username':'dandean' });

// Backbone with Atlas:
user.username = 'dandean';

Atlas triggers events before and after calls to Backbone.history.navigate(...). These events can do awesome things like notify your views that they should go ahead and remove themselves from the DOM.

Events: "willNavigate", "didNavigate".

var router = Backbone.Router.extend({
  routes: {
    '' : 'index',
    'library': 'library',
    'library/work': 'work',


  library: function() {
    var collectionsView = new App.Views.Library.Collections();

    var worksView = new App.Views.Library.Works();

    var navigateHandler = function(from, to) {
      if (from === 'library') {
        Backbone.history.unbind('willNavigate', navigateHandler);

    Backbone.history.bind("willNavigate", navigateHandler);




Atlas is still experimental, and the fact that it monkey-patches Backbone is a bit iffy... but it's awesome so you should totally use it.

What's with the cheesy name, Atlas?

The topmost vertibra in a backbone is named "atlas"... now you know.



npm loves you