A Payload CMS plugin that integrates with stock image providers including Unsplash, Pexels and Pixabay.
Installation
npm i @rubixstudios/payload-images7
Stars
0
Forks
0
Open Issues
5 months ago
Last Updated
4
Weekly Downloads
v1.2.0
npm Version
69.9 KB
Unpacked Size
0
Dependencies
Trends appear after 7 days of data. Daily snapshots have not started yet.
Trends appear after 7 days of data. Daily snapshots have not started yet.
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/1141187735-root)<a href="https://payloaddirectory.dev/plugins/1141187735-root"><img src="https://payloaddirectory.dev/badge/1141187735-root.svg" alt="Payload Directory"></a>README
# ⚠️ Deprecated: Migrated to PayloadCMS Media # PayloadCMS Image Search Plugin PayloadCMS plugin for stock image search across Unsplash, Pexels, and Pixabay, with filterable results and instant import. <img width="1899" height="907" alt="image" src="https://github.com/user-attachments/assets/1c19f977-d075-4dfc-9f52-8d9426bc1500" />
# ⚠️ Deprecated: Migrated to PayloadCMS Media
# PayloadCMS Image Search Plugin
PayloadCMS plugin for stock image search across Unsplash, Pexels, and Pixabay, with filterable results and instant import.
<img width="1899" height="907" alt="image" src="https://github.com/user-attachments/assets/1c19f977-d075-4dfc-9f52-8d9426bc1500" />
This project is an independent implementation derived [PayloadBites' Image Search](https://github.com/rilrom/payload-bites/tree/main/packages/image-search) extended with provider-specific image filtering and improved Windows OS compatibility.
## Installation
```sh
pnpm add @rubixstudios/payload-images
```
```typescript
// payload.config.ts
import { buildConfig } from 'payload/config'
import { imagePlugin } from '@rubixstudios/payload-images'
export default buildConfig({
plugins: [
imagePlugin({
disabled: false, // Optional, defaults to false
access: ({ req: { user } }) => Boolean(user), // Image search access control
pexels: process.env.API_KEY_PEXELS!,
pixabay: process.env.API_KEY_PIXABAY!,
unsplash: process.env.API_KEY_UNSPLASH!,
}),
],
})
```
## Notes
API key can be obtained from the respective provider's website.
- [Unsplash](https://unsplash.com/developers)
- [Pexels](https://www.pexels.com/api/)
- [Pixabay](https://pixabay.com/api/docs/)
When using Unplash, utilise your Access Key for the API Token.
## Features
- Stock image search inside Payload Admin
- Providers: Unsplash, Pexels, Pixabay
- Provider-specific filters (color, orientation, size, type)
- Featured and keyword search modes
- One-click image import
- Permission-based access control
## Liability
Rubix Studios, its developers, and contributors bear no responsibility for how images are used.
Before using any provider, ensure you have reviewed and agreed to their terms and usage policies.
## Support
For support or inquiries:
- LinkedIn: [rubixvi](https://www.linkedin.com/in/rubixvi/)
- Website: [Rubix Studios](https://rubixstudios.com.au)
## Author
Rubix Studios Pty. Ltd.
[https://rubixstudios.com.au](https://rubixstudios.com.au)
## Acknowledgments
This project is based on the Image Search by Riley Langbein:
- [Riley Langbein](https://github.com/rilrom)
Topics
Tags
payload plugin aspect preview
Crop and focal point editing with live multi-aspect-ratio previews for Payload upload collections
7534/wk6v3
blur data urls
Generates blur placeholder data URLs for images uploaded to Payload media collections
6966/wk83v3
payload media
Search Unsplash, Pexels and Pixabay stock images and videos from Payload upload collections
680/wk8v4
images
On-demand Sharp image transforms with focal points, built-in blur placeholders and a favicons collection
570/wk37v3
payload icons
SVG icon upload collection with automatic optimization and a server component to render icons inline
560/wk18v3
payload images
On-demand Sharp image transforms with focal-point cropping, placeholders and a responsive image component
550/wk18v3