Skip to content

programming/imagehosting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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 "file=@photo.jpg"

# Burn after reading — deleted on first view
curl -X POST https://api.imagehost.ing/upload \
  -F "file=@photo.jpg" \
  -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

Watchers

Forks

Contributors