{"repo":"chronoDave/leaf-db","free":true,"listed":false,"github":"https://github.com/chronoDave/leaf-db","clone":"git clone https://github.com/chronoDave/leaf-db.git","description":"Simple, small and embeddable NoSQL database for Node.js.","language":"TypeScript","stars":12,"topics":["nodejs","javascript","database","embedded","file-based","persistence","typescript","es6","nosql"],"license":"GPL-3.0","category":"databases-storage","readme_excerpt":"leaf-db leaf-db is a simple NoSQL embeddable database. Features - Strong-typed documents and queries. - Easy to embed as it does not require an HTTP server to run. - Can be used in the browser if persistent storage isn't required. - Uses JSON documents. - Tiny and 0 dependencies. Table of Contents - Getting started - Concepts - Document - Keys - Values - Persistence - Corruption - Queries - Operators - Number - $gt - $gte - $lt - $lte - String - $regexp - Array - $length - $includes - Logic - $not - $and - $or - API - id() - docs - open() - close() - get() - insert() - query() - update() - delete() - drop() Getting Started leaf-db is meant as a simple database that allows for basic querying over JSON data without needing to set up a database server / connection like with MongoDB or SQLite. Node does support working with SQLite directly, if you prefer a more stable, feature-complete database. leaf-db can be used in the browser if persistent read / write isn't required. Installation Example Create a database using file storage with strong-typed documents: Concepts Document Leaf-db stores data as JSON documents and saves them inside a JSONL file. Keys Document keys must be of type string and cannot start with $ . Every document is required to have an id field. Leaf-db automatically creates an id if the field does not exist on insertion. id is required to be unique when inserting documents. Values Leaf-db only supports JSON values, which is defined as: Persistence Leaf-db stores ","default_branch":null,"files":null,"tree":[],"storefront":"/r/chronoDave","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/chronoDave/leaf-db/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}