Skip to content

feat(providers): add NegativeSpace stock photo provider - #10

Merged
gitadityakumar merged 3 commits into
mainfrom
feat/negativespace-provider
Aug 31, 2026
Merged

gitadityakumar merged 3 commits into
mainfrom
feat/negativespace-provider

Conversation

@gitadityakumar

Copy link
Copy Markdown
Owner

Description

Adds NegativeSpace as a supported asset provider in ast. NegativeSpace offers high-resolution, CC0 stock photography completely free for personal and commercial projects.

Features

  • Search: Scrapes https://negativespace.co/?s={query} and extracts photo cards, descriptive titles, permalink slugs, and master image paths.
  • Full Resolution Downloads: Strips WordPress geometry suffixes (-1062x708) to download the original full-resolution master photo JPEGs (up to 20+ MB) directly from the Flywheel / CDN cluster.
  • Metadata: Retains asset IDs, page links, prompt descriptions, and author attribution.
  • Integration: Fully wired into registry, CLI search commands (ast s negativespace ...), and interactive mode.

Verification

  • Tested via ast s negativespace "nature" --limit 2 --json
  • Verified direct download via ast s negativespace "nature" --first --download -o /tmp/downloads-test (downloaded 16 MB full master JPEG rocks-waterfall-nature.jpg @ 3540x4720)
  • Verified all unit and integration tests pass with zig build && zig build test.

@gitadityakumar
gitadityakumar merged commit 41882de into main Aug 31, 2026
1 check passed
@gitadityakumar
gitadityakumar deleted the feat/negativespace-provider branch August 31, 2026 18:14
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