Geotools
nodejs geo lookup module
Install / Use
/learn @runk/GeotoolsREADME
geotools
Simple and fast IP to Country/Region lookup module for nodejs. Pull Requests are welcome!
GEO databases
You can download fresh geo database from this website: http://ipgeobase.ru/. Database contains major ranges for all countries worldwide and precise ranges for most Russian cities/regions. It could also be extended with other generic geo data.
Installation
npm install geotools
Usage
var geo = require('geotools');
var res = geo.lookup('87.229.134.24');
/**
* Output is:
* {
* country: 'RU',
* region: 1056,
* city: 'Березовский',
* regionName: 'Свердловская область',
* district: 'Уральский федеральный округ',
* lat: '56.912811',
* lon: '60.804699',
* utcOffset: '+05:00'
* }
*/
Speed / Benchmark
Approximate speed on average laptop is about 1.5M calls per second. Benchmark is simple, but it gives you an idea about module's performance. Test it yourself:
node ./lib/bench.js
Related Skills
node-connect
345.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
104.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
