LevelDB (levelup) compatible API for the browser, backed by IndexedDB
JavaScript CoffeeScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
lib
src
test
.gitignore
Cakefile
README.md
package.json
project.sublime-project

README.md

IndexedUp

IndexedUp is a port of node-levelup (LevelDB driver) for the browser, backed by IndexedDB. The API should be 100% compatible with node-levelup's, allowing you to share database code between the server and client.

Usage

var indexedup = require('indexedup')

indexedup('./mydb', function(err, db){
    db.put('key', 'some value', function(err){
        if (err) throw err
        db.get('key', function(err, value){
            console.log(value)
        })
    })
})

Implemented API

Tests

Passes levelup's test/simple-test.js (http://ricardobeat.github.com/indexedup/test/levelup/) with a few changes.

The basic test suite (test/spec.coffee) is 100% interchangeable with either node-levelup (run mocha) or indexedup in the browser.

Missing features / TODO

  • deal with options.encoding
  • buffering / sync constructor
  • events