{"id":42686079,"url":"https://github.com/ucwong/golang-kv","last_synced_at":"2026-01-29T12:21:15.331Z","repository":{"id":37878955,"uuid":"349327198","full_name":"ucwong/golang-kv","owner":"ucwong","description":"Bundle embedded DB (badger \u0026 boltdb \u0026 leveldb \u0026 pebble \u0026 nutsdb) wrapper with fixed \u0026 simple api of pure Golang","archived":false,"fork":false,"pushed_at":"2025-12-25T15:39:30.000Z","size":7182,"stargazers_count":10,"open_issues_count":0,"forks_count":6,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-27T02:43:38.890Z","etag":null,"topics":["badger","boltdb","embedded-databases-wrapper","golang","leveldb","pebble","ttl"],"latest_commit_sha":null,"homepage":"","language":"Go","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/ucwong.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-03-19T06:45:53.000Z","updated_at":"2025-12-25T15:39:34.000Z","dependencies_parsed_at":"2023-10-12T16:01:45.668Z","dependency_job_id":"aa7db1f4-d1f8-44fd-a851-c320b1d7e848","html_url":"https://github.com/ucwong/golang-kv","commit_stats":null,"previous_names":["ucwong/bucket"],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/ucwong/golang-kv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucwong%2Fgolang-kv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucwong%2Fgolang-kv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucwong%2Fgolang-kv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucwong%2Fgolang-kv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ucwong","download_url":"https://codeload.github.com/ucwong/golang-kv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucwong%2Fgolang-kv/sbom","scorecard":{"id":886877,"data":{"date":"2025-08-11","repo":{"name":"github.com/ucwong/golang-kv","commit":"d7c3af16d0ff904db07e0546375fcdeedbc040e3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.2,"checks":[{"name":"Maintained","score":6,"reason":"8 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 6","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/ucwong/golang-kv/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/ucwong/golang-kv/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/ucwong/golang-kv/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/ucwong/golang-kv/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/ucwong/golang-kv/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/ucwong/golang-kv/go.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/go.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/ucwong/golang-kv/go.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-drafter.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/ucwong/golang-kv/release-drafter.yml/master?enable=pin","Warn: downloadThenRun not pinned by hash: .github/workflows/go.yml:29","Warn: downloadThenRun not pinned by hash: .github/workflows/go.yml:52","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   2 downloadThenRun dependencies pinned","Info:   1 out of   1 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":10,"reason":"SAST tool detected: CodeQL","details":["Info: SAST configuration detected: CodeQL","Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/go.yml:1","Warn: no topLevel permission defined: .github/workflows/release-drafter.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T10:20:17.812Z","repository_id":37878955,"created_at":"2025-08-24T10:20:17.812Z","updated_at":"2025-08-24T10:20:17.812Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28877488,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"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":["badger","boltdb","embedded-databases-wrapper","golang","leveldb","pebble","ttl"],"created_at":"2026-01-29T12:21:12.254Z","updated_at":"2026-01-29T12:21:14.887Z","avatar_url":"https://github.com/ucwong.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Golang-kv\nBundle embedded databases with fixed api https://pkg.go.dev/github.com/ucwong/golang-kv\n\nInterfaces\n\n```\ntype Bucket interface {\n\tGet(k []byte) []byte\n\tSet(k, v []byte) error\n\tDel(k []byte) error\n\tPrefix(k []byte) [][]byte\n\tSuffix(k []byte) [][]byte\n\tScan() [][]byte\n\tRange(start, limit []byte) [][]byte\n\tSetTTL(k, v []byte, expire time.Duration) error\n\tClose() error\n\n\t// BatchSet write \u0026 flush\n\tBatchSet(kvs map[string][]byte) error\n\t\n\tName() string\n}\n```\n\nused by \n```\nimport \"github.com/ucwong/golang-kv\"\n\n...\n\nbadger := kv.Badger(\"\")\ndefer badger.Close()\nbadger.Set([]byte(\"x\"), []byte(\"y\")))\nv := badger.Get([]byte(\"x\"))\nvs := badger.Prefix([]byte(\"x\"))\n\n...\n\nbolt := kv.Bolt(\"\")\ndefer bolt.Close()\n\nbolt.setTTL([]byte(\"k\"), []byte(\"v\"), time.Second)\n\n...\n\nldb := kv.LevelDB(\"\")\ndefer ldb.Close()\n\n...\n\npeb := kv.Pebble(\"\")\ndefer peb.Close()\n\n...\n\nnut := kv.NutsDB(\"\")\ndefer nut.Close()\n...\n```\n## Test\n```\nmake test\n```\n## Repobeats\n\n![Alt](https://repobeats.axiom.co/api/embed/6187bb40cb7709dfbf08cd33cb06f44f046c7cb4.svg \"Repobeats analytics image\")\n\n# How to choose database engine\n![image](https://user-images.githubusercontent.com/22344498/111969569-5aede600-8b35-11eb-8580-8cd1baf2bbb1.png)\n\n![image](https://user-images.githubusercontent.com/22344498/111968369-07c76380-8b34-11eb-90f3-26b0a2a85624.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fucwong%2Fgolang-kv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fucwong%2Fgolang-kv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fucwong%2Fgolang-kv/lists"}