Need advice about which tool to choose?Ask the StackShare community!

LokiJS

26
46
+ 1
3
Sequelize

719
1.3K
+ 1
123
Add tool

LokiJS vs Sequelize: What are the differences?

Developers describe LokiJS as "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. On the other hand, Sequelize is detailed as "Easy-to-use multi sql dialect ORM for Node.js & io.js". Sequelize is a promise-based ORM for Node.js and io.js. It supports the dialects PostgreSQL, MySQL, MariaDB, SQLite and MSSQL and features solid transaction support, relations, read replication and more.

LokiJS belongs to "In-Memory Databases" category of the tech stack, while Sequelize can be primarily classified under "Object Relational Mapper (ORM)".

LokiJS and Sequelize are both open source tools. It seems that Sequelize with 18.9K GitHub stars and 2.99K forks on GitHub has more adoption than LokiJS with 4.91K GitHub stars and 387 GitHub forks.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of LokiJS
Pros of Sequelize
  • 3
    Can query the objects directly
  • 36
    Good ORM for node.js
  • 26
    Easy setup
  • 16
    Support MySQL & MariaDB, PostgreSQL, MSSQL, Sqlite
  • 13
    Open source
  • 12
    Free
  • 11
    Promise Based
  • 4
    Recommend for mongoose users
  • 3
    Atrocious documentation, buggy, issues closed by bots
  • 2
    Typescript

Sign up to add or upvote prosMake informed product decisions

Cons of LokiJS
Cons of Sequelize
    Be the first to leave a con
    • 28
      Docs are awful
    • 8
      Relations can be confusing

    Sign up to add or upvote consMake informed product decisions

    What is LokiJS?

    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 Sequelize?

    Sequelize is a promise-based ORM for Node.js and io.js. It supports the dialects PostgreSQL, MySQL, MariaDB, SQLite and MSSQL and features solid transaction support, relations, read replication and more.

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use LokiJS?
    What companies use Sequelize?
    See which teams inside your own company are using LokiJS or Sequelize.
    Sign up for StackShare EnterpriseLearn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with LokiJS?
    What tools integrate with Sequelize?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    What are some alternatives to LokiJS and Sequelize?
    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.
    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.
    Pouchdb
    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.
    NeDB
    Embedded persistent or in memory database for Node.js, nw.js, Electron and browsers, 100% JavaScript, no binary dependency. API is a subset of MongoDB's and it's plenty fast.
    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.
    See all alternatives