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 efficiency, xdb search client for many programming languages observed · 2026-08-28
Health v2 · maintenance only
96/100
- Activity 97
- Release rhythm 92
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 5
- age_days: 3958
- days_rel: 55
- days_push: 19
- n_releases_24m: 24
Adoption not part of the score
19468 stars · 3048 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
ip2region is an offline IP-to-region localization library and IP data management framework supporting both IPv4 and IPv6 with city-level results and 10-microsecond query performance. It ships an xdb data storage engine with search clients for 10+ programming languages and tools to generate and manage custom IP location data.
Use cases
- look up the country, province, city and ISP of an IP address offline
- resolve visitor IP locations in a web backend without external API calls
- convert IPv4 and IPv6 addresses to region info with microsecond latency
- manage and generate custom IP geolocation datasets in xdb format
- embed IP location lookup in a Go, Java, Python or PHP service
- avoid third-party geolocation API rate limits and privacy concerns
When to choose
- you need fast, offline IP-to-region lookup with no network dependency
- you need both IPv4 and IPv6 support from one unified API
- you want bindings for many languages or a custom IP data management framework
- you need city-level accuracy for China with Chinese-language region data
When to avoid
- you need street-level or GPS-precise geolocation
- you require constantly updated commercial-grade accuracy without buying the paid data
- you need rich metadata like ASN or timezone from the free dataset out of the box
Facets
library · maturity stable
search-engine database sdk developer-tools networking developer-tools apis security analytics cross-platform go python jvm php rust cpp c lua dotnet elixir ip-geolocation offline-lookup ipv4 ipv6 xdb-format ip-database geoip javascript nodejs
5 sources
- readme: https://github.com/lionsoul2014/ip2region · fetched 2026-08-28 · b97c86da40cb
- homepage: https://ip2region.net · fetched 2026-08-29 · c14b6fb965dd
- site_page: https://ip2region.net/about/intro · fetched 2026-08-29 · d2bf1bd829dd
- site_page: https://ip2region.net/about/service · fetched 2026-08-29 · 3f764506f276
- site_page: https://ip2region.net/about/privacy · fetched 2026-08-29 · 73cab8240ddd
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| lionsoul2014/ip2region | main | 96 |
For agents
markdown · JSON · MCP: product_card(name="lionsoul2014/ip2region")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem