Backbone.js - JavaScript MVC

backbone.js from DocumentCloud is a small (2KB, packed) open-source library which allows you to apply the MVC (Model-View-Controller) principle to your JavaScript applications. Backbone supplies structure to JavaScript-heavy applications by providing models key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing application over a RESTful JSON interface.

backbone Backbone.js   JavaScript MVC

With Backbone, you represent your data as Models, which can be created, validated, destroyed, and saved to the server. Whenever a UI action causes an attribute of a model to change, the model triggers a “change” event; all the Views that display the model’s data are notified of the event, causing them to re-render.

The project is hosted on GitHub, and the annotated source code is available, as well as an online test suite, and example application.

Requirements:-
Demo: http://documentcloud.github.com/backbone/examples/todos/index.html
License: Other License

Incoming search terms for the article:

Related Posts

How To Create A Basic Social Sharing Button

Add Clippy.js To Your Website For Instant MSWord Nostalgia

Colorize Your Source Code With Sunlight

Mozilla Tow Truck: Real-Time Web Browser Collaboration

1 Comment

  1. Martin Drapeau

    01.04.2011

    We’re using Backbone to develop our next generation UI at http://www.planbox.com. If like us, you are building an application in the browser where performance is crucial, Backbone is the way to go.