rilrom

image search

by rilrom
payload-bites
Media & images
v4
>=4.0.0-beta.10 <5.0.0
MIT

Overview

Summary generated from the README

Adds image search to the Payload admin so editors can find images from online providers without leaving the CMS. It is added through the imageSearchPlugin function in the Payload config. At least one provider API key is required, set through environment variables for Unsplash, Pexels or Pixabay. Versions for Payload 3 and Payload 4 beta are published separately.

Features

  • Searches Unsplash, Pexels and Pixabay from the admin panel
  • Provider API keys are configured through environment variables
  • Custom access control for provider endpoints
  • Translations included
  • Separate plugin versions matched to Payload 3 and 4 releases

Use cases

  • Find and add stock photos to a media library without leaving the CMS
  • Give editors a single search across several free image providers

From the author

search for images in Payload using various online image providers

Installation

npm i @payload-bites/image-search

115

Stars

7

Forks

2

Open Issues

1 weeks ago

Last Updated

1.3k

Weekly Downloads

v3.6.2

npm Version

299.7 KB

Unpacked Size

1

Dependencies

Repository stars

115+3 since Sep 6

Show data
Repository stars by day (UTC)
DateStars
Dec 5, 2026115
Dec 4, 2026115
Dec 3, 2026115
Dec 2, 2026115
Dec 1, 2026115
Nov 30, 2026115
Nov 29, 2026115
Nov 28, 2026115
Nov 27, 2026115
Nov 26, 2026115
Nov 25, 2026114
Nov 24, 2026114
Nov 23, 2026114
Nov 22, 2026114
Nov 21, 2026114
Nov 20, 2026114
Nov 19, 2026114
Nov 18, 2026114
Nov 17, 2026114
Nov 16, 2026114
Nov 15, 2026114
Nov 14, 2026114
Nov 13, 2026114
Nov 12, 2026114
Nov 11, 2026114
Nov 10, 2026114
Nov 9, 2026114
Nov 8, 2026114
Nov 7, 2026114
Nov 6, 2026114
Nov 5, 2026114
Nov 4, 2026114
Nov 3, 2026114
Nov 2, 2026114
Nov 1, 2026114
Oct 31, 2026114
Oct 30, 2026114
Oct 29, 2026114
Oct 28, 2026114
Oct 27, 2026114
Oct 26, 2026114
Oct 25, 2026114
Oct 24, 2026114
Oct 23, 2026114
Oct 22, 2026114
Oct 21, 2026113
Oct 20, 2026113
Oct 19, 2026113
Oct 18, 2026113
Oct 17, 2026113
Oct 16, 2026113
Oct 15, 2026113
Oct 14, 2026113
Oct 13, 2026113
Oct 12, 2026113
Oct 11, 2026113
Oct 10, 2026113
Oct 9, 2026113
Oct 8, 2026113
Oct 7, 2026113
Oct 6, 2026113
Oct 5, 2026113
Oct 4, 2026113
Oct 3, 2026113
Oct 2, 2026113
Oct 1, 2026113
Sep 30, 2026113
Sep 29, 2026113
Sep 28, 2026113
Sep 27, 2026113
Sep 26, 2026113
Sep 25, 2026113
Sep 24, 2026113
Sep 23, 2026113
Sep 22, 2026113
Sep 21, 2026113
Sep 20, 2026113
Sep 19, 2026113
Sep 18, 2026113
Sep 17, 2026113
Sep 16, 2026113
Sep 15, 2026113
Sep 14, 2026113
Sep 13, 2026112
Sep 12, 2026112
Sep 11, 2026112
Sep 10, 2026112
Sep 9, 2026112
Sep 8, 2026112
Sep 7, 2026112
Sep 6, 2026112

Shared by 6 plugins in rilrom/payload-bites.

npm weekly downloads

