lawnchair – a client side JSON document store

Sorta like a couch except smaller and outside

JSON Daten clientseitig speichern und verfügbar halten.

“stores” nennt Lawnchair das dann.
Eigentlich ähnlich wie bei Propel und co. Nur halt ohne DB.

ich würde sagen die Syntax spricht in dem Fall für sich selbst:

var people = new Lawnchair('people');

// Saving a document
var me = {name:'brian'};;
// Saving a document async{name:'frank'}, function(r) {
// Specifying your own key{key:'whatever', name:'dracula'});

// Get that document
people.get(me.key, function(r){
// Returns all documents as an array to a callback
// List all with shortcut syntax

// Remove a document directly
people.get(me.key, function(r){
// Remove a document by key{key:'die', name:'duder'});
// Destroy all documents

3 Replies to “lawnchair – a client side JSON document store”

  1. der hier macht auch sowas:

    da gibts auch ein paar erklärende worte:

    Currently the only reliable cross-platform and cross-browser mechanism for storing data on the client side are cookies. Unfortunately, using cookies to store persistent data has several problems:

    Size: Cookies are limited to about 4 kilobytes in size.
    Bandwidth: Cookies are sent along with every HTTP transaction.
    Complexity: Cookies are difficult to manipulate correctly.

    Modern web browsers have addressed these issues by adding non-Cookie mechanisms for saving client-side persistent data. Each of these solutions are simpler to use than cookies, can store far more data, and are not transmitted along with HTTP requests. Unfortunately, each browser has addressed the problem in a different and incompatible way

  2. yap persistentJS ist ebenfalls ein abstractionLayer für die ganzen storage ansätze
    lawnchair wahrscheinlich auch.

    lass es uns wissen, wenn du das erfolgreich eingesetzt hast

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.