lionsoul2014/ip2region

Ip2region is an offline IP-to-Region localization library and IP data management framework with both IPv4 and IPv6 supports, 10-microsecond level query...

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 2 minutes ago
Added to GitGenius on September 3rd, 2026
Created on November 2nd, 2015
Open Issues & Pull Requests: 3 (+0)
GitHub issues: Enabled
Number of forks: 3,049
Total Stargazers: 19,520 (+0)
Total Subscribers: 439 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 18.6 hours
Mean response time: 122.1 days
90th percentile: 380.6 days
Tracked items: 99

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 13% of issues opened in the past year have been closed. Three people close 85% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 3
New in 7 days: 0
Closed in 7 days: 1
Avg open age: 245 days
Stale 30+ days: 2
Stale 90+ days: 1

Recent activity

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

Top labels

  • 数据源补充 (9)
  • enhancement (1)
  • maven过滤xdb (1)

Most active issues this week

Detailed Description

ip2region is an offline IP geolocation library that supports both IPv4 and IPv6 address lookups with microsecond-level query performance.

The tool solves the problem of determining geographic location from IP addresses without requiring external API calls or network connectivity. It uses a custom xdb binary format that compresses IP ranges and their associated region data, enabling fast lookups even when querying directly from disk. The library includes pre-built data files mapping IP addresses to country, province, city, ISP, and ISO country codes, with Chinese region names for China and English names elsewhere. Users can also customize the region data format to include additional fields like GPS coordinates or postal codes for their specific needs.

Developers should choose ip2region for applications requiring offline geolocation with minimal latency and no external dependencies. It suits projects that need to process high volumes of IP lookups, such as log analysis, traffic filtering, or user analytics. The tool is particularly valuable when network calls to geolocation services are impractical or when data privacy requires keeping lookups local. The project provides query client implementations across multiple programming languages, making integration straightforward regardless of the application's tech stack.

The project maintains active development with regular updates to IP data and consistent refinement of the xdb format. Query implementations are kept synchronized across different language bindings to ensure consistent behavior. The data management framework receives ongoing attention, with improvements to compression and deduplication algorithms. Documentation is maintained in multiple languages to serve a broad user base.