Skip to content

Latest commit

 

History

History

basic

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Basic example

A minimal Express app using @ipregistry/express: request enrichment, country blocking, threat blocking, and GDPR detection.

npm install
IPREGISTRY_API_KEY=YOUR_API_KEY npm start

Then:

curl http://localhost:3000/
curl http://localhost:3000/geo

Without an API key the app still runs: lookups fail open and /geo reports the error on the context.