{"id":27643289,"url":"https://github.com/matrixorigin/matrixkv","last_synced_at":"2026-03-07T08:34:11.653Z","repository":{"id":41061336,"uuid":"447878327","full_name":"matrixorigin/matrixkv","owner":"matrixorigin","description":"This is a distributed kv project to demonstrate how to use matrixcube","archived":false,"fork":false,"pushed_at":"2022-09-08T11:29:38.000Z","size":54,"stargazers_count":17,"open_issues_count":3,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-14T13:03:53.726Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/matrixorigin.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":"2022-01-14T07:25:28.000Z","updated_at":"2024-03-09T16:41:13.000Z","dependencies_parsed_at":"2022-07-14T07:10:30.059Z","dependency_job_id":null,"html_url":"https://github.com/matrixorigin/matrixkv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/matrixorigin/matrixkv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrixorigin%2Fmatrixkv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrixorigin%2Fmatrixkv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrixorigin%2Fmatrixkv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrixorigin%2Fmatrixkv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matrixorigin","download_url":"https://codeload.github.com/matrixorigin/matrixkv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrixorigin%2Fmatrixkv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30209951,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T05:23:27.321Z","status":"ssl_error","status_checked_at":"2026-03-07T05:00:17.256Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-04-24T00:12:16.916Z","updated_at":"2026-03-07T08:34:11.633Z","avatar_url":"https://github.com/matrixorigin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Matrixkv\nThis is a distributed kv project to demonstrate how to use matrixcube.\n\n### Build docker image\n```bash\nmake docker\n```\n\n### Prepare local data dir\n```bash\nmkdir -p /data/node0\nmkdir -p /data/node1\nmkdir -p /data/node2\nmkdir -p /data/node3\n```\n\n### Run with docker-compose\n```bash\ndocker-compose up\n```\n\n### Set on any node\n```bash\ncurl -X POST  -H 'Content-Type: application/json' -d '{\"key\":\"k1\",\"value\":\"v1\"}' http://127.0.0.1:8080/set\n\ncurl -X POST  -H 'Content-Type: application/json' -d '{\"key\":\"k2\",\"value\":\"v2\"}' http://127.0.0.1:8081/set\n\ncurl -X POST  -H 'Content-Type: application/json' -d '{\"key\":\"k3\",\"value\":\"v3\"}' http://127.0.0.1:8082/set\n```\n\n\n### Get on any node\n```bash\ncurl http://127.0.0.1:8080/get?key=k1\ncurl http://127.0.0.1:8081/get?key=k1\ncurl http://127.0.0.1:8082/get?key=k1\n\ncurl http://127.0.0.1:8080/get?key=k2\ncurl http://127.0.0.1:8081/get?key=k2\ncurl http://127.0.0.1:8082/get?key=k2\n\ncurl http://127.0.0.1:8080/get?key=k3\ncurl http://127.0.0.1:8081/get?key=k3\ncurl http://127.0.0.1:8082/get?key=k3\n```\n\n### Delete on any node\n```bash\ncurl -X POST  -H 'Content-Type: application/json' -d '{\"key\":\"k1\"}' http://127.0.0.1:8080/delete\n\ncurl -X POST  -H 'Content-Type: application/json' -d '{\"key\":\"k2\"}' http://127.0.0.1:8081/delete\n\ncurl -X POST  -H 'Content-Type: application/json' -d '{\"key\":\"k3\"}' http://127.0.0.1:8082/delete\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatrixorigin%2Fmatrixkv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatrixorigin%2Fmatrixkv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatrixorigin%2Fmatrixkv/lists"}