mirror of
https://github.com/YuzuZensai/Test-IP.git
synced 2026-07-15 17:02:40 +00:00
main
IP Test
🌐 Minimal HTTP server that echoes your IP and request headers as HTML or JSON.
Usage
Send a request to /:
- Browsers (
Accept: text/htmlor*/*) get an HTML page listing the detected IP and all request headers. - Anything requesting
Accept: application/jsongets a JSON body:{ "ip": "...", "headers": { ... } }.
curl -H "Accept: application/json" http://localhost:3000/
Development
Requires Bun 1.2+.
bun install
bun run dev # hot-reload dev server
bun run start # start the server
bun test # run tests
bun run check # typecheck + lint/format check + tests
Docker
docker build -t ip-test .
docker run -p 3000:3000 ip-test
License
Languages
TypeScript
96.9%
Dockerfile
3.1%