{"library":"json-file-database","type":"library","category":null,"description":"json-file-database is a lightweight, TypeScript-first file-system-based database designed for Node.js projects that don't require the overhead of a traditional database server. It stores data directly in JSON files, abstracting away the complexities of `fs` and `JSON.parse`/`JSON.stringify` operations. The current stable version is 2.0.3, which introduced breaking changes to allow for a customizable primary key beyond just 'id'. The library differentiates itself by offering pure TypeScript support for fewer type-related errors, debounced writes to minimize disk I/O, and `O(log n)` time complexity for data operations through binary search, making it efficient for small to medium-sized datasets. It's suitable for prototyping, small applications, or configuration management where a simple, local persistence layer is preferred.","language":"javascript","status":"active","version":"2.0.3","tags":["javascript","lightweight","node","database","json","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install json-file-database","imports":["import { connect } from 'json-file-database'","import type { ConnectOptions } from 'json-file-database'","import type { CollectionConfig } from 'json-file-database'"]},{"cmd":"yarn add json-file-database","imports":[]},{"cmd":"pnpm add json-file-database","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/json-file-database","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/json-file-database/compatibility"}}