In the last couple of months, Backbone-based application frameworks were released, most notably Thorax by WalMart and Marionette by Derick Bailey. While developing moviepilot.com, we came to similar conclusions – unfortunately the mentioned frameworks were releasing long after we began working on moviepilot.com.
Chaplin, an Application Architecture based on Backbone.js
In the meantime, Chaplin grew from an example application architecture to a separate library which is ready for use. You might build upon it and adapt it to the needs of your specific application. The key features of Chaplin include:
- CoffeeScript classes wrapped in RequireJS (AMD) modules
- Cross-module communication using the Mediator and Publish/Subscribe patterns
- Introducing controllers to separate routing and business logic
- Application-wide view and state management
- Consistent memory management and proper object disposal
Chaplin ships with a demo application that allows you to log in via Facebook and browse your Facebook Likes. Of course this isn’t as complex as the stuff on moviepilot.com, but it shows how to build application modules upon the Chaplin structure.
Join the discussion