{"id":23219333,"url":"https://github.com/markelca/tunadb","last_synced_at":"2026-02-11T02:48:11.936Z","repository":{"id":250133238,"uuid":"833570059","full_name":"markelca/TunaDB","owner":"markelca","description":"A disk-based key-value store written in Rust","archived":false,"fork":false,"pushed_at":"2025-02-02T19:03:28.000Z","size":90,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-19T09:59:11.696Z","etag":null,"topics":["cli","database","key-value-store","rust","tcp-server"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/markelca.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,"zenodo":null}},"created_at":"2024-07-25T10:07:02.000Z","updated_at":"2025-05-11T18:38:04.000Z","dependencies_parsed_at":"2025-08-19T09:33:08.195Z","dependency_job_id":"f4fbc33f-8733-4e0f-b4c9-d834cd6889c4","html_url":"https://github.com/markelca/TunaDB","commit_stats":null,"previous_names":["markelca/sallydb","markelca/tunadb"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/markelca/TunaDB","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markelca%2FTunaDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markelca%2FTunaDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markelca%2FTunaDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markelca%2FTunaDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markelca","download_url":"https://codeload.github.com/markelca/TunaDB/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markelca%2FTunaDB/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29326078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T02:08:56.257Z","status":"ssl_error","status_checked_at":"2026-02-11T02:08:51.338Z","response_time":97,"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":["cli","database","key-value-store","rust","tcp-server"],"created_at":"2024-12-18T21:31:37.804Z","updated_at":"2026-02-11T02:48:11.897Z","avatar_url":"https://github.com/markelca.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TunaDB 🐟\nA disk-based key-value store written in Rust, created for learning purposes.\n### Technical details\nIt currently uses a simple length-prefixed binary encoding format for storage files and an in-memory byte offset HashMap as its indexing strategy. The server communicates with clients over TCP sockets and uses protocol buffers for data serialization.\n\nImplementation details, including the storage/indexing algorithms and communication protocols, are abstracted and subject to change. There are plans to implement more sophisticated data structures, such as B-Trees and LSM-Trees, in the future, as well as a custom communication protocol.\n## Build\n\n### Requirements\n- [Git](https://git-scm.com/)\n- [Cargo](https://github.com/rust-lang/cargo)\n- [protoc](https://grpc.io/docs/protoc-installation/)\n\n```bash\ngit clone https://github.com/MarkelCA/tunadb.git\ncd tunadb\n# For the server\ncargo install --path ./server\n# For the client\ncargo install --path ./cli\n```\n\n## Usage\n### server\nYou can check the server parameters with `tuna-server --help`:\n```\n$ tuna-server --help\nTunaDB. A simple key-value storage written in Rust.\n\nUsage: tuna-server [OPTIONS]\n\nOptions:\n  -l, --log-level \u003cLOG_LEVEL\u003e  [default: info] [possible values: error, warn, info, debug, trace]\n  -p, --port \u003cPORT\u003e            [default: 5880]\n  -h, --help                   Print help\n  -V, --version                Print version\n\n```\nStart the server:\n```\n$ tuna-server\n[2024-09-01T10:08:57Z INFO  tuna_server] Starting server in port 5880...\n[2024-09-01T10:08:57Z INFO  tuna_server] Server started\n```\n\n### cli\nYou can check the client parameters with `tuna --help`:\n```\n$ tuna --help\nTunaDB client. The command line interface for the Tuna database.\n\nUsage: tuna [OPTIONS]\n\nOptions:\n      --host \u003cHOST\u003e  Host to connect to [default: 127.0.0.1]\n      --port \u003cPORT\u003e  Port to connect to [default: 5880]\n  -h, --help         Print help\n  -V, --version      Print version\n```\nStart the client:\n```\n$ tuna\nConnecting to 127.0.0.1:5880...\nConnected to server. Type 'help' for a list of commands.\nhelp\nAvailable commands:\n  get \u003ckey\u003e\n  set \u003ckey\u003e \u003cvalue\n  del \u003ckey\u003e\n  list\n  exit\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkelca%2Ftunadb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkelca%2Ftunadb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkelca%2Ftunadb/lists"}