2.0.3 • Published 5 months ago

@payload-bites/image-search v2.0.3

Weekly downloads
-
License
-
Repository
github
Last release
5 months ago

Image search

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

https://github.com/user-attachments/assets/b99bb160-788f-4689-9e40-005a6fe0bced

Compatibility table

Payload versionImage search version
v3.18.0 or earlierIncompatible
v3.19.0 to v3.23.0v1.x
v3.24.0 or laterv2.x

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.
2.0.3

5 months ago

2.0.2

5 months ago

2.0.1

7 months ago

2.0.0

8 months ago

1.4.1

9 months ago

1.4.0

9 months ago

1.3.0

9 months ago

1.2.1

9 months ago

1.2.0

9 months ago

1.1.0

9 months ago

1.0.0

9 months ago