hackl0us/geoip2-cn

小巧精悍、准确、实用 GeoIP2 数据库

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 49 minutes ago
Added to GitGenius on September 8th, 2026
Created on December 9th, 2020
Open Issues & Pull Requests: 32 (+0)
GitHub issues: Enabled
Number of forks: 216
Total Stargazers: 7,417 (+0)
Total Subscribers: 118 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 3.2 days
Mean response time: 190.4 days
90th percentile: 635.3 days
Tracked items: 6

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 6
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 438 days
Stale 30+ days: 6
Stale 90+ days: 4

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

geoip2-cn is a GeoIP2 database generator that produces compact, China-focused IP geolocation data for proxy tools.

The project addresses limitations in the standard MaxMind GeoLite2 database used by proxy applications. GeoLite2 requires registration to download, contains global IP data making it large and slow to load, and has poor accuracy for Chinese mainland IP addresses. The tool solves this by merging and deduplicating Chinese IP address ranges from ipip.net and Chunzhen databases, generating a GeoIP2 database containing only mainland China IP information. The resulting database is approximately 100 KB, compared to the original 4 MB, enabling faster loading and query performance.

The tool suits users in mainland China who need to route traffic based on whether destination IPs belong to Chinese territory. It is designed for proxy applications including Surge, Shadowrocket, QuantumultX, and Clash. The project also provides an IP-CIDR list format for older proxy tools and firewalls. Downloads are available via GitHub raw links or CDN distribution for faster access in various network conditions.

The project maintains automated updates every three days with no manual intervention required. Development activity centers on keeping the IP database current and accurate through continuous integration of upstream data sources.