I'm looking for an approach or a library that handles this. the idea is to store data in localstorage and sync to the backend when a connection is available, <http://pouchdb.com/> looks like a cool solution but anyone has use it on production?

**UPDATE:**

Right now you can also use:

* [MeteorJS + Angular](https://www.meteor.com/)
* [Firebase](https://firebase.google.com/)
* [Parse](https://github.com/ParsePlatform/parse-server)
* [Horizon](http://horizon.io)