{"id":26249318,"url":"https://github.com/alexstevovich/chabrador","last_synced_at":"2025-06-23T17:09:30.924Z","repository":{"id":294557961,"uuid":"948093860","full_name":"alexstevovich/chabrador","owner":"alexstevovich","description":"[Node.js] A key-incrementer database with persistent memory across process resets.","archived":false,"fork":false,"pushed_at":"2025-03-13T18:43:46.000Z","size":95,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-21T01:59:43.773Z","etag":null,"topics":["database","logging","memory","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexstevovich.png","metadata":{},"created_at":"2025-03-13T18:32:05.000Z","updated_at":"2025-03-13T18:44:31.000Z","dependencies_parsed_at":"2025-05-26T00:30:30.854Z","dependency_job_id":null,"html_url":"https://github.com/alexstevovich/chabrador","commit_stats":null,"previous_names":["alexstevovich/chabrador"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/alexstevovich/chabrador","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexstevovich%2Fchabrador","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexstevovich%2Fchabrador/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexstevovich%2Fchabrador/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexstevovich%2Fchabrador/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexstevovich","download_url":"https://codeload.github.com/alexstevovich/chabrador/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexstevovich%2Fchabrador/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261405788,"owners_count":23153622,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","logging","memory","nodejs"],"created_at":"2025-03-13T15:21:46.741Z","updated_at":"2025-06-23T17:09:30.871Z","avatar_url":"https://github.com/alexstevovich.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chabrador\n\n![Stella](res/stella.jpg)\n\n\u003cbr\u003e\n\n**Chabrador** is a **key-incrementer database** with persistent memory across process resets.\n\n## Features\n\n- **In-Memory Data Handling** – Memory persists when process resets.\n- **Overflow Protection** – Limits can be applied to stop theoretical endless growth.\n\n## Installation\n\n```bash\nnpm install chabrador\n```\n\n## Usage\n\n```js\nimport { adopt } from 'chabrador';\n\nconst chabrador = await adopt({\n    filePath: 'data.json',\n    backupInterval: 600000, // 10 minutes\n    maxEntries: 100000,\n    logger: console,\n});\n\nchabrador.boop('unique-id');\n```\n\n## API\n\n### boop(id: string)\n\nIncrements a key value by 1 If the key exists otherwise it creates a new entry set at 0. The timestamp of the last boop is recorded.\n\n### adopt()\n\nCreates a new Chabrador instance and initializes memory from a file.\n\n## Development Homepage:\n\n[https://github.com/alexstevovich/chabrador](https://github.com/alexstevovich/chabrador)\n\n_This link might become chabrador-node in the future if conflicts arise._\n\n## License\n\nLicensed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexstevovich%2Fchabrador","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexstevovich%2Fchabrador","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexstevovich%2Fchabrador/lists"}