novanda1

payload imagekit

by novanda1
Cloud storage
v3
^3.59.1

Overview

Summary generated from the README

Uploads images from configured Payload upload collections to ImageKit instead of the local disk. You pass ImageKit keys and endpoint plus per-collection upload options, and choose which ImageKit response properties to save in the database for frontend use. Requires Payload 3.59.1 or newer and conflicts with Payload Cloud file storage unless that is disabled.

Features

  • Syncs uploads from chosen Payload collections to ImageKit
  • Per-collection ImageKit upload options such as folder and auto-tagging extensions
  • Saves selected ImageKit response properties like url and AITags to the document
  • Local disk storage is disabled by default, with an option to change it
  • Works alongside the Payload Cloud plugin when its storage is turned off

Use cases

  • Serve and transform media through the ImageKit CDN instead of local storage
  • Attach AWS or Google auto-generated tags to uploaded images
  • Store ImageKit URLs in Payload documents for use in a frontend

From the author

Payload CMS plugin ImageKit

Installation

npm i payloadcms-plugin-imagekit

24

Stars

6

Forks

0

Open Issues

1 years ago

Last Updated

45

Weekly Downloads

v0.5.0

npm Version

40.6 KB

Unpacked Size

4

Dependencies

GitHub stars

240 since Sep 6

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

17+2 since Sep 6

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 5, 202617
Dec 4, 202617
Dec 3, 202614
Dec 2, 202613
Dec 1, 202615
Nov 30, 202610
Nov 29, 202622
Nov 28, 202623
Nov 27, 202621
Nov 26, 202621
Nov 25, 202619
Nov 24, 202617
Nov 23, 202616
Nov 22, 20265
Nov 21, 20264
Nov 20, 20267
Nov 19, 20268
Nov 18, 20269
Nov 17, 20269
Nov 16, 20269
Nov 15, 20266
Nov 14, 20267
Nov 13, 20263
Nov 12, 202613
Nov 11, 202613
Nov 10, 202616
Nov 9, 202617
Nov 8, 202618
Nov 7, 202619
Nov 6, 202623
Nov 5, 202612
Nov 4, 202621
Nov 3, 202621
Nov 2, 202635
Nov 1, 202647
Oct 31, 202646
Oct 30, 202656
Oct 29, 202656
Oct 28, 202646
Oct 27, 202645
Oct 26, 202630
Oct 25, 202618
Oct 24, 202617
Oct 23, 20263
Oct 22, 20264
Oct 21, 202619
Oct 20, 202620
Oct 19, 202620
Oct 18, 202620
Oct 17, 202620
Oct 16, 202621
Oct 15, 202621
Oct 14, 202619
Oct 13, 202617
Oct 12, 202617
Oct 11, 202617
Oct 10, 202618
Oct 9, 202618
Oct 8, 202617
Oct 7, 20265
Oct 6, 20266
Oct 5, 202610
Oct 4, 202612
Oct 3, 202611
Oct 2, 202610
Oct 1, 202610
Sep 30, 202610
Sep 29, 202628
Sep 28, 202625
Sep 27, 202625
Sep 26, 202631
Sep 25, 202632
Sep 24, 202632
Sep 23, 202633
Sep 22, 202629
Sep 21, 202630
Sep 20, 202628
Sep 19, 202623
Sep 18, 202624
Sep 17, 202627
Sep 16, 202627
Sep 15, 202611
Sep 14, 202613
Sep 13, 202614
Sep 12, 202613
Sep 11, 202613
Sep 10, 202610
Sep 9, 202615
Sep 8, 202615
Sep 7, 202615
Sep 6, 202615

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

Health Score

37/100Fair

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/521210678-root.svg)](https://payloaddirectory.dev/plugins/521210678-root)
HTML
<a href="https://payloaddirectory.dev/plugins/521210678-root"><img src="https://payloaddirectory.dev/badge/521210678-root.svg" alt="Payload Directory"></a>
Updated Oct 15, 2025Created Aug 4, 2022Published Oct 15, 2025

README

Payload CMS ImageKit Plugin

This plugin sync your image to ImageKit.

Installation

npm install payloadcms-plugin-imagekit

Usage

Install this plugin within your Payload as follows:

import { buildConfig } from "payload/config";
import imagekitPlugin from "payloadcms-plugin-imagekit";

export default buildConfig({
  // ...
  plugins: [
    imagekitPlugin({
      config: {
        publicKey: "your_public_api_key",
        privateKey: "your_private_api_key",
        endpoint: "https://ik.imagekit.io/your_imagekit_id/",
      },
      collections: {
        media: {
          uploadOption: {
            folder: "some folder",
            extensions: [
              {
                name: "aws-auto-tagging",
                minConfidence: 80, // only tags with a confidence value higher than 80% will be attached
                maxTags: 10, // a maximum of 10 tags from aws will be attached
              },
              {
                name: "google-auto-tagging",
                minConfidence: 70, // only tags with a confidence value higher than 70% will be attached
                maxTags: 10, // a maximum of 10 tags from google will be attached
              },
            ],
          },
          savedProperties: ["url", "AITags"],
        },
      },
    }),
  ],
});

Plugin options

This plugin have 1 parameter that contain an object.

OptionDescription
config (required)ImageKit Config ImageKitOptions
collections (optional)Collections options

config

Type object

  • publicKey: type string
  • privateKey: type string
  • endpoint: type string;

collections

Type object

  • [key] (required)
    type: string
    description: Object keys should be PayloadCMS collection name that store the media/image.
    value type: object
    value options:

    • uploadOption (optional)
      type: object
      type detail: TUploadOption. Except file.
      description: An options to saved in ImageKit.

    • savedProperties (optional)
      type: []string
      type detail: TImageKitProperties. Except thumbnailUrl and fileId.
      description: An object that saved to PayloadCMS/Database that you may need it for your Frontend.

    • disableLocalStorage (optional)
      type: boolean
      default: true
      description: Completely disable uploading files to disk locally. More

Payload Cloud

If your project is hosted using Payload Cloud - their default file storage solution will conflict with this plugin. You will need to disable file storage via the Payload Cloud plugin like so:

// ...
plugins: [
  payloadCloud({
    storage: false, // Disable file storage
  }),
  imagekitPlugin({
    // Your imagekit config here
  }),
],
// ...

Screenshot

image

Similar plugins