Hacker GitHub

← All repos

napoleond/localModel

View on GitHub ↗ ★ 19 JavaScript

localModel.js is a drop-in extension for Backbone (http://documentcloud.github.com/backbone/) which coordinates the replication of user data between localStorage and the remote (server) data store.

4 mentions on Hacker News by 1 person: 0 stories, 4 comments · first 2011-11-11 · latest 2012-02-14

Mentions per year 4 mentions · busiest year 2012 (3)
20082026
  1. I've played a bit with caching models on the client: https://github.com/napoleond/localmodel I'm planning to implement merges at some point, but the current implementation has still proven useful to me.
  2. …is intriguing. I've spent a bit of time building Backbone projects that sync with the server (eg. https://github.com/napoleond/localModel ) but until now have always resolved conflicts by choosing the model with the most recent time…
    comment by fooandbarify · 2012-01-26 · in Backbone.js localStorage + remote sync
  3. Very cool. I wrote something similar a while back: https://github.com/napoleond/localModel My implementation leaves a lot to be desired with regards to re-use (there are certain project requirements which happened to be met by the project…
    comment by fooandbarify · 2012-01-26 · in Backbone.js localStorage + remote sync
  4. …else is interested they can take part, too. I recently made a really simple Backbone.js extension ( https://github.com/napoleond/localModel ) that reduces load times and the number of HTTP requests an app needs to make by caching data in…