lionsoul2014

    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

    19.9K stars
    3.1K forks
    432 GitHub watchers
    Updated Nov 8, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    1 release in the last 90 days, the latest 60 days ago, with 48 contributors on GitHub.

    Use Cases & Benefits

    • Provides an offline IP-to-region localization library and data management framework supporting both IPv4 and IPv6 with ultra-fast query performance.
    • Delivers 10-microsecond level query efficiency with memory-accelerated options and supports unified queries for IPv4 and IPv6 in multiple languages.
    • Use for embedding fast, offline IP geolocation in backend services without relying on external APIs or internet connectivity.
    • Use for managing and customizing large-scale IP localization datasets with support for data deduplication, compression, and extended region info.
    • Use for integrating IP location queries into diverse programming environments including Go, Java, Python, C, and Nginx modules.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Other

    GitHub could not identify this license; read the LICENSE file before depending on it.

    Community files

    • README: present

    Watch-outs

    • License not identified by GitHub; read the LICENSE file before depending on it.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    ip2region - is an offline IP address localization library and IP localization data management framework. It supports both IPv4 and IPv6 with query efficiency at the 10-microsecond level. It provides xdb data generation and query client implementations for many mainstream programming languages.

    The project itself provides raw data for both IPv4 (data/ipv4_source.txt) and IPv6 (data/ipv6_source.txt), along with corresponding xdb files (data/ip2region_v4.xdb and data/ip2region_v6.xdb) to achieve city-level query localization. The field format is: Country|Province|City|ISP|iso-alpha2-code. Localization information for China is entirely in Chinese, while regional information for non-China areas is entirely in English.

    Excerpt from the lionsoul2014/ip2region README on GitHub (NOASSERTION license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Oct 21: +10Oct 22: +5

    +172 stars over 21 days across 6 snapshot days; best day +10 on Oct 21.

    Forks

    3.1K+22

    Open issues

    9+4

    Compared with peers in Backend

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 8, by 7-day star growth

    lionsoul2014/ip2region compared with Backend repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    anthropics/skills192.3K+5.2K75—
    zed-industries/zed94.7K+2.3K756 days ago
    google/skills23.8K+2.0K75—
    NationalSecurityAgency/ghidra99.4K+1.8K7519 days ago
    DuarteSantos8/openGym20.8K+1.7K757 days ago
    lionsoul2014/ip2region19.9K—5260 days ago
    Category median94.7K+2.0K75—

    Discover Repositories

    Search across tracked repositories by name or description