{"repo":"alexberriman/newtondb","free":true,"listed":false,"github":"https://github.com/alexberriman/newtondb","clone":"git clone https://github.com/alexberriman/newtondb.git","description":"A simple, easy to use and extendible JSON database.","language":"TypeScript","stars":18,"topics":["json","database","json-db","local-database","json-database","document-database","in-memory-database","javascript","typescript"],"license":"MIT","category":"databases-storage","readme_excerpt":"NewtonDB A tiny JSON database with unusually serious correctness. Typed collections · immutable reads · serializable queries · atomic transactions · honest durability NewtonDB is an embedded, TypeScript-native document database for applications whose working set fits in memory. It has no runtime dependencies and no server to operate. The core is platform-neutral; newtondb/node adds a crash-qualified JSON-file adapter for Linux local filesystems. This is a clean semantic-major redesign. It chooses a narrow contract and proves it with property models, transaction histories, named fault injection, real process-death recovery, API snapshots, package-consumer tests, mutation checks, and controlled benchmarks. Install NewtonDB is ESM-only and supports Node ^22.13.0 and maintained Node 24+ releases. Sixty-second start Returned documents and arrays are recursively frozen snapshots. Input data is cloned and validated, so application mutation cannot silently corrupt keys or indexes. Atomic transactions Transactions are collection-granular serializable and publish one immutable root. The callback must be synchronous. A conflicting revision rejects without exposing partial records, index changes, revisions, or events. Durable file storage The file adapter locks before load, validates a versioned checksummed envelope, writes and syncs a unique same-directory temporary file, atomically renames it, and syncs the directory. A persisted receipt means storage acknowledged at least that revisio","default_branch":null,"files":null,"tree":[],"storefront":"/r/alexberriman","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/alexberriman/newtondb/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."}