/dash

IDB since 2011

Primary LanguageJavaScript

dash Build Status Coverage Status

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

Key Features

  • Simplified callbacks through promises
  • Transaction and optionally version-free
  • Declarative databases, object stores and indexes
  • 5KB gzipped (18KB uncompressed)
  • Tests passing Chrome 61.0.3163

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.entry({
    database: 'foo',
    store: 'bar',
    data: { baz: new Date().getTime() }
})((add) => {
    dash.get.entry(add)((get) => {
      console.log('Data', get.entry)
    });
});

Developer Features

To Test

npm install
grunt

Building requires grunt-cli