Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
programmingPublic archive

About

Minimal image hosting on Cloudflare with 24h expiry and burn-after-reading.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

27 Commits

Folders and files

Repository files navigation

ImageHost.ing

Minimal image hosting with burn-after-reading support. Images expire automatically after 24 hours.

Live at imagehost.ing


API

Base URL: https://api.imagehost.ing

Upload an image

POST /upload
Content-Type: multipart/form-data
Field Type Required Default
file image file yes —
burn true / false no false

curl:

# Plain upload — persists for 24h
curl -X POST https://api.imagehost.ing/upload \
  -F "[email protected]"

# Burn after reading — deleted on first view
curl -X POST https://api.imagehost.ing/upload \
  -F "[email protected]" \
  -F "burn=true"

Response 201:

{
  "id": "abc123...",
  "url": "https://imagehost.ing/abc123....jpg",
  "burnOnRead": false,
  "expiresAt": "2024-01-17T10:30:00.000Z",
  "sizeBytes": 204800
}

Error responses:

Status Meaning
400 Missing or invalid form data
401 Wrong or missing Authorization header
413 File too large (max 5 MB)
415 Unsupported file type
429 Daily upload limit reached — try again tomorrow

Fetch an image

GET https://imagehost.ing/:id
GET https://imagehost.ing/:id.jpg

Returns the raw image. If burnOnRead was set on upload, the image is permanently deleted after this request. Subsequent requests return 410 Gone.


Status

GET https://api.imagehost.ing/
{
  "status": "ok",
  "maxFileSizeMB": 5,
  "allowedTypes": ["image/jpeg", "image/png", "image/gif", "image/webp"],
  "ttlHours": 24
}

Supported formats

JPEG, PNG, GIF, WEBP — max 5 MB per file.

Limits

  • All images expire and are permanently deleted after 24 hours
  • Burn-after-reading images are deleted immediately on first view

About

Minimal image hosting on Cloudflare with 24h expiry and burn-after-reading.

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages