Skip to content

feat(providers): add Cupcake stock photo provider - #14

Merged
gitadityakumar merged 3 commits into
mainfrom
feat/cupcake-provider
Sep 1, 2026
Merged

gitadityakumar merged 3 commits into
mainfrom
feat/cupcake-provider

Conversation

@gitadityakumar

Copy link
Copy Markdown
Owner

Description

Adds Cupcake as a supported asset provider in ast. Cupcake is a free CC0 stock photography collection created by Swedish photographer Jonas Nilsson Lee.

Features

  • Search: Queries https://cupcake.nilssonlee.se/ and performs sub-string and keyword matching over rich image alt visual descriptions and image asset names.
  • Master Resolution Downloads: Strips ImageKit sizing query parameters (?tr=...) to download original master full-resolution JPEG / WebP assets directly via CloudFront/ImageKit CDN.
  • Metadata: Retains clean image IDs, unescaped visual prompt descriptions, author attribution (Jonas Nilsson Lee), and source page URLs.
  • Integration: Fully wired into registry, CLI search commands (ast s cupcake ...), and interactive mode.

Verification

  • Tested via ast s cupcake "moon" --limit 2 --json
  • Verified direct download via ast s cupcake "moon" --first --download -o /tmp/downloads-test (downloaded IMG_9223.jpg @ 1536x2048)
  • Verified all unit and integration tests pass with zig build && zig build test.

@gitadityakumar
gitadityakumar merged commit 303e328 into main Sep 1, 2026
1 check passed
@gitadityakumar
gitadityakumar deleted the feat/cupcake-provider branch September 1, 2026 15:49
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