thunderstore
Keeps your localStorage in sync with the server and allows for access and manupilation of localStorage directly from the server!
Thunderstore also exposes a convenient session property (shorthand for .get('session') and .set('session')) so you could store session data in localStorage because cookies are bad for you!
Example
server.js (with shoe)
var sock = ; sock;
client.js (with shoe)
var stream = ;var thunderstore = stream;thunderstorethunderstoresession = user: 'dog';thunderstore
METHODS
t.set(key, value) / set(key, property, value)
Set value of key on both the server and browser; emits a "set" event on the other end.
t.get(key, value)
Retrieves value of key
EVENTS
t.on('set', function(args) {})
Emitted when a key has been modified due to a remote set
TODO / Missing features
- K/V store persistence
License
MIT