Examples

Runnable, copy-paste code for the ideas explained across the rest of the site.

Every example here is a small, complete program you can run locally, paired with the explainer it demonstrates. They use Backbone.js 1.6.0 and plain browser APIs, with no build step. Read an example to see a concept in working code, then follow the link back to the deeper explanation. Start with the Backbone core and work toward application patterns, rendering, and realtime.

Examples learning pathFrom Backbone core examples to application patterns to rendering and realtime. Backbone core app patterns rendering realtime
Each example links back to the concept it puts into practice.

Backbone core, in working code

Application patterns

Rendering and performance

SEO and realtime

Explore related learning

New here?

Start with the guide that explains the four Backbone building blocks these examples use.

Explore the Backbone Guide →