{"id":13635013,"url":"https://github.com/joaobortolozzo/node-lsm","last_synced_at":"2025-04-19T03:34:10.838Z","repository":{"id":78684211,"uuid":"42380250","full_name":"gutobortolozzo/node-lsm","owner":"gutobortolozzo","description":"log structured merge tree in pure node.js","archived":false,"fork":false,"pushed_at":"2015-09-16T23:19:33.000Z","size":208,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-02T00:21:50.603Z","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/gutobortolozzo.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":"2015-09-13T02:04:16.000Z","updated_at":"2023-09-01T16:22:54.000Z","dependencies_parsed_at":"2023-03-03T21:36:03.280Z","dependency_job_id":null,"html_url":"https://github.com/gutobortolozzo/node-lsm","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/gutobortolozzo%2Fnode-lsm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gutobortolozzo%2Fnode-lsm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gutobortolozzo%2Fnode-lsm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gutobortolozzo%2Fnode-lsm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gutobortolozzo","download_url":"https://codeload.github.com/gutobortolozzo/node-lsm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223790232,"owners_count":17203351,"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-02T00:00:39.188Z","updated_at":"2025-04-19T03:34:08.685Z","avatar_url":"https://github.com/gutobortolozzo.png","language":"JavaScript","readme":"# WIP\n\n[![Build Status](https://travis-ci.org/gutobortolozzo/node-lsm.svg?branch=master)](https://travis-ci.org/gutobortolozzo/node-lsm)\n\n# LSM, a log-structured-merge-tree, implemented in node.js.\n\n``` js\nvar lsm = Subject('/tmp/example', {\n    threshold : 1000 //optional\n});\n\nlsm.open().then(function(){\n    return lsm.put('#12345', 'hello');\n}).then(function(){\n    return lsm.get('#12345');\n}).then(function(result){\n    console.log('result', result); // hello\n});\n```\n\neverything is just line separated json!\n\n``` js\ncat /tmp/example/log-00000001.json\n```\n\ncontains this.\n\n``` js\n{\"key\":\"hello\",\"value\":\"HI\",\"type\":\"put\"}\n{\"key\":\"what\",\"value\":\"WHO\",\"type\":\"put\"}\n```\n\nput more data in there and you'll get ```SST``` files.\n\n# Features\n\n- ```PUT``` string key/value\n- ```GET``` string key/value\n- ```DEL``` string key/value\n\n# TODO\n\n- Support multiple lsm's opened pointing to the same data folder.\n- All operations promisify\n\n","funding_links":[],"categories":["database"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoaobortolozzo%2Fnode-lsm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoaobortolozzo%2Fnode-lsm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoaobortolozzo%2Fnode-lsm/lists"}