See code example in the server folder.
Make sure you have bun
installed.
curl -fsSL https://bun.sh/install | bash
Install/Build
bun install
Start Server
cd server
bun app.js
Works with both ipv4 and ipv6.
curl https://geoip.samagra.io/city/128.101.101.101
curl https://geoip.samagra.io/georev?lat=28.7041&lon=77.1025
DB will remain updated automatically. Please create a ticket if you see some issues.
- Please consider issues up from grabs.
- It will only be assigned with a PR.