GithubHelp home page GithubHelp logo

kustomzone / level.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from level/level-js

0.0 1.0 0.0 89 KB

leveldb for the browser

Home Page: https://github.com/rvagg/node-levelup/wiki/Modules

JavaScript 99.78% HTML 0.22%

level.js's Introduction

logo

level.js an implementation of the leveldown API on top of IndexedDB (which is in turn implemented on top of LevelDB, which brings this whole shebang full circle)

Most people use levelup on top of this library. See test-levelup.js for details

For some demos of it working, see @brycebaril's presentation "Path of the NodeBases Jedi": http://brycebaril.github.io/nodebase_jedi/#/vanilla

NPM

level.js uses IDBWrapper by jensarps to ensure compatibility between IDB implementations.

Here are the goals of this level.js:

  • Store large amounts of ascii (strings, JSON) and binary (ArrayBuffers, Typed Arrays) data in modern browsers
  • Be as fast as possible
  • Use the leveldown test suite and sync with multilevel over either ascii or binary transports (websockets and xhr both have ascii/binary modes in browsers now)

Being leveldown compatible means you can use many of the level-* modules on top of this library.

install

npm install level-js

(Not to be confused with leveljs)

This library is best used with browserify

code examples

var leveljs = require('level-js')
var db = leveljs('bigdata')
db.open(function onOpen() { })

The test suite for this library is in the abstract-leveldown repo and is shared between various leveldown implementations across different environments and platforms.

For more code examples see the abstract-leveldown test suite

The only differences between this and leveldown is that you can store ArrayBuffers in this (whereas leveldown just uses node Buffer objects)

run the tests

git clone [email protected]:maxogden/level.js.git
cd level.js
npm install
npm test
open localhost:9966

Then look in your browser console

license

BSD

level.js's People

Contributors

max-mapper avatar rvagg avatar nolanlawson avatar qs44 avatar dominictarr avatar juliangruber avatar shama avatar mcollina avatar mafintosh avatar brycebaril avatar calvinmetcalf avatar jameskyburz avatar nrw avatar ryanramage avatar yoshuawuyts avatar

Watchers

Andrew Kidoo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.