{"repo":"typicode/lowdb","free":true,"listed":false,"github":"https://github.com/typicode/lowdb","clone":"git clone https://github.com/typicode/lowdb.git","description":"Simple and fast JSON database","language":"JavaScript","stars":22570,"topics":["database","lodash","nodejs","localstorage","electron","json","embedded-database","embeddable","javascript","storage"],"license":"MIT","category":"databases-storage","readme_excerpt":"lowdb Simple to use type-safe local JSON database 🦉 If you know JavaScript, you know how to use lowdb. Read or create db.json Use plain JavaScript to change data In the same spirit, query using native Array functions: It's that simple. db.data is just a JavaScript object, no magic. Sponsors Become a sponsor and have your company logo here 👉 GitHub Sponsors Features - Lightweight - Minimalist - TypeScript - Plain JavaScript - Safe atomic writes - Hackable: - Change storage, file format (JSON, YAML, ...) or add encryption via adapters - Extend it with lodash, ramda, ... for super powers! - Automatically switches to fast in-memory mode during tests Install Usage Lowdb is a pure ESM package. If you're having trouble using it in your project, please read this. TypeScript You can use TypeScript to check your data types. Lodash You can extend lowdb with Lodash (or other libraries). To be able to extend it, we're not using JSONPreset here. Instead, we're using lower components. CLI, Server, Browser and in tests usage See src/examples/ directory. API Presets Lowdb provides four presets for common cases. - JSONFilePreset(filename, defaultData) - JSONFileSyncPreset(filename, defaultData) - LocalStoragePreset(name, defaultData) - SessionStoragePreset(name, defaultData) See src/examples/ directory for usage. Lowdb is extremely flexible, if you need to extend it or modify its behavior, use the classes and adapters below instead of the presets. Classes Lowdb has two classes (for asynchron","default_branch":null,"files":null,"tree":[],"storefront":"/r/typicode","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/typicode/lowdb/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."}