
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
This is a IP to geolocation lookup server with cache.
IP info APIs costs money. e.g. ipgeolocation.io has a free tier of 30k requests/month
It's hard to request 30k unique ips in a month, but if the same ip address is checked frequently the free quota could be used up quickly. Thus I built this simple cache server. This cache server is used as a proxy server, requests sent to /api/<:ip> is forwarded to API service and cached in pocketbase.
make build # build docker image
make run # run docker image on port 8090
I wrote 2 versions, one with go and one with js hook.
Go is more performant, more flexible and easier to add more features. The JS hook version is created to deploy to pockethost.
http://localhost:8090/api/info/1.1.1.1http://localhost:8090/api/ip-geo/1.1.1.1To switch languages, please remove pb_data first.
Install air and run air to develop.
To develop locally,
bun dev./pocketbase serve.To deploy to pockethost, copy the pb_migrations and pb_hooks to pockethost with FTP.
npm install ip-cache
import { IpCache } from "ip-cache";
const ipCache = new IpCache("https://<your-pocketbase-url>");
const ipInfo = await ipCache.getIpInfo("1.1.1.1");
console.log(ipInfo);
FAQs
This is a IP to geolocation lookup server with cache.
We found that ip-cache demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.