{"id":25220746,"url":"https://github.com/7c/mmdbmerge","last_synced_at":"2025-08-15T00:38:35.479Z","repository":{"id":274890753,"uuid":"924400221","full_name":"7c/mmdbmerge","owner":"7c","description":"one of multiple files can be combined into single mmdb file","archived":false,"fork":false,"pushed_at":"2025-01-30T00:03:16.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T11:25:31.824Z","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/7c.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":"2025-01-29T23:37:03.000Z","updated_at":"2025-01-30T00:03:12.000Z","dependencies_parsed_at":"2025-01-30T00:37:11.475Z","dependency_job_id":null,"html_url":"https://github.com/7c/mmdbmerge","commit_stats":null,"previous_names":["7c/mmdbmerge"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/7c/mmdbmerge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fmmdbmerge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fmmdbmerge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fmmdbmerge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fmmdbmerge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7c","download_url":"https://codeload.github.com/7c/mmdbmerge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fmmdbmerge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270505983,"owners_count":24596505,"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-08-14T02:00:10.309Z","response_time":75,"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"}},"keywords":[],"created_at":"2025-02-10T21:55:15.036Z","updated_at":"2025-08-15T00:38:35.445Z","avatar_url":"https://github.com/7c.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mmdbmerge\nA tool to merge multiple MaxMind DB files into a single file. It will skip all data from all files and add \"from\" property to indicate which file the data came from. You may want to use [mmdbinspect](https://github.com/maxmind/mmdbinspect) or [mmdimport](https://github.com/7c/mmdbimport) to view the data.\n\n## Installation\nEasy way to install this tool is to use `go install` command.\n```bash\ngo clean -cache\ngo install github.com/7c/mmdbmerge@v0.0.4\n```\n\n## Release\nYou can download the release from [releases folder](https://github.com/7c/mmdbmerge/releases).\n\n## Build\nIf you want to build this tool from source, you can use `make` command.\n```bash\n$ make build\n$ bin/mmdbmerge -h\n```\n\n## Usage\n```bash\n$ mmdbmerge a.mmdb b.mmdb [input3.mmdb ...] -o combined.mmdb [--debug]\n2025/01/29 18:31:18 VALID: Valid file: demo/a.mmdb\n2025/01/29 18:31:18 VALID: Valid file: demo/b.mmdb\n2025/01/29 18:31:18 Stats: demo/a.mmdb networks: 2166 (IPs: 681413, skipped: 0)\n2025/01/29 18:31:18 Stats: demo/b.mmdb networks: 2166 (IPs: 681413, skipped: 0)\n2025/01/29 18:31:18 Final Stats: Total networks: 4332 (IPs: 1362826, skipped: 0)\n2025/01/29 18:31:18 Output: combined.mmdb contains 906 networks (IPs: 681413)\n\n% mmdbimport -v combined.mmdb \nMMDB file: combined.mmdb\n  Build Timestamp: 2025-01-29T18:31:18-05:00\n\nDatabase Information:\n  Binary Format: 2.0\n  IP Version: 6\n  Record Size: 28 bits\n  Node Count: 7436\n\nMetadata:\n  Database Type: Combined-DB\n  Description:\n    en: Combined a, b\n  Languages: en\n\nStatistics:\n  Total Networks: 906\n\n$ mmdbinspect -db combined.mmdb 212.102.44.4\n[\n    {\n        \"Database\": \"combined.mmdb\",\n        \"Records\": [\n            {\n                \"Network\": \"212.102.32.0/19\",\n                \"Record\": {\n                    \"from\": \"b\"\n                }\n            }\n        ],\n        \"Lookup\": \"212.102.44.4\"\n    }\n]\n```\n\nthe mmdb driver optimizes overlaps internally, thanks!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7c%2Fmmdbmerge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7c%2Fmmdbmerge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7c%2Fmmdbmerge/lists"}