Skip to content

feat(providers): add LibreShot stock photo provider - #12

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

gitadityakumar merged 3 commits into
mainfrom
feat/libreshot-provider

Conversation

@gitadityakumar

Copy link
Copy Markdown
Owner

Description

Adds LibreShot as a supported asset provider in ast. LibreShot offers free CC0 stock photography created by photographer Martin Vorel for commercial and personal usage.

Features

  • Search: Queries https://libreshot.com/?s={query} and extracts image cards, lazy-loaded image sources (data-src), and alt titles.
  • Master Full-Resolution Downloads: Strips geometry suffixes (-508x339, -508x300) to download original full-resolution master photos (up to 10+ MB JPEGs @ 3500x2333) directly from LibreShot media storage.
  • Metadata: Retains clean photo IDs, descriptive titles, author attribution (Martin Vorel), and source page URLs.
  • Integration: Fully wired into registry, CLI search commands (ast s libreshot ...), and interactive mode.

Verification

  • Tested via ast s libreshot "forest" --limit 2 --json
  • Verified direct download via ast s libreshot "forest" --first --download -o /tmp/downloads-test (downloaded 2.9 MB master JPEG forest_D71_9482-free-image.jpg @ 3500x2333)
  • Verified all unit and integration tests pass with zig build && zig build test.

@gitadityakumar
gitadityakumar merged commit 071dbfe into main Sep 1, 2026
1 check passed
@gitadityakumar
gitadityakumar deleted the feat/libreshot-provider branch September 1, 2026 15:27
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