1 unstable release

new 0.1.0 Feb 18, 2025

#1177 in Web programming

MIT license

25KB
490 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