Heatmap Worker API

Make your GitHub profile feel like a live intelligence system.

📍 /track

GET / POST

Logs a new visitor using Cloudflare's CF-Connecting-IP. Ignores bots.

Test Route →

🌍 /heatmap

GET

Returns JSON array of visitor coordinates [lat, lng, weight] from the last 24h.

Test Route →

🌡️ /heatmap.svg

GET

Generates a live 800x400 SVG visualization of visitor locations.

Test Route →

🗺️ /map

GET

Returns a live SVG map of visitor locations.

Test Route →

🇮🇳 /india.svg

GET

Returns a live SVG map of visitor locations in India.

Test Route →

🌍 /world.svg

GET

Returns a live SVG map of visitor locations worldwide.

Test Route →

📊 /stats

GET

Aggregates all-time visits grouping by country (Top 10).

Test Route →

🚨 /live

GET

Retrieves recent visitors from the last 5 minutes.

Test Route →

⚠️ /threat-score

GET

Calculates a threat score (0-100) based on hit frequency over 10 minutes.

Test Route →

🕵️‍♂️ /top-attackers

GET

Lists the top 10 all-time IPs by total hit volume.

Test Route →