# techfort/LokiJS

javascript embeddable / in-memory database

Repository: https://github.com/techfort/LokiJS
Canonical: https://ross.abutalabs.com/products/lokijs
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2023-06-22T14:01:04+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4787, "days_push": 1168, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6826, forks 477 (observed 2026-08-28T04:09:48.877081+00:00)

## What it is
LokiJS is a fast, embeddable, in-memory document-oriented NoSQL database written in JavaScript. It stores JavaScript objects as documents with indexing and dynamic views, and runs in browsers, Node.js, and mobile/hybrid environments like Cordova and NativeScript.

## Use cases
- embed an in-memory document database in a node app
- store session data client-side in the browser
- persist data offline in a cordova/phonegap mobile app
- query javascript object collections with indexes and views
- build a desktop app with a local nosql store
- sync in-browser data back to a server at end of session

## When to choose
- you need a fast embedded NoSQL store for JavaScript objects without a separate database server
- you're building browser, Electron, or hybrid mobile apps needing client-side persistence
- your dataset fits in memory and you need high-throughput reads/writes with indexing

## When to avoid
- you need a durable, multi-client server database with concurrent writes
- your data exceeds available memory
- you need advanced SQL features or strong ACID guarantees across processes

## Facets
- artifact type: library
- maturity: maintenance
- function: database, caching, serialization
- domain: databases, web-development, developer-tools
- platform: browser, cross-platform
- tags: nosql, in-memory-database, document-oriented, embedded-database, javascript, offline-sync, indexeddb, nodejs, mobile, desktop

## Member repositories
- techfort/LokiJS (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:48.877081+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:41:54.113344+00:00, confidence not recorded.
  - readme: https://github.com/techfort/LokiJS (fetched 2026-08-28T04:09:48.877081+00:00, sha 12271301117d)
  - registry_npm: https://registry.npmjs.org/lokijs (fetched 2026-08-29T08:38:19.194955+00:00, sha 3d0302355692)
- Data as of 2026-08-30T08:39:29.467469+00:00.
