Chaplin empowers you to quickly develop scalable single-page web applications; allowing you to focus on designing and developing the underlying functionality in your web application.
or install with package managers:
bower install --save chaplin
component install chaplinjs/downloads
Simple “Hello world” example project using Chaplin and Require.js
Plain JS variant of the previous boilerplate
With Backbone, Chaplin and Require.js
Backbone is very good at what it does (simple MVC library), but a library alone is not enough for building single-page apps. For example, there is no good memory management solution in Backbone.
Chaplin addresses these limitations by providing a lightweight but flexible structure which leverages well-proven design patterns and best practises.
Chaplin allows you to focus on designing and developing the underlying functionality in your web application. You can quickly make a prototype and then use it as a starting point and make really big web app in little time.
Even if you add Underscore and jQuery to this stack, overall size will still be just 52K.
Chaplin allows you to achieve these goals:
Making REST web apps is extemely easy with Chaplin.
Here’s example app. When you click on app link, it tries to load GitHub user data and display it. It was separated to 11 files so that you can see each chunk separately. Each file is a module and loaded from other file (with Brunch).(non-iframe link), (GitHub repo)
Chaplin supports AMD and Common.js modules. There is no “global variables” build, so Chaplin explicitly prohibits any using without module systems.
There is another option: you can use Exoskeleton. Exoskeleton is a faster and leaner Backbone for your HTML5 apps. It allows you to totally drop these dependencies. Just include Exoskeleton with Chaplin and you're done.