rubix-studios-pty-ltd

payload upstash

by rubix-studios-pty-ltd
Databases & data
v3
v4
^3.94.2 || ^4.0.0-beta.12
MIT

Overview

Summary generated from the README

Provides a KV adapter that stores Payload's key-value data in Upstash Redis. It is set through the kv option in the Payload config and then used through payload.kv with get and set calls. Supports a configurable key prefix and per-prefix TTL expiration. Works with Payload v3 and v4.

Features

  • Plugs into the Payload config kv option
  • Reads and writes values through payload.kv
  • Configurable key prefix to isolate stored keys
  • Per-prefix TTL rules for automatic expiration
  • Connection URL and token read from environment variables
  • Single release supporting Payload v3 and v4

Use cases

  • Store Payload KV data in a serverless Redis service on Upstash
  • Expire cache or session style keys automatically using prefix-based TTLs

From the author

Upstash KV adapter for Payload

Installation

npm i @rubixstudios/payload-upstash

7

Stars

0

Forks

0

Open Issues

Today

Last Updated

333

Weekly Downloads

v1.3.7

npm Version

12.2 KB

Unpacked Size

1

Dependencies

GitHub stars

70 since Sep 7

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

368+353 since Sep 7

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 6, 2026368
Dec 5, 2026375
Dec 4, 2026376
Dec 3, 2026472
Dec 2, 2026289
Dec 1, 2026292
Nov 30, 2026411
Nov 29, 2026365
Nov 28, 2026353
Nov 27, 2026345
Nov 26, 2026167
Nov 25, 2026158
Nov 24, 2026154
Nov 23, 202641
Nov 22, 202659
Nov 21, 2026238
Nov 20, 2026394
Nov 19, 2026398
Nov 18, 2026433
Nov 17, 2026429
Nov 16, 2026432
Nov 15, 2026417
Nov 14, 2026264
Nov 13, 2026263
Nov 12, 2026262
Nov 11, 2026228
Nov 10, 2026257
Nov 9, 2026256
Nov 8, 2026251
Nov 7, 2026228
Nov 6, 202669
Nov 5, 202671
Nov 4, 202678
Nov 3, 202663
Nov 2, 202661
Nov 1, 2026240
Oct 31, 2026236
Oct 30, 2026236
Oct 29, 2026229
Oct 28, 2026218
Oct 27, 2026206
Oct 26, 2026230
Oct 25, 202652
Oct 24, 202652
Oct 23, 202647
Oct 22, 202655
Oct 21, 202693
Oct 20, 2026255
Oct 19, 2026223
Oct 18, 2026220
Oct 17, 2026225
Oct 16, 2026229
Oct 15, 2026222
Oct 14, 2026185
Oct 13, 202626
Oct 12, 202622
Oct 11, 202631
Oct 10, 202628
Oct 9, 202627
Oct 8, 202629
Oct 7, 202629
Oct 6, 202621
Oct 5, 202626
Oct 4, 202619
Oct 3, 202618
Oct 2, 202617
Oct 1, 202620
Sep 30, 202630
Sep 29, 202642
Sep 28, 202652
Sep 27, 2026197
Sep 26, 2026220
Sep 25, 2026220
Sep 24, 2026217
Sep 23, 2026214
Sep 22, 2026203
Sep 21, 2026214
Sep 20, 202668
Sep 19, 202641
Sep 18, 202640
Sep 17, 202640
Sep 16, 202634
Sep 15, 202635
Sep 14, 20269
Sep 13, 20268
Sep 12, 20269
Sep 11, 20269
Sep 10, 20269
Sep 9, 202615
Sep 8, 202615
Sep 7, 202615

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

Health Score

82/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/1133243750-root.svg)](https://payloaddirectory.dev/plugins/1133243750-root)
HTML
<a href="https://payloaddirectory.dev/plugins/1133243750-root"><img src="https://payloaddirectory.dev/badge/1133243750-root.svg" alt="Payload Directory"></a>
Updated Dec 5, 2026Created Jan 13, 2026Published Nov 30, 2026

README

PayloadCMS + Upstash KV Adapter

This package provides a way to use Upstash as a KV adapter with Payload.

Compatibility

This plugin supports both Payload CMS v3 and v4 through a single release line.

Payload CMSRelease branchnpm dist-tag
v4mainlatest
v3mainlatest

Both versions are supported by the same package release. No separate branches or version-specific installations are required.

Installation

pnpm add @rubixstudios/payload-upstash

Usage

import { upstashKVAdapter } from '@rubixstudios/payload-upstash'

export default buildConfig({
  collections: [Media],
  kv: upstashKVAdapter({
    // Upstash connection URL. Defaults to process.env.UPSTASH_URL
    url: process.env.UPSTASH_URL!,
    token: process.env.UPSTASH_TOKEN!,
    // Optional prefix for Upstash Redis keys to isolate the store. Defaults to 'payload-kv:'
    keyPrefix: 'kv-storage:',
    // Optional TTL configuration for automatic expiration by key prefix
    ttl: [
      { prefix: 'session:', ttl: 3600 },
      { prefix: 'cache:', ttl: 300 },
      { prefix: 'temp:', ttl: 60 },
    ],
  }),
})

Then you can access the KV storage using payload.kv:

await payload.kv.set('key', { value: 1 })
const data = await payload.kv.get('key')
payload.logger.info(data)

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For support or inquiries:

Author

Rubix Studios
https://rubixstudios.com.au

Similar plugins