{"id":11858432,"name":"github.com/sxwebdev/chaindb","ecosystem":"go","description":"Package chaindb provides a high-performance, thread-safe key-value database\nabstraction built on top of Pebble DB (CockroachDB's LSM-based storage engine).\nIt is specifically optimized for blockchain applications and other use cases\nrequiring atomic batch operations, efficient state management, and safe concurrent access.\n\nChainDB wraps Pebble DB to provide:\n\nBasic usage:\n\nTables provide logical separation of data using key prefixes.\nAll keys in a table are automatically prefixed, and the prefix\nis transparently stripped when reading:\n\nBatches accumulate multiple operations and apply them atomically.\nAll batch types are fully thread-safe - multiple goroutines can\nsafely call Put/Delete concurrently without external locking:\n\nFor atomic updates across multiple tables, use a shared batch:\n\nIterators allow sequential access to key-value pairs.\nFor tables, key prefixes are automatically stripped:\n\nRange iteration with bounds:\n\nNote: Iterators are NOT thread-safe individually, but multiple\niterators can exist and operate concurrently on the same database.\n\nThe database can be configured with various options:\n\nAvailable options:\n\nCompaction flattens the LSM tree, reducing space and improving read performance:\n\nForce WAL flush to disk:\n\nGet database statistics:\n\nAccess underlying Pebble instance (for advanced use cases):\n\nChainDB provides the following thread-safety guarantees:\n\nThe package defines the following errors:\n\nAdvantages:\n\nConsiderations:\n\nThe package provides helpful constants:\n\nExample usage:","homepage":"https://github.com/sxwebdev/chaindb","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/sxwebdev/chaindb","keywords_array":[],"namespace":"github.com/sxwebdev","versions_count":0,"first_release_published_at":null,"latest_release_published_at":"2026-01-30T08:19:23.791Z","latest_release_number":null,"last_synced_at":"2026-04-08T06:27:09.588Z","created_at":"2025-07-01T10:03:19.838Z","updated_at":"2026-04-08T06:27:09.588Z","registry_url":"https://pkg.go.dev/github.com/sxwebdev/chaindb","install_command":"go get github.com/sxwebdev/chaindb","documentation_url":"https://pkg.go.dev/github.com/sxwebdev/chaindb#section-documentation","metadata":{},"repo_metadata":{"id":296734689,"uuid":"994284538","full_name":"sxwebdev/chaindb","owner":"sxwebdev","description":"ChainDB is a blazing-fast key-value database library for Go, built on top of Pebble DB. It delivers exceptional performance for modern hardware while maintaining a simple and intuitive API. Perfect for high-throughput applications that require reliable and fast data storage.","archived":false,"fork":false,"pushed_at":"2025-10-24T11:36:04.000Z","size":124,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-24T13:24:12.979Z","etag":null,"topics":["database","databases","golang","key-value","key-value-store","library"],"latest_commit_sha":null,"homepage":"","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/sxwebdev.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-01T16:06:34.000Z","updated_at":"2025-10-24T11:36:08.000Z","dependencies_parsed_at":"2025-06-02T03:08:36.591Z","dependency_job_id":"d95ad5ff-d676-4f4f-9aef-d1a89d05ddbd","html_url":"https://github.com/sxwebdev/chaindb","commit_stats":null,"previous_names":["sxwebdev/chaindb"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sxwebdev/chaindb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sxwebdev%2Fchaindb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sxwebdev%2Fchaindb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sxwebdev%2Fchaindb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sxwebdev%2Fchaindb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sxwebdev","download_url":"https://codeload.github.com/sxwebdev/chaindb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sxwebdev%2Fchaindb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281201376,"owners_count":26460551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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"},"owner_record":{"login":"sxwebdev","name":"sxwebdev","uuid":"3129246","kind":"user","description":"","email":"","website":null,"location":"Netherlands","twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/3129246?u=afdacbb5cb7f0f3e9695fd0da4470bfcb8dffd43\u0026v=4","repositories_count":5,"last_synced_at":"2023-05-26T11:36:30.760Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/sxwebdev","funding_links":[],"total_stars":null,"followers":null,"following":null,"created_at":"2023-05-26T11:36:30.761Z","updated_at":"2023-05-26T11:36:30.761Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sxwebdev","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sxwebdev/repositories"},"tags":[]},"repo_metadata_updated_at":"2025-10-27T01:28:22.507Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":0,"rankings":{"downloads":null,"dependent_repos_count":5.673586424307466,"dependent_packages_count":5.316629217251324,"stargazers_count":null,"forks_count":null,"docker_downloads_count":null,"average":5.4951078207793955},"purl":"pkg:golang/github.com/sxwebdev/chaindb","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/sxwebdev/chaindb","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/sxwebdev/chaindb","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/sxwebdev/chaindb/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2025-10-13T22:18:05.511Z","issues_count":0,"pull_requests_count":2,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":51177.5,"issues_closed_count":0,"pull_requests_closed_count":2,"pull_request_authors_count":1,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":0.0,"merged_pull_requests_count":2,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":2,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":51177.5,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":2,"past_year_pull_request_authors_count":1,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":0.0,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":2,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/sxwebdev%2Fchaindb/issues","maintainers":[{"login":"sxwebdev","count":2,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/sxwebdev"}],"active_maintainers":[{"login":"sxwebdev","count":2,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/sxwebdev"}]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsxwebdev%2Fchaindb/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsxwebdev%2Fchaindb/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsxwebdev%2Fchaindb/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsxwebdev%2Fchaindb/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsxwebdev%2Fchaindb/codemeta","maintainers":[]}