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
20082026
-
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.
comment by fooandbarify · 2012-02-14 · in Sample App with Backbone.js and Twitter Bootstrap -
…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 -
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 -
…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…
comment by fooandbarify · 2011-11-11 · in Offer HN: I'll work on interesting projects for free