{"id":13825971,"url":"https://github.com/hyperdivision/tinybox","last_synced_at":"2025-07-08T22:33:08.155Z","repository":{"id":65516655,"uuid":"196529095","full_name":"hyperdivision/tinybox","owner":"hyperdivision","description":"Tiny, single file, scalable key value store based on HAMTs","archived":false,"fork":false,"pushed_at":"2019-07-17T09:23:28.000Z","size":11,"stargazers_count":53,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-09T10:11:59.376Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyperdivision.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-12T07:18:00.000Z","updated_at":"2022-02-04T08:27:11.000Z","dependencies_parsed_at":"2023-01-26T22:25:12.956Z","dependency_job_id":null,"html_url":"https://github.com/hyperdivision/tinybox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperdivision%2Ftinybox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperdivision%2Ftinybox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperdivision%2Ftinybox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperdivision%2Ftinybox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperdivision","download_url":"https://codeload.github.com/hyperdivision/tinybox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225470631,"owners_count":17479366,"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":[],"created_at":"2024-08-04T09:01:30.109Z","updated_at":"2024-11-20T04:31:07.536Z","avatar_url":"https://github.com/hyperdivision.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# tinybox\n\nTiny, single file, scalable key value store based on HAMTs\n\n```\nnpm install tinybox\n```\n\nUses the [Hypertrie](https://github.com/mafintosh/hypertrie) trie without the replication parts,\nand auto compacts.\n\nStill under development but the storage format should be stable. Upcoming features include batching,\ndeletions and getting all values out of the store.\n\n## Usage\n\n``` js\nconst TinyBox = require('tinybox')\n\nconst db = new TinyBox('./db')\n\ndb.put('hello', 'world', function () {\n  db.get('hello', console.log)\n})\n```\n\n## API\n\n#### `db = new TinyBox(storage)`\n\nCreate a new tiny store. Storage can be any [random-access-storage](https://github.com/random-access-storage) instance.\nFor conveinience you can pass a filename as storage as well.\n\n#### `db.get(key, callback)`\n\nLooks up a value. Key can be a buffer or string. If the key does not exist null is passed, otherwise\nthe a Node object looking like this:\n\n```js\n{\n  key: \u003ckey as a buffer\u003e,\n  value: \u003cvalue stored\u003e\n}\n```\n\n#### `db.put(key, [value], [callback])`\n\nInsert a key and optional value.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperdivision%2Ftinybox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperdivision%2Ftinybox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperdivision%2Ftinybox/lists"}