Skip to content

jkpe/iptrace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iptrace

Single-page app on Cloudflare Workers showing your public IP, edge metadata from request.cf (geo, ASN, colo, HTTP/TLS, TCP RTT, optional TLS fingerprint fields when Cloudflare provides them), and all inbound request headers.

Run locally

npm install
npm run dev

Open the URL Wrangler prints (often http://localhost:8787). Geo fields may be sparse in local dev; deploy to Cloudflare for full request.cf data.

Deploy

npx wrangler login   # once
npm run deploy

API

GET /api returns JSON:

{
  "ip": "...",
  "location": { "country": "...", "city": "...", ... },
  "headers": { "...": "..." }
}

GET / serves the HTML shell (same app).

Project layout

Path Role
src/index.ts Worker: / → HTML, /api → trace JSON
src/shell.html UI (styles + client JS, bundled as text)
wrangler.jsonc Worker name, compatibility date, HTML import rule

About

Single-page app on Cloudflare Workers showing your public IP, edge / geo metadata from request.cf, and all inbound request headers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors