{"id":47878300,"url":"https://github.com/behdanisohrab/kstore","last_synced_at":"2026-04-04T01:36:51.497Z","repository":{"id":286182402,"uuid":"960637975","full_name":"behdanisohrab/kstore","owner":"behdanisohrab","description":"This is a lightweight key-value store server implemented in Rust. It provides basic CRUD operations (Create, Read, Delete) and persists data to a file. The server runs over TCP and handles HTTP-like requests.","archived":false,"fork":false,"pushed_at":"2025-12-16T17:08:02.000Z","size":75,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-04T01:36:47.287Z","etag":null,"topics":["actix","kv-store","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/behdanisohrab.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":"2025-04-04T19:30:48.000Z","updated_at":"2026-02-19T17:52:41.000Z","dependencies_parsed_at":"2025-04-04T20:31:00.013Z","dependency_job_id":"926ec78d-4609-47b3-8303-e834d57e1641","html_url":"https://github.com/behdanisohrab/kstore","commit_stats":null,"previous_names":["behdanisohrab/kstore"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/behdanisohrab/kstore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behdanisohrab%2Fkstore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behdanisohrab%2Fkstore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behdanisohrab%2Fkstore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behdanisohrab%2Fkstore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/behdanisohrab","download_url":"https://codeload.github.com/behdanisohrab/kstore/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behdanisohrab%2Fkstore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31384845,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T01:22:39.193Z","status":"ssl_error","status_checked_at":"2026-04-04T01:22:33.970Z","response_time":107,"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":["actix","kv-store","rust"],"created_at":"2026-04-04T01:36:50.734Z","updated_at":"2026-04-04T01:36:51.480Z","avatar_url":"https://github.com/behdanisohrab.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Key-Value Store in Rust\n\nThis is a lightweight key-value store server implemented in Rust. It provides basic CRUD operations (Create, Read, Delete) and persists data to a file. The server runs over TCP and handles HTTP-like requests.\n\n## Features\n\n- Operations: Supports SET (via PUT), GET, and DELETE.\n- Persistence: Stores data in a file named kvstore.db.\n- Concurrency: Thread-safe using Mutex and Arc for handling multiple requests.\n- Dynamic: No hard limits on key/value sizes, with efficient memory management via HashMap.\n\n## How It Works\n\n1. The store loads existing data from kvstore.db on startup.\n2. Data is kept in memory in a HashMap and synced to the file on each SET or DELETE.\n3. Deletion is implemented by writing an empty value for the key.\n\n## Usage\n\nRun the Server:\n\n```bash\n\n    cargo run\n\n    The server starts at http://127.0.0.1:8080.\n    Interact with the Server:\n        Get a value: curl http://127.0.0.1:8080/kv/mykey\n        Set a value: curl -X POST -d \"myvalue\" http://127.0.0.1:8080/kv/mykey\n        Update a value: curl -X PUT -d \"myvalue\" http://127.0.0.1:8080/kv/mykey\n        Delete a key: curl -X DELETE http://127.0.0.1:8080/kv/mykey\n```\n\nFile Format\n\n- Each entry: `[key_size (8 bytes)][value_size (8 bytes)][key][value].`\n- Deletion: Marked by a zero-length value.\n\nRequirements\n\n- Rust (latest stable version recommended).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbehdanisohrab%2Fkstore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbehdanisohrab%2Fkstore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbehdanisohrab%2Fkstore/lists"}