How jashkenas/backbone works
Backbone is a JavaScript application-structure library. An application uses its models, collections, views, and events; routers and browser history handle URL-based navigation, while model and collection operations can synchronize through a RESTful JSON interface. The graph distinguishes these runtime responsibilities and the optional DOM adapter. The README documents the broad product workflow; sampled source confirms selected internal calls. The minified distribution is shown separately; unsampled implementation details are not inferred.
Main entry points: backbone.js Models
Components 13
Application structures
- Models
backbone.js - Collections
backbone.js - Views
backbone.js - Events
backbone.js
Navigation
- Router
backbone.js - Browser history
backbone.js
Synchronization
- REST sync
backbone.js - REST JSON server
Runtime support
- Underscore
- DOM adapter
- Backbone runtime
backbone.js - Minified runtime
backbone-min.js
Other components
- Application developer
Connections 12
- Application developer → Models: uses
README.md - Application developer → Collections: uses
README.md - Application developer → Views: uses
README.md - Application developer → Router: routes with
backbone.js - Models → Events: emits changes
backbone.js - Collections → Models: manages
backbone.js - Router → Browser history: registers routes
backbone.js - Models → REST sync: delegates sync
backbone.js - Collections → REST sync: delegates sync
backbone.js - REST sync → REST JSON server: exchanges JSON
README.md - Views → DOM adapter: delegates events
- Backbone runtime → Underscore: uses utilities