{"id":22100401,"url":"https://github.com/homuchen/leveldb-tcp-server","last_synced_at":"2026-05-07T05:36:16.300Z","repository":{"id":52483405,"uuid":"260144926","full_name":"HoMuChen/leveldb-tcp-server","owner":"HoMuChen","description":"A redis compatible protocal levelDB tcp server.","archived":false,"fork":false,"pushed_at":"2021-04-27T18:11:40.000Z","size":15,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T08:50:59.434Z","etag":null,"topics":["database","level","leveldb","nodejs","redis","redis-protocol","tcp-server"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/leveldb-tcp-server","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HoMuChen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-30T07:39:20.000Z","updated_at":"2020-07-31T10:12:58.000Z","dependencies_parsed_at":"2022-09-17T20:20:38.252Z","dependency_job_id":null,"html_url":"https://github.com/HoMuChen/leveldb-tcp-server","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/HoMuChen%2Fleveldb-tcp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HoMuChen%2Fleveldb-tcp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HoMuChen%2Fleveldb-tcp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HoMuChen%2Fleveldb-tcp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HoMuChen","download_url":"https://codeload.github.com/HoMuChen/leveldb-tcp-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245195916,"owners_count":20575936,"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","level","leveldb","nodejs","redis","redis-protocol","tcp-server"],"created_at":"2024-12-01T05:13:57.673Z","updated_at":"2026-05-07T05:36:16.234Z","avatar_url":"https://github.com/HoMuChen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# leveldb-tcp-server\n\nA redis compatible protocal levelDB tcp server\n\n## Usage\n\n    $ npm install leveldb-tcp-server\n\n```javascript\nconst Server = require('leveldb-tcp-server');\n\nconst server = new Server({\n  port: 2407,\n  dbPath: './test'\n})\n\nserver.run();\n\n```\n\nor \n\n    $ git clone https://github.com/HoMuChen/leveldb-tcp-server.git\n    $ cd leveldb-tcp-server\n    $ npm run start\n\nthis script will default run a server listening on port \u003cb\u003e2407\u003c/b\u003e and create a directory \u003cb\u003etest\u003c/b\u003e for the leveldb data.\n\n## Client access\n\nApplication protocal is compatible with redis protocal, so we can use redis client library to access db.\n\n```javascript\nconst redis = require('redis')\n\nconst client = redis.createClient({ port: 2407 });\n\nclient.set(\"key\", \"123\", (err, result) =\u003e {\n  client.get(\"key\", (err, result) =\u003e {\n    console.log(result)\n  });\n});\n```\n\nFor now, I only implement the \u003cb\u003eget\u003c/b\u003e, \u003cb\u003eset\u003c/b\u003e and \u003cb\u003edel\u003c/b\u003e command.\n\n## Author\n\nHoMuchen - b98901052@ntu.edu.tw\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhomuchen%2Fleveldb-tcp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhomuchen%2Fleveldb-tcp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhomuchen%2Fleveldb-tcp-server/lists"}