/dash

IDB since 2011: v2 releases July 4th, 2014

Primary LanguageJavaScript

dash Build Status Coverage Status

A cookie-sized JavaSript library wrapping the IndexedDB "HTML5" database API.

Key Features

  • Simpified callbacks through promises
  • Transaction and optionally version-free
  • Declarative databases, object stores and indexes
  • 4KB gzipped (15KB uncompressed)

Installation Options

Up And Running

/* There's no setup required to get started using IndexedDB with dash. */
/* Just start adding entries and any declared databases, object stores and 
 * indexes will be provided */
dash.add.object({ database: 'foo', store: 'bar', data: { baz: new Date().getTime() } )
  (function(add_context) {
    dash.get.object(add_context)
    (function(get_context) {
      console.log('Data', get_context.entry)
    });
  });

Developer Features

To Test

npm install
grunt

Building requires grunt-cli

Documention

http://dashdb.com/#/docs

Demos

http://dashdb.com/#/demos

License

http://dashdb.com/#/about