Storage adapter that keeps Payload uploads in Bunny Storage and streams video through Bunny Stream. It is registered in the storage array of the Payload config and attached to upload collections. It targets Payload 4 beta or later, Next.js 16.4 or newer, React 19 and a recent Node.js version.
Payload storage adapter for Bunny.net
Installation
npm i @seshuk/payload-storage-bunny60
Stars
7
Forks
7
Open Issues
6 days ago
Last Updated
3.7k
Weekly Downloads
v3.1.2
npm Version
1.0 MB
Unpacked Size
5
Dependencies
60+3 since Sep 6
| Date | Stars |
|---|---|
| Dec 5, 2026 | 60 |
| Dec 4, 2026 | 60 |
| Dec 3, 2026 | 60 |
| Dec 2, 2026 | 60 |
| Dec 1, 2026 | 60 |
| Nov 30, 2026 | 60 |
| Nov 29, 2026 | 60 |
| Nov 28, 2026 | 60 |
| Nov 27, 2026 | 60 |
| Nov 26, 2026 | 60 |
| Nov 25, 2026 | 60 |
| Nov 24, 2026 | 60 |
| Nov 23, 2026 | 60 |
| Nov 22, 2026 | 60 |
| Nov 21, 2026 | 60 |
| Nov 20, 2026 | 60 |
| Nov 19, 2026 | 60 |
| Nov 18, 2026 | 60 |
| Nov 17, 2026 | 60 |
| Nov 16, 2026 | 60 |
| Nov 15, 2026 | 60 |
| Nov 14, 2026 | 60 |
| Nov 13, 2026 | 60 |
| Nov 12, 2026 | 60 |
| Nov 11, 2026 | 60 |
| Nov 10, 2026 | 60 |
| Nov 9, 2026 | 60 |
| Nov 8, 2026 | 60 |
| Nov 7, 2026 | 60 |
| Nov 6, 2026 | 60 |
| Nov 5, 2026 | 60 |
| Nov 4, 2026 | 60 |
| Nov 3, 2026 | 60 |
| Nov 2, 2026 | 60 |
| Nov 1, 2026 | 60 |
| Oct 31, 2026 | 60 |
| Oct 30, 2026 | 60 |
| Oct 29, 2026 | 60 |
| Oct 28, 2026 | 60 |
| Oct 27, 2026 | 60 |
| Oct 26, 2026 | 60 |
| Oct 25, 2026 | 60 |
| Oct 24, 2026 | 60 |
| Oct 23, 2026 | 60 |
| Oct 22, 2026 | 60 |
| Oct 21, 2026 | 60 |
| Oct 20, 2026 | 60 |
| Oct 19, 2026 | 60 |
| Oct 18, 2026 | 60 |
| Oct 17, 2026 | 59 |
| Oct 16, 2026 | 59 |
| Oct 15, 2026 | 59 |
| Oct 14, 2026 | 59 |
| Oct 13, 2026 | 59 |
| Oct 12, 2026 | 59 |
| Oct 11, 2026 | 58 |
| Oct 10, 2026 | 58 |
| Oct 9, 2026 | 58 |
| Oct 8, 2026 | 58 |
| Oct 7, 2026 | 58 |
| Oct 6, 2026 | 58 |
| Oct 5, 2026 | 58 |
| Oct 4, 2026 | 58 |
| Oct 3, 2026 | 58 |
| Oct 2, 2026 | 58 |
| Oct 1, 2026 | 58 |
| Sep 30, 2026 | 58 |
| Sep 29, 2026 | 58 |
| Sep 28, 2026 | 58 |
| Sep 27, 2026 | 58 |
| Sep 26, 2026 | 58 |
| Sep 25, 2026 | 58 |
| Sep 24, 2026 | 58 |
| Sep 23, 2026 | 58 |
| Sep 22, 2026 | 58 |
| Sep 21, 2026 | 58 |
| Sep 20, 2026 | 58 |
| Sep 19, 2026 | 58 |
| Sep 18, 2026 | 58 |
| Sep 17, 2026 | 58 |
| Sep 16, 2026 | 57 |
| Sep 15, 2026 | 57 |
| Sep 14, 2026 | 57 |
| Sep 13, 2026 | 57 |
| Sep 12, 2026 | 57 |
| Sep 11, 2026 | 57 |
| Sep 10, 2026 | 57 |
| Sep 9, 2026 | 57 |
| Sep 8, 2026 | 57 |
| Sep 7, 2026 | 57 |
| Sep 6, 2026 | 57 |
3.5K+815 since Sep 6
| Date | Weekly downloads |
|---|---|
| Dec 5, 2026 | 3,483 |
| Dec 4, 2026 | 3,272 |
| Dec 3, 2026 | 2,751 |
| Dec 2, 2026 | 3,176 |
| Dec 1, 2026 | 3,320 |
| Nov 30, 2026 | 3,606 |
| Nov 29, 2026 | 3,631 |
| Nov 28, 2026 | 3,714 |
| Nov 27, 2026 | 3,495 |
| Nov 26, 2026 | 4,006 |
| Nov 25, 2026 | 4,217 |
| Nov 24, 2026 | 4,105 |
| Nov 23, 2026 | 4,232 |
| Nov 22, 2026 | 4,504 |
| Nov 21, 2026 | 4,710 |
| Nov 20, 2026 | 5,127 |
| Nov 19, 2026 | 4,805 |
| Nov 18, 2026 | 4,374 |
| Nov 17, 2026 | 4,383 |
| Nov 16, 2026 | 4,066 |
| Nov 15, 2026 | 4,187 |
| Nov 14, 2026 | 4,439 |
| Nov 13, 2026 | 4,517 |
| Nov 12, 2026 | 4,592 |
| Nov 11, 2026 | 4,557 |
| Nov 10, 2026 | 4,426 |
| Nov 9, 2026 | 4,290 |
| Nov 8, 2026 | 3,801 |
| Nov 7, 2026 | 3,250 |
| Nov 6, 2026 | 2,995 |
| Nov 5, 2026 | 3,053 |
| Nov 4, 2026 | 2,970 |
| Nov 3, 2026 | 3,001 |
| Nov 2, 2026 | 3,106 |
| Nov 1, 2026 | 3,557 |
| Oct 31, 2026 | 3,718 |
| Oct 30, 2026 | 3,577 |
| Oct 29, 2026 | 2,873 |
| Oct 28, 2026 | 2,411 |
| Oct 27, 2026 | 2,378 |
| Oct 26, 2026 | 2,360 |
| Oct 25, 2026 | 2,054 |
| Oct 24, 2026 | 2,027 |
| Oct 23, 2026 | 1,512 |
| Oct 22, 2026 | 2,087 |
| Oct 21, 2026 | 2,675 |
| Oct 20, 2026 | 2,872 |
| Oct 19, 2026 | 2,800 |
| Oct 18, 2026 | 3,152 |
| Oct 17, 2026 | 3,528 |
| Oct 16, 2026 | 4,081 |
| Oct 15, 2026 | 4,294 |
| Oct 14, 2026 | 4,195 |
| Oct 13, 2026 | 4,438 |
| Oct 12, 2026 | 4,559 |
| Oct 11, 2026 | 4,769 |
| Oct 10, 2026 | 5,209 |
| Oct 9, 2026 | 5,670 |
| Oct 8, 2026 | 5,277 |
| Oct 7, 2026 | 5,251 |
| Oct 6, 2026 | 5,046 |
| Oct 5, 2026 | 4,927 |
| Oct 4, 2026 | 4,631 |
| Oct 3, 2026 | 4,245 |
| Oct 2, 2026 | 3,954 |
| Oct 1, 2026 | 4,127 |
| Sep 30, 2026 | 4,329 |
| Sep 29, 2026 | 4,083 |
| Sep 28, 2026 | 4,345 |
| Sep 27, 2026 | 3,927 |
| Sep 26, 2026 | 3,294 |
| Sep 25, 2026 | 2,835 |
| Sep 24, 2026 | 3,109 |
| Sep 23, 2026 | 2,891 |
| Sep 22, 2026 | 2,871 |
| Sep 21, 2026 | 2,518 |
| Sep 20, 2026 | 2,514 |
| Sep 19, 2026 | 2,437 |
| Sep 18, 2026 | 2,427 |
| Sep 17, 2026 | 1,938 |
| Sep 16, 2026 | 1,682 |
| Sep 15, 2026 | 1,748 |
| Sep 14, 2026 | 1,697 |
| Sep 13, 2026 | 1,662 |
| Sep 12, 2026 | 1,677 |
| Sep 11, 2026 | 1,740 |
| Sep 10, 2026 | 1,891 |
| Sep 9, 2026 | 2,134 |
| Sep 8, 2026 | 2,242 |
| Sep 7, 2026 | 2,576 |
| Sep 6, 2026 | 2,668 |
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/922465872-root)<a href="https://payloaddirectory.dev/plugins/922465872-root"><img src="https://payloaddirectory.dev/badge/922465872-root.svg" alt="Payload Directory"></a>README
versions (on by default in Payload 4), a replaced file or video stays in Bunny while a version uses it, so restoring a version brings back a working file. Set versions: false on a collection to delete the old file on replace.A resumable TUS upload straight from the browser to Bunny Stream:

