Feat: Add free.direct-img.link and ?i= result picker (#1)

- free.direct-img.link serves only unrestricted (public domain/CC0) images
  from Openverse (license=cc0,pdm) and Wikimedia Commons
  (haslicense:unrestricted), with optional ?src=openverse|wikimedia
- ?i=1..20 picks the i-th working image on both sites; broken links are
  skipped so every index is a different image
- Openverse OAuth token is cached in KV and refreshed automatically
- Skip Flickr "photo unavailable" placeholders (served with HTTP 200)
- Free/indexed cache keys use uppercase prefixes; plain main-site keys
  are unchanged so existing cache entries stay valid
- Update README, homepage, privacy policy and terms

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-26 12:00:54 -07:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 023f4d132c
commit 029b259f05
9 changed files with 247 additions and 36 deletions
+1
View File
@@ -8,6 +8,7 @@ By using direct-img.link ("the service"), you agree to these terms. If you don't
- Images come from third-party websites and belong to their owners. We don't own, license, or endorse them.
- You are responsible for making sure you have the rights to any image you display or publish.
- free.direct-img.link only serves images that Openverse or Wikimedia Commons mark as free of restrictions (public domain or CC0). These labels come from the sources and can be wrong, so check the original before relying on them.
## Results can be wrong, change, or be inappropriate