• Stars
    star
    6,678
  • Rank 5,650 (Top 0.2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 11 years ago
  • Updated 11 months ago

Reviews

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

Repository Details

javascript embeddable / in-memory database

LokiJS

The super fast in-memory javascript document oriented database.

Enable offline-syncing to your SQL/NoSQL database servers with SyncProxy !! Code-free real time syncing, ideal for mobile, electron and web apps.

Join the chat at https://gitter.im/techfort/LokiJS alt CI-badge npm version alt packagequality

Overview

LokiJS is a document oriented database written in javascript, published under MIT License. Its purpose is to store javascript objects as documents in a nosql fashion and retrieve them with a similar mechanism. Runs in node (including cordova/phonegap and node-webkit), nativescript and the browser. LokiJS is ideal for the following scenarios:

  1. client-side in-memory db is ideal (e.g., a session store)
  2. performance critical applications
  3. cordova/phonegap mobile apps where you can leverage the power of javascript and avoid interacting with native databases
  4. data sets loaded into a browser page and synchronised at the end of the work session
  5. node-webkit desktop apps
  6. nativescript mobile apps that mix the power and ubiquity of javascript with native performance and ui

LokiJS supports indexing and views and achieves high-performance through maintaining unique and binary indexes (indices) for data.

Demo

The following demos are available:

  • Sandbox / Playground
  • a node-webkit small demo in the folder demos/desktop_app. You can launch it by running /path/to/nw demos/desktop_app/

Wiki

Example usage can be found on the wiki

Main Features

  1. Fast performance NoSQL in-memory database, collections with unique index (1.1M ops/s) and binary-index (500k ops/s)
  2. Runs in multiple environments (browser, node, nativescript)
  3. Dynamic Views for fast access of data subsets
  4. Built-in persistence adapters, and the ability to support user-defined ones
  5. Changes API
  6. Joins

Current state

LokiJS is at version 1.3 [Eostre].

As LokiJS is written in JavaScript it can be run on any environment supporting JavaScript such as browsers, node.js/node-webkit, nativescript mobile framework and hybrid mobile apps (such as phonegap/cordova).

Made by @techfort, with the precious help of Dave Easterday.

Leave a tip or give us a star if you find LokiJS useful!

Installation

For browser environments you simply need the lokijs.js file contained in src/

You can use bower to install lokijs with bower install lokijs

For node and nativescript environments you can install through npm install lokijs.

Roadmap

  • exactIndex
  • key-value datastore
  • MRU cache
  • MongoDB API compatibility
  • server standalone (tcp and http servers and clients)
  • replication and horizontal scaling

Contact

For help / enquiries contact [email protected]

Commercial Support

For commercial support contact [email protected]

License

Copyright (c) 2015 TechFort [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

pycv

Website of the book "Learn OpenCV 3 with Python"
Python
542
star
2

PowerArray

Boosted Performance Array
JavaScript
248
star
3

mimir

bag-of-words calculator in javascript
JavaScript
137
star
4

fundb

Functional programming based database engine
JavaScript
37
star
5

classify-text

proof of concept of text classification with mimir and brain
JavaScript
36
star
6

redisvue

real-time monitor and keys analytics for redis
Vue
32
star
7

jotun

convert javascript object to numerical representation (VSM)
JavaScript
20
star
8

dog-project

Jupyter Notebook
10
star
9

armour

prevent side-effects function wrapper
JavaScript
10
star
10

lokijs-server

lokijs tcp server
JavaScript
9
star
11

aind2-rnn

udacity recurrent neural network project
Jupyter Notebook
9
star
12

udacity-ec2-gpu

terraform project to launch a gpu ec2 instance for deep learning network training
HCL
9
star
13

lokijs-client

tcp client for lokijs
JavaScript
7
star
14

csv-loader

csv-loader for js
JavaScript
6
star
15

baldr

jekyll-style statically generated website with angular and requirejs
CSS
6
star
16

opencv-mediapipe-hand-gesture-recognition

generate training data, train and classify a deep learning model for hand gesture recognition
Jupyter Notebook
5
star
17

jumble

ultra-efficient javascript serialization library
JavaScript
5
star
18

cv_ml

computer vision and machine learning with opencv, sklearn, keras
Python
4
star
19

paladin

Javascript composition and delegation library
JavaScript
4
star
20

snaptun

lokijs http server wrapper
JavaScript
4
star
21

aind-sudoku

Python
3
star
22

lokijs-utils

utilities for lokijs
JavaScript
3
star
23

gordian

node testing framework
JavaScript
3
star
24

autoform

nodejs server side utility to generate form elements with JSON form descriptors
JavaScript
3
star
25

AIND-Isolation

Python
3
star
26

skrymir

LokiJS v2.0 experimental repository
JavaScript
3
star
27

sleipnir

LokiJS tcp server
3
star
28

streamlog

Immutable events as a Stream, Log and Database: self-materializing and replicating views for distributed systems
JavaScript
3
star
29

aind-cv-capstone

capstone project for aind cv concentration
Jupyter Notebook
2
star
30

num-js

numpy-like lib
JavaScript
2
star
31

dis

Go
2
star
32

snaptun-cli

command line client for snaptun
JavaScript
2
star
33

lokijs.org

website code
HTML
2
star
34

forward

forwarding redis keys into the aether
Go
2
star
35

ann

artificial neural networks implementation using SGD
JavaScript
2
star
36

nibiru

run lambda locally
JavaScript
2
star
37

miniss

A slim javascript/JSON to css processor. Ideal for building based on a common CSS.
JavaScript
2
star
38

classifly

example of JS Object classification using brain (ANN), mimir (BOW) and jotun (objects to vector)
1
star
39

techfort.com

tech-fort.com website
JavaScript
1
star
40

aind-cv-mimicme

JavaScript
1
star
41

hbow

bag of words in haskell (study)
Haskell
1
star
42

bloki

express angular blogging engine with lokijs database
JavaScript
1
star
43

go-demo

this repo is a hello world http server that only serves as a sample go app for building go apps with jenkins. If you are learning jenkins you can use this too
Go
1
star
44

Sigyn

android nosql embeddable datastore
Java
1
star
45

sendyoulater

Go
1
star
46

AndroidMongolab

a tiny library for mongolab connection with android
Java
1
star
47

norns

replicable redis-like key value store for node
JavaScript
1
star
48

doomsword

doomsword web site code
CSS
1
star
49

heavy-metal-js

Performance findings, Code robustness: Speed and Power. Heavy Metal.
1
star
50

streamlogdb

event stream as log and database
C++
1
star
51

wyrdtales

Go
1
star