The Stream status in the list view, with a filter:

The Bunny Stream player and the status card in the edit view:

An image served from Bunny Storage:

Requires Payload 4.0.0-beta.4 or later (canary builds are not supported), Next.js >=16.4 <17, React 19 and Node.js 24.22.1 or later. For Payload 3, use @seshuk/payload-storage-bunny@3.
[!IMPORTANT] Upgrading from v3? Register the adapter under
storageinstead ofplugins. Some options are renamed, and the plugin throws at startup with the new name for each old key. Custom upload clients must move to Payload'sPOST /api/upload-instructionsendpoint, and SQL databases need a migration for the new upload fields (prefix, theoriginalgroup, andprefixand_objectKeyon image variants). Every database, MongoDB too, first needs Payload'ssizes-to-variantsmigration. Follow the Upgrade Guide.Upgrading from v2? Upgrade to v3 on Payload 3 first and run its one-time data migration. The migration helper ships only in v3 and is removed in v4. Back up your database, then follow the same Upgrade Guide.
One interactive command provisions the Bunny resources you need — storage zone, pull zone, and/or video library — with production defaults, then prints a ready-to-paste bunnyStorage({ … }) block and the matching .env lines. Nothing billable is created without confirmation.
npx @seshuk/payload-storage-bunny@beta init
See the Setup Wizard docs. Prefer to wire it up by hand? Follow the Quick Start.
npm install @seshuk/payload-storage-bunny@beta @payloadcms/[email protected] @payloadcms/[email protected] @payloadcms/[email protected] [email protected]
v4 is in beta under the beta npm tag, and Payload 4 is published under beta. The command also installs the peer dependencies that a Payload app does not have yet. payload and React 19 are already in your app. Use the same exact version for @payloadcms/plugin-cloud-storage, @payloadcms/translations, @payloadcms/ui and your payload package. For Payload 3, use @seshuk/payload-storage-bunny@3.
Add the adapter to the storage array of your Payload config, pointing it at an upload collection:
import { bunnyStorage } from '@seshuk/payload-storage-bunny'
import { buildConfig } from 'payload'
export default buildConfig({
storage: [
bunnyStorage({
collections: {
media: {
prefix: 'media',
disablePayloadAccessControl: true, // serve directly from Bunny's CDN
},
},
storage: {
apiKey: process.env.BUNNY_STORAGE_API_KEY!,
hostname: process.env.BUNNY_STORAGE_HOSTNAME!, // your Pull Zone host, e.g. example.b-cdn.net
zoneName: process.env.BUNNY_STORAGE_ZONE_NAME!,
},
}),
],
})
Add stream for video, purge for cache invalidation, signedUrls for secure links, and more — see the configuration reference.
Full docs are at https://payload-storage-bunny.seshuk.im/:
The plugin sends an anonymous, opt-out usage report once per day: plugin, Payload, and Node versions plus which features are enabled. It never sends secrets, IPs, keys, zone/library names, hostnames, countries, file paths, or collection names. A one-time notice prints on first run.
Opt out with telemetry: false, DO_NOT_TRACK=1, or BUNNY_TELEMETRY_DISABLED=1 (also disabled automatically in CI and when payload.config.telemetry is false). See Telemetry for the full list of what is and isn't collected.
Bug reports, feature requests, and questions go to GitHub Issues. For Payload itself, see the Payload docs and Discord.
MIT — see LICENSE.
Built by Maxim Seshuk for the Payload community.
If this plugin saves you time, you can buy me a coffee ☕
Disclosure: links to bunny.net in this README are referral links.
Topics
payload storage sanity
Store Payload media uploads in Sanity Content Lake with crops, focal points and video posters
721.2k/wk0v3
payload storage cloudinary
Cloudinary storage adapter for Payload uploads with transformation presets, dynamic folders and private signed files
58176/wk7v3
payload s3 upload
Send Payload CMS uploads and resized image variants to Amazon S3 with per-collection configuration
48244/wk70v1
payload storage file explorer
Admin file explorer for browsing and managing S3-compatible buckets inside the Payload admin panel
4532/wk12v3
payload imagekit
Sync Payload media uploads to ImageKit and store selected ImageKit properties in the database
3744/wk24v3
payload nextcloud
Nextcloud storage adapter for Payload uploads over WebDAV with optional public share links
334/wk2v3