Need advice about which tool to choose?Ask the StackShare community!
LokiJS vs Pouchdb: What are the differences?
What is LokiJS? In-memory JavaScript Datastore with Persistence. 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.
What is Pouchdb? Open-source JavaScript database inspired by Apache CouchDB that's designed to run well within the browser. PouchDB enables applications to store data locally while offline, then synchronize it with CouchDB and compatible servers when the application is back online, keeping the user's data in sync no matter where they next login.
LokiJS can be classified as a tool in the "In-Memory Databases" category, while Pouchdb is grouped under "Databases".
LokiJS and Pouchdb are both open source tools. Pouchdb with 12.1K GitHub stars and 1.21K forks on GitHub appears to be more popular than LokiJS with 4.95K GitHub stars and 389 GitHub forks.
Pros of LokiJS
- Can query the objects directly3
Pros of Pouchdb
- Offline cache2
- JSON1
- Very fast1
- Free1
- Repication1