Skip to content
Joe Minichino edited this page Jul 29, 2013 · 27 revisions

LokiJS

Overview

LokiJS is a document oriented javascript database, somewhat similar to MongoDB. It supports indexing, querying and filtering of data collections. LokiJS also supports more advanced features such as mapReduce, transactions and lets you implement custom remote synchronization to save data to a server (or a local file on mobile).

Features

1. Document oriented

Javascript "speaks" JSON, so data is stored in as JSON objects.

2. Indexing

You can specify indexes to speed searches on certain object properties.

3. Views

You can declare custom view functions to return result sets based on complex logic.

4. Map reduce

You can declare map and reduce functions to retrieve aggregate data from your database.

Example usage