{"id":39006513,"url":"https://github.com/01builders/cosmprund","last_synced_at":"2026-01-17T17:17:30.567Z","repository":{"id":38378904,"uuid":"456303803","full_name":"01builders/cosmprund","owner":"01builders","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-21T11:21:53.000Z","size":109,"stargazers_count":119,"open_issues_count":2,"forks_count":81,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-05T10:58:17.523Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/01builders.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-02-06T23:53:47.000Z","updated_at":"2025-06-14T14:50:51.000Z","dependencies_parsed_at":"2025-03-21T12:43:28.088Z","dependency_job_id":null,"html_url":"https://github.com/01builders/cosmprund","commit_stats":null,"previous_names":["01builders/cosmprund","binaryholdings/cosmprund"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/01builders/cosmprund","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/01builders%2Fcosmprund","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/01builders%2Fcosmprund/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/01builders%2Fcosmprund/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/01builders%2Fcosmprund/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/01builders","download_url":"https://codeload.github.com/01builders/cosmprund/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/01builders%2Fcosmprund/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28512300,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: 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":[],"created_at":"2026-01-17T17:17:29.973Z","updated_at":"2026-01-17T17:17:30.553Z","avatar_url":"https://github.com/01builders.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cosmos-Pruner\n\nThe goal of this project is to be able to prune a tendermint data base of blocks and an Cosmos-sdk application DB of all but the last X versions. This will allow people to not have to state sync every x days. \n\nThis tool works with a subset of modules (store keys). They are automatically detected based on the stored data.\n\n## WARNING\n\nDue to inefficiencies of iavl and the simple approach of this tool, it can take ages to prune the data of a large node.  \n\nWe are working on integrating this natively into the Cosmos-sdk and Tendermint\n\n## How to use\n\nCosmprund works of a data directory that has the same structure of a normal cosmos-sdk/tendermint node. By default it will prune all but 10 blocks from tendermint, and all but 10 versions of application state. \n\n\u003e Note: Application pruning can take a very long time dependent on the size of the db. \n\n\n```\n# clone \u0026 build cosmprund repo\ngit clone https://github.com/binaryholdings/cosmprund\ncd cosmprund\nmake build\n\n# stop daemon/cosmovisor\nsudo systemctl stop cosmovisor\n\n# run cosmprund \n./build/cosmprund prune ~/.gaiad/data --cosmos-sdk=false\n```\n\nFlags: \n\n- `data-dir`: path to data directory if not default\n- `blocks`: amount of blocks to keep on the node (Default 10)\n- `versions`: amount of app state versions to keep on the node (Default 10)\n- `cosmos-sdk`: If pruning a non cosmos-sdk chain, like Nomic, you only want to use tendermint pruning or if you want to only prune tendermint block \u0026 state as this is generally large on machines(Default true)\n- `tendermint`: If the user wants to only prune application data they can disable pruning of tendermint data. (Default true)\n\n\n### Note\nTo use this with RocksDB you must:\n\n```bash\ngo install -ldflags '-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=rocksdb' -tags rocksdb ./...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F01builders%2Fcosmprund","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F01builders%2Fcosmprund","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F01builders%2Fcosmprund/lists"}