Miningo is a tiny, embeddable, document-oriented database written in TypeScript, designed for playgrounds, experimental projects, or simple applications where a full database like MongoDB or PostgreSQL is overkill. Current stable version is 1.1.0, released in 2018. It supports in-memory, persistent JSON file, fast persistent storage, and browser localStorage adapters. It provides a MongoDB-like collection API with CRUD operations and basic querying (no operators). Key differentiator: simple setup, zero configuration, lightweight (single dependency), and TypeScript-first with JSON Schema validation support.
npm install miningoNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating an in-memory database, inserting a document, finding by ID, listing all, and dropping a collection.
Use `const miningo = require('miningo').default`Use only simple equality checks: { field: value }Call miningo() without arguments for in-memory mode
Use FastStorageAdapter for better write performance
const miningo = require('miningo').defaultUse import InMemoryAdapter from 'miningo/adapters/InMemoryAdapter'
Pass a new adapter instance: miningo(new InMemoryAdapter())
Use LocalStorageAdapter from 'miningo/adapters/LocalStorageAdapter'