{"id":34119718,"url":"https://github.com/zeidlitz/kvdbstore","last_synced_at":"2026-03-12T15:04:38.218Z","repository":{"id":189100540,"uuid":"654895952","full_name":"zeidlitz/kvdbstore","owner":"zeidlitz","description":"HTTP server that can persistently store and retrieve key-value pairs.","archived":false,"fork":false,"pushed_at":"2024-04-04T19:51:31.000Z","size":12603,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-13T20:30:15.850Z","etag":null,"topics":["api","go","golang","http","http-server","key-value","server","sqlite3","storage"],"latest_commit_sha":null,"homepage":"","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/zeidlitz.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-17T09:05:46.000Z","updated_at":"2023-12-27T14:11:18.000Z","dependencies_parsed_at":"2024-01-02T20:22:52.693Z","dependency_job_id":"4a42cf8d-2b32-4cc3-8d84-40a3dcc83322","html_url":"https://github.com/zeidlitz/kvdbstore","commit_stats":null,"previous_names":["icooktacos/gopt","icooktacos/gottp","icooktacos/kvdbstore"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/zeidlitz/kvdbstore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeidlitz%2Fkvdbstore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeidlitz%2Fkvdbstore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeidlitz%2Fkvdbstore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeidlitz%2Fkvdbstore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeidlitz","download_url":"https://codeload.github.com/zeidlitz/kvdbstore/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeidlitz%2Fkvdbstore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30429337,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T14:34:45.044Z","status":"ssl_error","status_checked_at":"2026-03-12T14:09:33.793Z","response_time":114,"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":["api","go","golang","http","http-server","key-value","server","sqlite3","storage"],"created_at":"2025-12-14T21:17:32.086Z","updated_at":"2026-03-12T15:04:38.211Z","avatar_url":"https://github.com/zeidlitz.png","language":"Go","readme":"## 📬  kvdbstore\nHTTP server that can persistently store and retrieve key-value pairs. Exposes a resftull API to interact with stored values and to store new key-value pairs.\n\n\n## TODO:\n\n1. Create a interface for storage\n\n2. Setup some unit tests \n\n3. Refactor everything regarding err handling\n\n## Configuration\nAll configuration is specified in config.yaml\n\n```yaml\nserver:\n  port: \"8090\"\n  host: \"localhost\"\n```\n\n## Running kvdbstore\n\n### Natively using go\n\nentry point resides under cmd/main/main.go, you can chose to run directly towards main.go\n\n\n```bash\ngo run cmd/main/main.go\n```\n\nor to build a binary\n```bash\ngo build cmd/main/main.go\n./main.go\n```\n\nor using any containerization tool towards Containerfile, (example with podman)\n```bash\npodman build .\npodman run -it \u003cCONTAINER-ID\u003e\n```\n\n## Endpoints\nConfigure the host and port you wish to run the server on. Below examplees assumes localhost and 8090.\n\n### /api/status\nEnsures basic functionality and can be used to test connectivity. Returns a 200 OK response on request.\n\nCall:\n```bash\ncurl localhost:8090/api/status\n```\n\nResponse:\n```json\n{\"data\":\"\\n\",\"status\":\"200 OK\\n\"}\n```\n\n### /api/ POST\nStore a key-value pair. Asumes a data payload with key and value, see data.json below as example. Returns a 200 OK response and the key-value pair after successfull storeage.\n\nCall:\n```bash\ncurl -X POST -H \"Content-Type: application/json\" -d @data.json http://localhost:8090/api/some_key\n```\n\ndata.json:\n```json\n{ \"value\" : \"some_value\" }\n```\n\nResponse:\n```json\n{\"some_key\":\"some_value\",\"status\":\"200 OK\"}\n```\n\n### /api/ GET\nList the value for a given key. Returns a 200 OK response and the value of the corresponding key.\n\nCall:\n```bash\ncurl localhost:8090/api/list/some_key\n```\n\nResponse:\n```json\n{\"data\":\"some_value\",\"status\":\"200 OK\"}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeidlitz%2Fkvdbstore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeidlitz%2Fkvdbstore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeidlitz%2Fkvdbstore/lists"}