{"repo":"cross-org/kv","free":true,"listed":false,"github":"https://github.com/cross-org/kv","clone":"git clone https://github.com/cross-org/kv.git","description":"A fast, lightweight, powerful and cross-platform key-value database for Node.js, Deno, and Bun.","language":"TypeScript","stars":50,"topics":["bun","database","deno","javascript","kv","node","nosql","typescript"],"license":"MIT","category":"databases-storage","readme_excerpt":"@cross/kv A fast, lightweight, powerful and cross-platform key-value database for Node.js, Deno, and Bun. Library usage: Command line client ckv : Features - Cross-Platform & Multi-Process: Built with pure TypeScript for seamless compatibility across Node.js, Deno, and Bun, with built-in support for concurrent access by multiple processes. - Powerful: Supports hierarchical keys, flexible mid-key range queries, and real-time data change notifications through .watch() . - Simple and Fast: Lightweight and performant storage with an in-memory index for efficient data retrieval. - Durable: Ensures data integrity and reliability by storing each database as a single, append-only transaction ledger. - Type-Safe: Leverages TypeScript generics for enhanced type safety when setting and retrieving values. - Atomic Transactions: Guarantees data consistency by grouping multiple operations into indivisible units, which also improves performance. - Flexible: Store any serializable JavaScript object (except functions and WeakMaps), and customize synchronization behavior to optimize for your specific use case. Installation Library: Command line client ckv : API Documentation Methods - KV(options) - Main class. Options are optional. - async open(filepath, createIfMissing = true, ignoreReadErrors = false) - Opens the KV store at the specified file path, creating it if it doesn't exist (default behavior). - async set (key, value) - Stores a value associated with the given key. - async delete(key)","default_branch":null,"files":null,"tree":[],"storefront":"/r/cross-org","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cross-org/kv/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."}