2026-07-13 05:10:28 +07:00
2023-03-19 11:26:55 +07:00
2023-03-18 19:35:32 +07:00
2026-07-12 18:18:17 +07:00
2026-07-12 18:18:17 +07:00
2026-07-12 18:21:28 +07:00
2026-07-13 05:07:26 +07:00
2026-07-13 05:10:28 +07:00

IP Test

🌐 Minimal HTTP server that echoes your IP and request headers as HTML or JSON.

Built with Elysia on Bun.

Usage

Send a request to /:

  • Browsers (Accept: text/html or */*) get an HTML page listing the detected IP and all request headers.
  • Anything requesting Accept: application/json gets 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

MIT

S
Description
🌐 Minimal HTTP server that echoes your IP and request headers as HTML or JSON.
Readme MIT 67 KiB
Languages
TypeScript 96.9%
Dockerfile 3.1%