{"id":25843920,"url":"https://github.com/aaryansaraswat/deby","last_synced_at":"2026-04-20T06:10:32.367Z","repository":{"id":256733432,"uuid":"853851511","full_name":"AaryanSaraswat/Deby","owner":"AaryanSaraswat","description":"Deby is a fast and lightweight in-memory data store built with C++. Inspired by Redis, it runs over a TCP socket server.","archived":false,"fork":false,"pushed_at":"2024-09-07T17:59:24.000Z","size":85,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-19T00:47:21.257Z","etag":null,"topics":["backend","cache","database","memory","server"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AaryanSaraswat.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":"security/HMACUtil.cpp","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-07T17:58:23.000Z","updated_at":"2024-09-07T18:00:26.000Z","dependencies_parsed_at":"2024-09-12T20:19:56.505Z","dependency_job_id":"76d8ac43-8676-4339-9182-9b87c4a0af8b","html_url":"https://github.com/AaryanSaraswat/Deby","commit_stats":null,"previous_names":["aaryansaraswat0211/deby","aaryansaraswat/deby"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AaryanSaraswat/Deby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AaryanSaraswat%2FDeby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AaryanSaraswat%2FDeby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AaryanSaraswat%2FDeby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AaryanSaraswat%2FDeby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AaryanSaraswat","download_url":"https://codeload.github.com/AaryanSaraswat/Deby/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AaryanSaraswat%2FDeby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279109911,"owners_count":26105895,"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-10-15T02:00:07.814Z","response_time":56,"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":["backend","cache","database","memory","server"],"created_at":"2025-03-01T07:15:51.679Z","updated_at":"2025-10-15T19:49:23.921Z","avatar_url":"https://github.com/AaryanSaraswat.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deby\n\n  \n\nDeby is a lightweight, high-performance in-memory data store implemented in C++. Inspired by Redis, Deby provides efficient key-value storage with additional features like HMAC signature verification for secure communications. This project was built from the ground up, including features such as chunk-based processing for large data handling and an LRU (Least Recently Used) caching mechanism. The idea is to add more accurate geo-spatial and time series functions.\n\n  \n\n## Features\n\n  \n\n-  **High-Performance Key-Value Storage**: Optimized for speed, made using C++.\n\n-  **Security**: Implements HMAC signature verification on both the server and client to ensure security.\n\n-  **Chunk-Based Processing**: Handles large data transfers by processing data in manageable chunks.\n\n-  **LRU Cache**: Built-in support for Least Recently Used caching to manage memory and enhance performance.\n\n  \n\n## Getting Started\n\n  \n\n### Prerequisites\n\n  \n\nTo build and run Deby, you will need:\n\n  \n\n- A C++ compiler that supports C++11 or later (e.g., GCC, Clang)\n\n- OpenSSL library for secure key generation\n\n- CMake for building the project\n\n  \n\n### Installation\n\n  \n\n1.  **Clone the Repository**\n\n  \n\n```bash\n\ngit clone https://github.com/aaryansaraswat0211/Deby.git\n\ncd Deby\n\n```\n\n  \n\n2.  **Generate a Secure 32-Byte Key Using OpenSSL**\n\n  \n\nDeby requires a secure key for HMAC signature verification. Generate a 32-byte key using OpenSSL:\n\n  \n\n```bash\n\nopenssl rand -base64 32\n\n```\n\n  \n\nCopy the generated key, which will be used in the `config.ini` file.\n\n  \n\n3.  **Create a `config.ini` File**\n\n  \n\nCreate a `config.ini` file in the root directory of the project and add the following configuration:\n\n  \n\n```ini\n\n[settings]\n\nsecret_key = \"your-generated-32-byte-key\"\n\nport = \"8080\"\n\n```\n\n  \n\nReplace `\"your-generated-32-byte-key\"` with the key generated in the previous step.\n\n  \n\n4.  **Build the Project**\n\n  \n\n```bash\n\nmkdir build\n\ncd build\n\ncmake ..\n\nmake\n\n```\n\n  \n\n5.  **Run the Server**\n\n  \n\n```bash\n\n./Deby\n\n```\n\n  \n\n### Configuration\n\n  \n\nThe `config.ini` file is used to configure the server settings and security options. Ensure the paths to your TLS certificate and key files are correct, and update the `secret_key` with the secure key generated earlier.\n\n  \n\n### Usage\n\n  \n\nTo interact with Deby, you can use any framework of your choice. In your native environment, it will run on 127.0.0.1\n\n## COMMANDS:\n\nAs of now, Deby can process key-value data and Geospatial data. Also currently, you need to pass this data through a serializer.\n\n### Key-Value\nDeby can act like a key-value in memory database. You can set and get values by providing their keys. To set keys:\n\n```bash\nSET \u003ckey\u003e \u003cvalue\u003e \u003cduration\u003e\n```\n\nExample:\n\n```bash\nSET name Soumya 200\n```\n\nThis will create a key called 'name' and set it's value to Soumya. The data will be stored for 200 seconds.\n\nSimilarly to find a key,\n```bash\nGET \u003ckey\u003e\n```\nSimilarly to delete a key,\n```bash\nDELETE \u003ckey\u003e\n```\n\n\n### Geo-spatial\nDeby can act like a in memory database to compute geo-spatial data.\n\n```bash\nGEOSET \u003ckey\u003e \u003cvalue\u003e \u003clatitude\u003e \u003clongitude\u003e\n```\n\nExample:\n\n```bash\nGEOSET location1 Kolkata 22.5744 88.3629\n```\n\nThis will create a key called 'location1' and set it's name to \"Kolkata\". The coordinates would be stored as well. The data is stored on a 2-dimensional map. That means, you can add more values to the 'location1' key.\n\nUpcoming commands:\n```bash\nGEOROUTE \nGEODISTANCE \nGEORADIUS \nGEOELEVATION\n```\n\n### Time-Series\nDeby can act like a in memory database to compute time-series data.\n\n## ADDITIONAL INFO:\n\nIf you're interested in contributing to the project, you can just fork the repo. If you're new to open source, check out [how to contribute to a project](https://docs.github.com/en/get-started/exploring-projects-on-github/contributing-to-a-project)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaryansaraswat%2Fdeby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faaryansaraswat%2Fdeby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaryansaraswat%2Fdeby/lists"}