Skip to content

fix: source.unsplash.com/random was deprecated in 2024 (now 503s) - #123

Open
kiluazen wants to merge 1 commit into
Siumauricio:mainfrom
kiluazen:fix/unsplash-random-deprecated-2026-04-22-batch5
Open

kiluazen wants to merge 1 commit into
Siumauricio:mainfrom
kiluazen:fix/unsplash-random-deprecated-2026-04-22-batch5

Conversation

@kiluazen

Copy link
Copy Markdown

docs/content/components/card.mdx references the deprecated source.unsplash.com/* endpoint, which Unsplash retired in mid-2024 and which now returns HTTP 503 instead of an image.


Why this is needed

source.unsplash.com/random (and related endpoints like /featured, /collection/<id>) was deprecated by Unsplash in mid-2024. These URLs now return HTTP 503 instead of an image, so browsers render a broken-image icon in place of the intended visual.

Verify in any shell:

curl -sI https://source.unsplash.com/random/800x600 | head -1
# HTTP/1.1 503 Service Unavailable

What this PR changes

Updates the rippleui Card component docs so the 4 <img> examples on the Card docs page render real images. (The same dimensioned URL appears 4 times in this file; all are replaced identically.)

Replacement details

4 occurrences of the same URL (docs + code-block copies). Script uses a replace-all fallback for this entry so every instance is fixed. Dimensions 300×200 preserved.

Background

I'm tracking the deprecated source.unsplash.com/* endpoints across public repos as part of tteg, a tiny CLI/HTTP API I built so projects can drop in real Unsplash photos without registering an Unsplash app or managing API keys. tteg isn't introduced as a dependency by this PR — the diff is dependency-free picsum.photos. If you want topic-matched real photos as a follow-up, the no-key HTTP API is at https://tteg-api-53227342417.asia-south1.run.app/search?q=<query>&n=1 (CORS-on, no auth).

One extra artifact you may find handy: a public scanner at https://tteg.kushalsm.com/scan?url= that highlights this same broken-URL pattern in any landing page — useful for verifying the fix lands and for finding other places source.unsplash.com/random slipped in. Source: https://github.com/kiluazen/tteg-landing/blob/main/scan.html.

Research note covering ~16,500 files across ~885 unique repos that still hotlink the deprecated endpoint: https://github.com/kiluazen/tteg/blob/research-note-autark/RESEARCH.md.

@kiluazen
kiluazen requested a review from Siumauricio as a code owner April 22, 2026 12:48
@vercel

vercel Bot commented Apr 22, 2026

Copy link
Copy Markdown

@kiluazen is attempting to deploy a commit to the siumauricio's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant