• Stars
    star
    671
  • Rank 67,266 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 13 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A cross-browser wrapper for IndexedDB

GitHub NPM CDNJS Dependency Status FOSSA Status

IDBWrapper is a cross-browser wrapper for the HTML5 IndexedDB API. While this API is the future of offline storage, it is not very intuitive to use. IDBWrapper is there to provide easy access to IndexedDB's features.

Browser Support

IDBWrapper works on all browsers supporting the IndexedDB API, which are:

Desktop

Chrome, Firefox, Opera 15+, IE 10+, Safari 8+

Mobile

Chrome for Android, Firefox for Android, Opera for Android, IE10 for WP8, iOS 8+

Worker

IDBWrapper runs inside of a worker on following browsers:

Chrome (also on Android), Firefox (also on Android), Opera (also on Android), IE10+ (also on WP8+)

If using in an older browser supporting WebSql along with IndexedDBShim, IndexedDBShim needs to run first.

Note on limited/buggy IndexedDB support:

Using IDBWrapper

Tutorials

There are two tutorials to get you up and running:

Part 1: Setup and CRUD operations http://jensarps.de/2011/11/25/working-with-idbwrapper-part-1/

Part 2: Running Queries against the store http://jensarps.de/2012/11/13/working-with-idbwrapper-part-2/

Examples

There are some examples to run right in your browser over here: http://jensarps.github.io/IDBWrapper/example/

The source for these examples are in the example folder of this repository.

Wiki

For usage instructions, details about mothods for reading and writing data, setting up indexes and running queries, please refer to the Wiki.

API Reference

There's an API reference over here: http://jensarps.github.io/IDBWrapper/doc/latest/IDBStore.html

For references of older versions, please refer to this index: http://jensarps.github.io/IDBWrapper/doc/

Obtaining IDBWrapper

cdnjs

IDBWrapper is also available on cdnjs. You can directly point a script tag there, or require() it from there. cdnjs supports http, https and spdy, so you can just leave the protocol off. The URLs for the different versions of IDBWrapper can be found here: https://cdnjs.com/libraries/idbwrapper

Package Managers

If you use NPM as your package manager, you can get it from there, too, by running:

$ npm install idb-wrapper

If you use bower as your package manager, run the following:

$ bower install idbwrapper

If you want to add IDBWrapper to a volo project, just run:

$ volo add idbwrapper

git

You can git clone the repository, or download a zip file here: https://github.com/jensarps/IDBWrapper/releases

License

FOSSA Status

More Repositories

1

AMD-feature

A loader plugin for AMD loaders
JavaScript
161
star
2

StorageJS

A micro wrapper for client side storage, targeted at mobile devices.
JavaScript
84
star
3

AMD-cache

A localStorage cache plugin for AMD loaders.
JavaScript
36
star
4

Ascent

A WebGL Space Simulator Framework
JavaScript
27
star
5

css-shader

CSS-Shader is a wrapper that allows you to easily set CSS shaders via Javascript.
JavaScript
24
star
6

cockpit.js

A retro-style 2D cockpit overlay for your 3D game
JavaScript
22
star
7

decoupled-input

Input handling for HTML5 games done right.
JavaScript
13
star
8

surf-in-style

JavaScript
13
star
9

webar-experiments

JavaScript
13
star
10

indexeddb-types

The W3C IndexedDB IDL Definitions in JavaScript for Code Completion and Type Hinting in Your Editor.
JavaScript
12
star
11

storehouse

A persistent data store implementing the dojo/store API
JavaScript
12
star
12

webgl_experiments

JavaScript
9
star
13

fetch-types

The Fetch API Definitions in JS & JSDoc
JavaScript
7
star
14

W3C-IDL-Definitions

A collection of W3C Spec IDL defintions
6
star
15

game-timer

A simple timer to use in combination with a render loop, providing timeout and interval methods.
JavaScript
5
star
16

farbs

A Framework Agnostic Registry Based Skeleton for decoupled UI widgets or components
JavaScript
5
star
17

idbwrapper-utils

A collection of community written utilities, wrappers, helpers and whatnot around IDBWrapper.
JavaScript
2
star
18

shooting-at-balls

An HTML5 APIs testing ground disguised as an WebGL Shooter
JavaScript
2
star
19

fast-pool

A lightweight and fast object pool implementation
JavaScript
1
star