StackShareStackShare
Follow on
StackShare

Discover and share technology stacks from companies around the world.

Follow on

© 2025 StackShare. All rights reserved.

Product

  • Stacks
  • Tools
  • Feed

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  1. Stackups
  2. Application & Data
  3. In-Memory Databases
  4. In Memory Databases
  5. LokiJS vs RxDB

LokiJS vs RxDB

OverviewComparisonAlternatives

Overview

LokiJS
LokiJS
Stacks43
Followers57
Votes3
GitHub Stars6.8K
Forks483
RxDB
RxDB
Stacks59
Followers179
Votes63
GitHub Stars22.8K
Forks1.1K

LokiJS vs RxDB: What are the differences?

Introduction

LokiJS and RxDB are both popular JavaScript databases, each with their own set of strengths and differences. This article aims to outline the key differences between the two.

  1. Scalability: LokiJS is primarily designed for browser-based applications, focusing on client-side storage with limited scalability options. On the other hand, RxDB is built for larger, scalable applications, providing powerful synchronization and replication options that allow for seamless data management across multiple devices and servers.

  2. Querying Capability: LokiJS offers a simple query API, allowing developers to easily perform queries on the client-side database. However, the query capabilities of RxDB are more advanced and versatile, supporting complex queries, joins, aggregations, and even full-text search functionality.

  3. Synchronization: LokiJS does not offer built-in support for data synchronization, which means that developers need to implement their own synchronization mechanism to keep multiple clients in sync. In contrast, RxDB provides native support for synchronization and replication, making it easier to keep data consistent and up-to-date across multiple devices and servers.

  4. Data Schema: LokiJS is a schema-less database, which means that it does not enforce any specific data schema, allowing for more flexible data models. On the other hand, RxDB enforces a schema for data consistency and validation, ensuring that data conforms to a predefined structure.

  5. IndexedDB Support: LokiJS uses IndexedDB as the underlying storage engine for browsers that support it, which provides scalability and persistence. Conversely, RxDB also supports IndexedDB as a storage option but also offers additional options like SQLite, WebSQL, and local filesystem storage, providing more flexibility in choosing the storage solution.

  6. Ecosystem and Community: LokiJS has been around for a longer period of time and has a mature ecosystem and a large community of contributors. RxDB, although relatively newer, is gaining popularity and has an active community of developers, making it easier to find support and resources.

In summary, the key differences between LokiJS and RxDB lie in their scalability options, querying capabilities, synchronization support, data schema enforcement, storage options, and the size and activity of their respective ecosystems and communities.

Share your Stack

Help developers discover the tools you use. Get visibility for your team's tech choices and contribute to the community's knowledge.

View Docs
CLI (Node.js)
or
Manual

Detailed Comparison

LokiJS
LokiJS
RxDB
RxDB

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.

💻 📱 Reactive, serverless, client-side, offline-first database in javascript. Client-Side Database for Browsers, NodeJS, electron, cordova, react-native and every other javascript-runtime.

Statistics
GitHub Stars
6.8K
GitHub Stars
22.8K
GitHub Forks
483
GitHub Forks
1.1K
Stacks
43
Stacks
59
Followers
57
Followers
179
Votes
3
Votes
63
Pros & Cons
Pros
  • 3
    Can query the objects directly
Pros
  • 15
    Good documentation
  • 13
    Subscription to queries
  • 11
    Example projects
  • 10
    Works
  • 10
    Typescript support
Cons
  • 4
    Bulk operation for updates and other operation
Integrations
Node.js
Node.js
NativeScript
NativeScript
Apache Cordova
Apache Cordova
PhoneGap
PhoneGap
Pouchdb
Pouchdb
CouchDB
CouchDB
Cloudant
Cloudant
React
React
Angular
Angular
Ionic
Ionic
Vue.js
Vue.js

What are some alternatives to LokiJS, RxDB?

MongoDB

MongoDB

MongoDB stores data in JSON-like documents that can vary in structure, offering a dynamic, flexible schema. MongoDB was also designed for high availability and scalability, with built-in replication and auto-sharding.

Redis

Redis

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker. Redis provides data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes, and streams.

MySQL

MySQL

The MySQL software delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software.

PostgreSQL

PostgreSQL

PostgreSQL is an advanced object-relational database management system that supports an extended subset of the SQL standard, including transactions, foreign keys, subqueries, triggers, user-defined types and functions.

Microsoft SQL Server

Microsoft SQL Server

Microsoft® SQL Server is a database management and analysis system for e-commerce, line-of-business, and data warehousing solutions.

SQLite

SQLite

SQLite is an embedded SQL database engine. Unlike most other SQL databases, SQLite does not have a separate server process. SQLite reads and writes directly to ordinary disk files. A complete SQL database with multiple tables, indices, triggers, and views, is contained in a single disk file.

Cassandra

Cassandra

Partitioning means that Cassandra can distribute your data across multiple machines in an application-transparent matter. Cassandra will automatically repartition as machines are added and removed from the cluster. Row store means that like relational databases, Cassandra organizes data by rows and columns. The Cassandra Query Language (CQL) is a close relative of SQL.

Memcached

Memcached

Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.

MariaDB

MariaDB

Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry. MariaDB is designed as a drop-in replacement of MySQL(R) with more features, new storage engines, fewer bugs, and better performance.

RethinkDB

RethinkDB

RethinkDB is built to store JSON documents, and scale to multiple machines with very little effort. It has a pleasant query language that supports really useful queries like table joins and group by, and is easy to setup and learn.

Related Comparisons

Bootstrap
Materialize

Bootstrap vs Materialize

Laravel
Django

Django vs Laravel vs Node.js

Bootstrap
Foundation

Bootstrap vs Foundation vs Material UI

Node.js
Spring Boot

Node.js vs Spring-Boot

Liquibase
Flyway

Flyway vs Liquibase