derbyjs / racer

Realtime model synchronization engine for Node.js
1.19k stars 118 forks source link

Offline support using localStorage #46

Closed bachp closed 5 months ago

bachp commented 12 years ago

It would be nice to have a HTML5 localStorage back-end for racer. This would allow an application to work in a truly offline fashion and still have the synchronization capability provided by racer. I thought this could be similar to the mongodb back-end but on the client side.

The app would get bootstrapped the first time it connects to the server and it then can be used offline. The data would be stored persistently in the browser. As soon as the user is online again it gets synced back to the server as it would usually be done.

Maybe this is already possible using racer but I was not able to find anything about this.

vmakhaev commented 12 years ago

It might be worth to consider using Indexed DB also. http://caniuse.com/#feat=indexeddb

juzerali commented 12 years ago

Indexeddb will be better suited. localStorage is too slow.

dts commented 11 years ago

Any updates on this? Racer is a perfect fit for a project I am working on, but some form of local storage is a must. What would be involved in integrating this?

craigbeck commented 5 months ago

Thanks for your contributing your issue.

We have recently been actively updating the Derby and Racer packages, and both repos are now in Typescript and published with types on npm. As we have quite a few old issues open we have made the decision to close out of date issues.

If this issue still matters to you we encourage reproducing against the current versions of the repo and opening a new issue.