{"id":50761,"library":"dgraph-io-badger-v3","title":"BadgerDB","description":"Package badger implements an embeddable, simple and fast key-value database, written in pure Go.","status":"active","version":"3.2103.5","language":"go","source_language":null,"source_url":"https://github.com/dgraph-io/badger","tags":["key-value","database","embedded","storage","badger"],"install":[{"cmd":"go get github.com/dgraph-io/badger/v3","lang":"bash","label":"Install github.com/dgraph-io/badger/v3"}],"dependencies":[],"imports":[{"symbol":"badger","correct":"github.com/dgraph-io/badger/v3"}],"quickstart":{"code":"package main\n\nimport (\n\t\"log\"\n\n\t\"github.com/dgraph-io/badger/v3\"\n)\n\nfunc main() {\n\tdb, err := badger.Open(badger.DefaultOptions(\"/tmp/badger\"))\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer db.Close()\n\n\terr = db.Update(func(txn *badger.Txn) error {\n\t\treturn txn.Set([]byte(\"key\"), []byte(\"value\"))\n\t})\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n}","lang":"go","description":"Open a Badger database, set a key-value pair."},"warnings":[],"env_vars":null,"search_vec":"'badger':3,24 'badgerdb':1 'databas':13,21 'embed':22 'embedd':6 'fast':9 'go':17 'implement':4 'key':11,19 'key-valu':10,18 'packag':2 'pure':16 'simpl':7 'storag':23 'valu':12,20 'written':14","created_at":"2026-06-15T05:08:46.874205+00:00","updated_at":"2026-06-15T05:08:46.874205+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/dgraph-io/badger","github":"https://github.com/dgraph-io/badger","docs":"https://pkg.go.dev/github.com/dgraph-io/badger/v3#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}