{"id":50342,"library":"cosmos-iavl","title":"IAVL","description":"Package iavl implements a versioned, snapshottable (immutable) AVL+ tree for persisting key-value pairs.","status":"active","version":"1.3.6","language":"go","source_language":null,"source_url":"https://github.com/cosmos/iavl","tags":["avltree","immutable","key-value","cosmos","blockchain"],"install":[{"cmd":"go get github.com/cosmos/iavl","lang":"bash","label":"Install github.com/cosmos/iavl"}],"dependencies":[],"imports":[{"symbol":"iavl","correct":"github.com/cosmos/iavl"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/cosmos/iavl\"\n\t\"github.com/tendermint/tm-db\"\n)\n\nfunc main() {\n\tdb, _ := tmdb.NewDB(\"test\", tmdb.GoLevelDBBackend, \"/tmp\")\n\ttree, _ := iavl.NewMutableTree(db, 128)\n\ttree.Set([]byte(\"key\"), []byte(\"value\"))\n\t_, version, _ := tree.SaveVersion()\n\tfmt.Println(\"saved version:\", version)\n}","lang":"go","description":"Minimal example creating a mutable IAVL tree, setting a key-value pair, and saving a version."},"warnings":[{"fix":"Use the correct import path for your version: v0.x uses github.com/tendermint/iavl, v1.x uses github.com/cosmos/iavl.","message":"Breaking changes between major versions (v0 vs v1) in API and import path.","severity":"breaking","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'avl':9 'avltre':17 'blockchain':23 'cosmos':22 'iavl':1,3 'immut':8,18 'implement':4 'key':14,20 'key-valu':13,19 'packag':2 'pair':16 'persist':12 'snapshott':7 'tree':10 'valu':15,21 'version':6","created_at":"2026-06-15T04:50:06.894935+00:00","updated_at":"2026-06-15T04:50:06.894935+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/cosmos/iavl","github":"https://github.com/cosmos/iavl","docs":"https://pkg.go.dev/github.com/cosmos/iavl#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}}