{"id":22264321,"url":"https://github.com/imjching/keev","last_synced_at":"2025-09-13T05:41:08.442Z","repository":{"id":77658559,"uuid":"90403703","full_name":"imjching/keev","owner":"imjching","description":"A simple key-value store based on gRPC and protobufs","archived":false,"fork":false,"pushed_at":"2017-05-15T19:03:44.000Z","size":235,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-28T10:47:17.357Z","etag":null,"topics":["database","go","grpc","key-value","protobuf"],"latest_commit_sha":null,"homepage":"","language":"Go","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/imjching.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-05T18:07:26.000Z","updated_at":"2022-05-06T12:32:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"8c6a7433-6d98-45c8-b41c-11c797aa1dc0","html_url":"https://github.com/imjching/keev","commit_stats":null,"previous_names":["imjching/hashdb","imjching/go-kvs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/imjching/keev","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjching%2Fkeev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjching%2Fkeev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjching%2Fkeev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjching%2Fkeev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imjching","download_url":"https://codeload.github.com/imjching/keev/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjching%2Fkeev/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274921247,"owners_count":25374231,"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","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","go","grpc","key-value","protobuf"],"created_at":"2024-12-03T10:08:31.895Z","updated_at":"2025-09-13T05:41:08.389Z","avatar_url":"https://github.com/imjching.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## keev\n\nkeev is a simple key-value store built on top of hash tables using Go. Clients communicate with the server using gRPC and Google Protocol Buffers (protobufs). Data persist to disk and saving occurs every 5 minutes.\n\n## Architecture\n\nHigh-level overview:\n\n                 ┌ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┐\n                                      Clients\n                 └ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┘\n                                        ▲\n                                        │\n                                        │ Google Protocol Buffers\n                                        │\n                                        ▼\n                 ┌───────────────────────────────────────────────┐\n                 │                    gRPC                       │\n                 └───────────────────────────────────────────────┘\n                 ┌───────────────────────────────────────────────┐\n                 │                 RAM or disk                   │\n                 └───────────────────────────────────────────────┘\n\nDatabase current accepts the following commands:\n- SET key value (valid if key is not present)\n- UPDATE key value (valid if key is present)\n- HAS key\n- UNSET key\n- GET key\n- COUNT\n- SHOW KEYS\n- SHOW DATA\n- SHOW NAMESPACES\n- USE namespace\n\nRestrictions:\n* Both `key` and `value` cannot contain spaces.\n* `key` cannot contain dots.\n* Only alphanumeric characters are allowed for `namespace`\n\n## Usage\n\n1. Generate certificates for RPC: `go run generate_cert.go --host=localhost`\n\n2. Change `JWTSigningToken` in `common/jwt.go`.\n\n3. Define a list of users in `data/users.json`.\n    Sample:\n    ```json\n    [\n      {\n        \"username\": \"admin\",\n        \"password\": \"admin123\",\n        \"perms\": [\"ADMIN\"]\n      },\n      {\n        \"username\": \"user\",\n        \"password\": \"user123\",\n        \"perms\": []\n      }\n    ]\n    ```\n\nServer: `./server`\nClient: `./client --username=\"user\" --password=\"user123\"`\n\n## Program\n\n### Server\n![server.png](server.png)\n\n### Client\n![client.png](client.png)\n\n## Future work?\n- [ ] Permissions for users\n- [ ] Tests\n- [ ] Logs\n- [ ] Own SQL-like syntax with lexer and parser\n- [ ] Transactions\n- [ ] Support for various types: numbers, etc.\n- [ ] Drivers for other languages\n- [ ] Scaling/fault-tolerant system using Raft/Paxos\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimjching%2Fkeev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimjching%2Fkeev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimjching%2Fkeev/lists"}