# mWater/minimongo

Client-side in-memory mongodb backed by localstorage with server sync over http

Repository: https://github.com/mWater/minimongo
Canonical: https://ross.abutalabs.com/products/minimongo
Language: TypeScript
License: LGPL-3.0
License Family: copyleft
Last push: 2026-05-09T00:37:57+00:00

## Health v2 (maintenance only)
Score: 69/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 81, release rhythm 35, longevity 100
- inputs: {"age_days": 4625, "days_push": 117, "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 1212, forks 131 (observed 2026-08-28T04:04:00.237374+00:00)

## What it is
Minimongo is a client-side in-memory MongoDB clone for JavaScript/TypeScript with pluggable storage backends (Memory, LocalStorage, IndexedDB, WebSQL, SQLite). It supports hybrid local/remote synchronization over HTTP, replication, EJSON, and geospatial queries.

## Use cases
- offline-first web app with local database and server sync
- query client-side data with MongoDB-like syntax
- cache server data in the browser with IndexedDB
- sync pending local edits to a REST API
- run geospatial queries like $near in the browser
- replicate data between local and remote database instances

## When to choose
- you want a MongoDB-style query API entirely client-side
- you need offline persistence with automatic sync to a server
- you want multiple swappable storage backends (memory, IndexedDB, WebSQL, SQLite)
- you need geospatial queries ($near, $geoIntersects) in the browser

## When to avoid
- you need a full MongoDB server with server-side aggregation pipelines
- you need multi-user real-time conflict resolution beyond simple base-document resolution
- you are not using JavaScript/TypeScript in a browser or Node environment

## Facets
- artifact type: library
- maturity: active
- function: database, orm, caching, serialization
- domain: databases, web-development, frontend
- platform: browser
- tags: mongodb, offline-first, localstorage, indexeddb, websql, client-side-database, data-sync, geospatial-queries, ejson, replication, nodejs, javascript, typescript

## Member repositories
- mWater/minimongo (main) score 69

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:00.237374+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-30T06:18:00.663127+00:00, confidence not recorded.
  - readme: https://github.com/mWater/minimongo (fetched 2026-08-28T04:04:00.237374+00:00, sha 12f0fcd4b76d)
  - registry_npm: https://registry.npmjs.org/minimongo (fetched 2026-08-29T12:25:56.669113+00:00, sha b3b2a5ffc277)
- Data as of 2026-08-30T08:39:29.467469+00:00.
