1 unstable release
0.1.0 | Feb 18, 2025 |
---|
#1180 in Web programming
112 downloads per month
25KB
492 lines
libipinfo
IP information library for Nullnet.
It allows specifying one or more IP information providers and querying them for information about an IP address.
Providers can be of two types:
- API providers, queried by making an HTTP request to a specific URL
- MMDB providers: queried by looking up the IP address in a database
This library also exposes a way to configure the JSON schema for the responses of the API providers, and permits to download and periodically refresh MMDB databases.
The library internally uses a fallback provider (free databases from dp-ip.com) so that it's able to return information even if the user specifies no providers.
Dependencies
~8–19MB
~254K SLoC