{"id":36894470,"url":"https://github.com/tech-branch/tbkv","last_synced_at":"2026-01-12T15:40:52.258Z","repository":{"id":56855385,"uuid":"525562912","full_name":"tech-branch/tbkv","owner":"tech-branch","description":"A simple zero-dependency in-memory key-value store for Golang","archived":false,"fork":false,"pushed_at":"2022-08-17T22:32:55.000Z","size":14,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T08:09:47.269Z","etag":null,"topics":["go","golang","key-value-store"],"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/tech-branch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null}},"created_at":"2022-08-16T22:38:23.000Z","updated_at":"2024-06-20T08:09:47.270Z","dependencies_parsed_at":"2022-09-22T14:25:30.678Z","dependency_job_id":null,"html_url":"https://github.com/tech-branch/tbkv","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tech-branch/tbkv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tech-branch%2Ftbkv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tech-branch%2Ftbkv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tech-branch%2Ftbkv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tech-branch%2Ftbkv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tech-branch","download_url":"https://codeload.github.com/tech-branch/tbkv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tech-branch%2Ftbkv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28341269,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"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":["go","golang","key-value-store"],"created_at":"2026-01-12T15:40:51.837Z","updated_at":"2026-01-12T15:40:52.246Z","avatar_url":"https://github.com/tech-branch.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![tests](https://github.com/tech-branch/tbkv/actions/workflows/main.yml/badge.svg)\n![continuous semgrep](https://github.com/tech-branch/tbkv/actions/workflows/semgrep.yml/badge.svg)\n\n## TBKV key-val store\n\nYou're looking at a simple zero-dependency in-memory key-value store for Golang. \n\nAll operations (Get/Set/Delete) are executed in a single, buffered loop, so the store provides some thread safety.\n\nThe package is continuously scanned by `semgrep` and various static code critics to maintain healthy security posture.\n\nThe main `tbkv` package has 100% test coverage and my aim is to maintain that. \nThe `examples` are covered to the extent of checking if the scenario runs successfully. \n\n### Usage\n\n\n```Golang\n\nimport (\n\t\"github.com/tech-branch/tbkv\"\n)\n\nfunc main() {\n    kvs := NewDefaultStore()\n\n    kvs.Set(\"key\", \"value\")\n\n    val, err := kvs.Get(\"key\")\n    if err != nil {\n        return err\n    }\n\n    // val == \"value\"\n\n    kvs.Delete(\"key\")\n\n    val, err := kvs.Get(\"key\")\n    if err != nil {\n        // err == tbkv.ErrNotFound\n        return err\n    }\n}\n```\n\nSee a more complete example in `./examples/main.go`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftech-branch%2Ftbkv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftech-branch%2Ftbkv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftech-branch%2Ftbkv/lists"}