{"id":50695,"library":"dgraph-io-badger","title":"BadgerDB","description":"Package badger implements an embeddable, simple and fast key-value database, written in pure Go.","status":"active","version":"1.6.2","language":"go","source_language":null,"source_url":"https://github.com/dgraph-io/badger","tags":["database","key-value","embedded","storage"],"install":[{"cmd":"go get github.com/dgraph-io/badger","lang":"bash","label":"Install github.com/dgraph-io/badger"}],"dependencies":[],"imports":[{"symbol":"badger","correct":"github.com/dgraph-io/badger"}],"quickstart":{"code":"package main\n\nimport (\n    \"log\"\n    \"github.com/dgraph-io/badger\"\n)\n\nfunc main() {\n    db, err := badger.Open(badger.DefaultOptions(\"/tmp/badger\"))\n    if err != nil {\n        log.Fatal(err)\n    }\n    defer db.Close()\n    err = db.Update(func(txn *badger.Txn) error {\n        return txn.Set([]byte(\"key\"), []byte(\"value\"))\n    })\n    if err != nil {\n        log.Fatal(err)\n    }\n}","lang":"go","description":"Open a BadgerDB database and set a key-value pair"},"warnings":[{"fix":"Use github.com/dgraph-io/badger/v3 for latest features and support.","message":"Badger v1 is deprecated; v3 is the current major version with breaking API changes.","severity":"breaking","affected_versions":"1.x"}],"env_vars":null,"search_vec":"'badger':3 'badgerdb':1 'databas':13,18 'embed':22 'embedd':6 'fast':9 'go':17 'implement':4 'key':11,20 'key-valu':10,19 'packag':2 'pure':16 'simpl':7 'storag':23 'valu':12,21 'written':14","created_at":"2026-06-15T05:05:09.767083+00:00","updated_at":"2026-06-15T05:05:09.767083+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#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}}