1.6K+1.1K since Sep 6

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 5, 20261,625
Dec 4, 20261,820
Dec 3, 20262,135
Dec 2, 20262,041
Dec 1, 20262,039
Nov 30, 20262,176
Nov 29, 20262,015
Nov 28, 20261,621
Nov 27, 20261,390
Nov 26, 20261,015
Nov 25, 20261,015
Nov 24, 20261,066
Nov 23, 2026986
Nov 22, 20261,061
Nov 21, 20261,048
Nov 20, 20261,019
Nov 19, 20261,302
Nov 18, 20261,319
Nov 17, 20261,106
Nov 16, 20261,453
Nov 15, 20261,466
Nov 14, 20261,624
Nov 13, 20261,745
Nov 12, 20261,470
Nov 11, 20261,445
Nov 10, 20261,612
Nov 9, 20261,180
Nov 8, 20261,137
Nov 7, 20261,048
Nov 6, 20261,057
Nov 5, 20261,017
Nov 4, 20261,100
Nov 3, 20261,016
Nov 2, 20261,114
Nov 1, 20261,119
Oct 31, 20261,078
Oct 30, 20261,042
Oct 29, 2026936
Oct 28, 2026708
Oct 27, 2026779
Oct 26, 2026766
Oct 25, 2026708
Oct 24, 2026676
Oct 23, 2026535
Oct 22, 2026665
Oct 21, 2026756
Oct 20, 2026655
Oct 19, 2026532
Oct 18, 2026502
Oct 17, 2026507
Oct 16, 2026575
Oct 15, 2026517
Oct 14, 2026552
Oct 13, 2026478
Oct 12, 2026498
Oct 11, 2026524
Oct 10, 2026641
Oct 9, 2026731
Oct 8, 2026760
Oct 7, 2026876
Oct 6, 2026969
Oct 5, 20261,150
Oct 4, 20261,393
Oct 3, 20261,362
Oct 2, 20261,277
Oct 1, 20261,307
Sep 30, 20261,126
Sep 29, 20261,089
Sep 28, 2026933
Sep 27, 2026647
Sep 26, 2026508
Sep 25, 2026481
Sep 24, 2026402
Sep 23, 2026404
Sep 22, 2026516
Sep 21, 2026557
Sep 20, 2026568
Sep 19, 2026602
Sep 18, 2026726
Sep 17, 2026787
Sep 16, 2026844
Sep 15, 2026843
Sep 14, 2026835
Sep 13, 2026887
Sep 12, 2026896
Sep 11, 2026834
Sep 10, 2026801
Sep 9, 2026770
Sep 8, 2026671
Sep 7, 2026659
Sep 6, 2026575

Each point is npm's rolling 7-day download count.

Health Score

87/100Excellent

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/908347705-image-search.svg)](https://payloaddirectory.dev/plugins/908347705-image-search)
HTML
<a href="https://payloaddirectory.dev/plugins/908347705-image-search"><img src="https://payloaddirectory.dev/badge/908347705-image-search.svg" alt="Payload Directory"></a>
Updated Nov 26, 2026Created Dec 25, 2024Published Nov 26, 2026

README

Search for images from the comfort of your own CMS using various image providers.

Compatibility table

Payload versionImage search version
v3.18.0 or earlierIncompatible
v3.19.0 to v3.23.0v1.x
v3.24.0 to v3.42.0v2.x
v3.43.0 or later v3v3.x
v4.0.0-beta.10 or laterv4.x

Payload 4 versions are prereleases. Install them with pnpm add @payload-bites/image-search@beta.

Quick start

  1. Install the plugin:
pnpm add @payload-bites/image-search
  1. Add environment variables:
NameCORS URLDescription
API_KEY_UNSPLASHhttps://images.unsplash.comThe key you configured to use the Unsplash API
API_KEY_PEXELShttps://images.pexels.comThe key you configured to use the Pexels API
API_KEY_PIXABAYhttps://pixabay.comThe key you configured to use the Pixabay API

[!IMPORTANT] At least one API key is required to use this plugin.

  1. Add the plugin to your payload.config.ts:
/// ....
import { imageSearchPlugin } from "@payload-bites/image-search";

export default buildConfig({
  // ...
  plugins: [
    // ...
    imageSearchPlugin({
      // ...
    }),
  ],
});

Defaults

For defaults, refer to defaults.ts.

Options

For options, refer to types.ts.

Providers

A provider is an online image library that allows you to view and download images for use in your own projects. In order to use them, you must register an API key with the provider and assign it to its respective environment variable in your project.

Liability

Before using any provider, ensure you have reviewed and agreed to their terms and usage policies. Contributors to this plugin are not responsible for how these images are used.

Roadmap

  • Image search bulk upload (awaiting custom component implementation by Payload team - discussion).
  • Translations.
  • Custom access control for provider endpoints.

Similar plugins