{"id":26270446,"url":"https://github.com/asim/kv","last_synced_at":"2026-03-12T05:38:02.703Z","repository":{"id":37335572,"uuid":"44455032","full_name":"asim/kv","owner":"asim","description":"A distributed in-memory key-value store built using hashicorp/memberlist with HTTP API","archived":false,"fork":false,"pushed_at":"2025-01-30T21:14:11.000Z","size":36,"stargazers_count":144,"open_issues_count":0,"forks_count":30,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-15T04:52:57.890Z","etag":null,"topics":["gossip","hashicorp","key-value","memberlist"],"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/asim.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":"2015-10-17T21:18:38.000Z","updated_at":"2025-07-09T09:49:47.000Z","dependencies_parsed_at":"2025-03-22T04:02:02.096Z","dependency_job_id":"25cb4c06-8c2f-4699-aa5d-798516d7a5ae","html_url":"https://github.com/asim/kv","commit_stats":null,"previous_names":["asim/kv","asim/memberlist","asim/kayvee"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/asim/kv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asim%2Fkv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asim%2Fkv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asim%2Fkv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asim%2Fkv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asim","download_url":"https://codeload.github.com/asim/kv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asim%2Fkv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30416331,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T04:41:02.746Z","status":"ssl_error","status_checked_at":"2026-03-12T04:40:12.571Z","response_time":114,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["gossip","hashicorp","key-value","memberlist"],"created_at":"2025-03-14T06:07:21.555Z","updated_at":"2026-03-12T05:38:02.688Z","avatar_url":"https://github.com/asim.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# KV\n\nA distributed in-memory key-value store built using [hashicorp/memberlist](https://github.com/hashicorp/memberlist) with HTTP API\n\n## Install\n\n```shell\ngo get github.com/asim/kv\n```\n\n## Usage\n\n```shell\nkv\n-nodes=\"\": comma seperated list of nodes\n-address=:4001 http server host:port\n```\n\n### Create Cluster\n\nStart first node\n```shell\nkv\n```\n\nMake a note of the local node address\n```\nLocal node 192.168.1.64:60496\nListening on :4001\n```\n\nStart second node with first node as part of the nodes list\n```shell\nkv --nodes=192.168.1.64:60496 --address=:4002\n```\n\nYou should see the output\n```\n2015/10/17 22:13:49 [DEBUG] memberlist: Initiating push/pull sync with: 192.168.1.64:60496\nLocal node 192.168.1.64:60499\nListening on :4002\n```\n\nFirst node output will log the new connection\n```shell\n2015/10/17 22:13:49 [DEBUG] memberlist: TCP connection from: 192.168.1.64:60500\n2015/10/17 22:13:52 [DEBUG] memberlist: Initiating push/pull sync with: 192.168.1.64:60499\n```\n\n## HTTP API\n\n- **/get** - get a value\n- **/set** - set a value\n- **/del** - delete a value\n\nQuery params expected are `key` and `val`\n\n```shell\n# add\ncurl \"http://localhost:4001/set?key=foo\u0026val=bar\"\n\n# get\ncurl \"http://localhost:4001/get?key=foo\"\n\n# delete\ncurl \"http://localhost:4001/del?key=foo\"\n```\n\n## HTTP UI\n\nBrowse to `localhost:4001` for a simple web form\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasim%2Fkv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasim%2Fkv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasim%2Fkv/lists"}