Stores files from selected Payload upload collections in a GitHub repository using the GitHub REST API through Octokit. It is added as a plugin, and it automatically disables local storage for the collections it handles. You configure the repository owner, repo name, branch and an access token, with optional per-collection prefixes. Requires Payload 3.2.2 or later.
Payload storage adapter for GitHub
Installation
npm i payload-storage-github8
Stars
1
Forks
0
Open Issues
2 years ago
Last Updated
41
Weekly Downloads
v1.0.1
npm Version
32.8 KB
Unpacked Size
2
Dependencies
80 since Sep 6
| Date | Stars |
|---|---|
| Dec 5, 2026 | 8 |
| Dec 4, 2026 | 8 |
| Dec 3, 2026 | 8 |
| Dec 2, 2026 | 8 |
| Dec 1, 2026 | 8 |
| Nov 30, 2026 | 8 |
| Nov 29, 2026 | 8 |
| Nov 28, 2026 | 8 |
| Nov 27, 2026 | 8 |
| Nov 26, 2026 | 8 |
| Nov 25, 2026 | 8 |
| Nov 24, 2026 | 8 |
| Nov 23, 2026 | 8 |
| Nov 22, 2026 | 8 |
| Nov 21, 2026 | 8 |
| Nov 20, 2026 | 8 |
| Nov 19, 2026 | 8 |
| Nov 18, 2026 | 8 |
| Nov 17, 2026 | 8 |
| Nov 16, 2026 | 8 |
| Nov 15, 2026 | 8 |
| Nov 14, 2026 | 8 |
| Nov 13, 2026 | 8 |
| Nov 12, 2026 | 8 |
| Nov 11, 2026 | 8 |
| Nov 10, 2026 | 8 |
| Nov 9, 2026 | 8 |
| Nov 8, 2026 | 8 |
| Nov 7, 2026 | 8 |
| Nov 6, 2026 | 8 |
| Nov 5, 2026 | 8 |
| Nov 4, 2026 | 8 |
| Nov 3, 2026 | 8 |
| Nov 2, 2026 | 8 |
| Nov 1, 2026 | 8 |
| Oct 31, 2026 | 8 |
| Oct 30, 2026 | 8 |
| Oct 29, 2026 | 8 |
| Oct 28, 2026 | 8 |
| Oct 27, 2026 | 8 |
| Oct 26, 2026 | 8 |
| Oct 25, 2026 | 8 |
| Oct 24, 2026 | 8 |
| Oct 23, 2026 | 8 |
| Oct 22, 2026 | 9 |
| Oct 21, 2026 | 8 |
| Oct 20, 2026 | 8 |
| Oct 19, 2026 | 8 |
| Oct 18, 2026 | 8 |
| Oct 17, 2026 | 8 |
| Oct 16, 2026 | 8 |
| Oct 15, 2026 | 8 |
| Oct 14, 2026 | 8 |
| Oct 13, 2026 | 8 |
| Oct 12, 2026 | 8 |
| Oct 11, 2026 | 8 |
| Oct 10, 2026 | 8 |
| Oct 9, 2026 | 8 |
| Oct 8, 2026 | 8 |
| Oct 7, 2026 | 8 |
| Oct 6, 2026 | 8 |
| Oct 5, 2026 | 8 |
| Oct 4, 2026 | 8 |
| Oct 3, 2026 | 8 |
| Oct 2, 2026 | 8 |
| Oct 1, 2026 | 8 |
| Sep 30, 2026 | 8 |
| Sep 29, 2026 | 8 |
| Sep 28, 2026 | 8 |
| Sep 27, 2026 | 8 |
| Sep 26, 2026 | 8 |
| Sep 25, 2026 | 8 |
| Sep 24, 2026 | 8 |
| Sep 23, 2026 | 8 |
| Sep 22, 2026 | 8 |
| Sep 21, 2026 | 8 |
| Sep 20, 2026 | 8 |
| Sep 19, 2026 | 8 |
| Sep 18, 2026 | 8 |
| Sep 17, 2026 | 8 |
| Sep 16, 2026 | 8 |
| Sep 15, 2026 | 8 |
| Sep 14, 2026 | 8 |
| Sep 13, 2026 | 8 |
| Sep 12, 2026 | 8 |
| Sep 11, 2026 | 8 |
| Sep 10, 2026 | 8 |
| Sep 9, 2026 | 8 |
| Sep 8, 2026 | 8 |
| Sep 7, 2026 | 8 |
| Sep 6, 2026 | 8 |
40+15 since Sep 6
| Date | Weekly downloads |
|---|---|
| Dec 5, 2026 | 40 |
| Dec 4, 2026 | 9 |
| Dec 3, 2026 | 10 |
| Dec 2, 2026 | 4 |
| Dec 1, 2026 | 5 |
| Nov 30, 2026 | 5 |
| Nov 29, 2026 | 20 |
| Nov 28, 2026 | 21 |
| Nov 27, 2026 | 20 |
| Nov 26, 2026 | 20 |
| Nov 25, 2026 | 20 |
| Nov 24, 2026 | 19 |
| Nov 23, 2026 | 19 |
| Nov 22, 2026 | 5 |
| Nov 21, 2026 | 4 |
| Nov 20, 2026 | 4 |
| Nov 19, 2026 | 4 |
| Nov 18, 2026 | 19 |
| Nov 17, 2026 | 20 |
| Nov 16, 2026 | 21 |
| Nov 15, 2026 | 19 |
| Nov 14, 2026 | 19 |
| Nov 13, 2026 | 20 |
| Nov 12, 2026 | 31 |
| Nov 11, 2026 | 16 |
| Nov 10, 2026 | 19 |
| Nov 9, 2026 | 18 |
| Nov 8, 2026 | 20 |
| Nov 7, 2026 | 20 |
| Nov 6, 2026 | 18 |
| Nov 5, 2026 | 8 |
| Nov 4, 2026 | 8 |
| Nov 3, 2026 | 4 |
| Nov 2, 2026 | 6 |
| Nov 1, 2026 | 5 |
| Oct 31, 2026 | 5 |
| Oct 30, 2026 | 5 |
| Oct 29, 2026 | 3 |
| Oct 28, 2026 | 3 |
| Oct 27, 2026 | 5 |
| Oct 26, 2026 | 5 |
| Oct 25, 2026 | 4 |
| Oct 24, 2026 | 5 |
| Oct 23, 2026 | 5 |
| Oct 22, 2026 | 8 |
| Oct 21, 2026 | 8 |
| Oct 20, 2026 | 6 |
| Oct 19, 2026 | 4 |
| Oct 18, 2026 | 4 |
| Oct 17, 2026 | 7 |
| Oct 16, 2026 | 9 |
| Oct 15, 2026 | 7 |
| Oct 14, 2026 | 22 |
| Oct 13, 2026 | 22 |
| Oct 12, 2026 | 22 |
| Oct 11, 2026 | 23 |
| Oct 10, 2026 | 19 |
| Oct 9, 2026 | 17 |
| Oct 8, 2026 | 16 |
| Oct 7, 2026 | 1 |
| Oct 6, 2026 | 2 |
| Oct 5, 2026 | 2 |
| Oct 4, 2026 | 1 |
| Oct 3, 2026 | 3 |
| Oct 2, 2026 | 6 |
| Oct 1, 2026 | 6 |
| Sep 30, 2026 | 6 |
| Sep 29, 2026 | 21 |
| Sep 28, 2026 | 22 |
| Sep 27, 2026 | 23 |
| Sep 26, 2026 | 25 |
| Sep 25, 2026 | 22 |
| Sep 24, 2026 | 23 |
| Sep 23, 2026 | 23 |
| Sep 22, 2026 | 23 |
| Sep 21, 2026 | 22 |
| Sep 20, 2026 | 22 |
| Sep 19, 2026 | 18 |
| Sep 18, 2026 | 18 |
| Sep 17, 2026 | 19 |
| Sep 16, 2026 | 20 |
| Sep 15, 2026 | 5 |
| Sep 14, 2026 | 8 |
| Sep 13, 2026 | 8 |
| Sep 12, 2026 | 11 |
| Sep 11, 2026 | 27 |
| Sep 10, 2026 | 25 |
| Sep 9, 2026 | 26 |
| Sep 8, 2026 | 26 |
| Sep 7, 2026 | 25 |
| Sep 6, 2026 | 25 |
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/887320325-root)<a href="https://payloaddirectory.dev/plugins/887320325-root"><img src="https://payloaddirectory.dev/badge/887320325-root.svg" alt="Payload Directory"></a>README
This package provides a way to use the GitHub REST API to store files with Payload.
pnpm add payload-storage-github
collections object to specify which collections should use the GitHub Storage adapter. The slug must match one of your existing collection slugs.disableLocalStorage to true for each collection.import { githubStorage } from 'payload-github-storage'
import { Media } from './collections/Media'
import { MediaWithPrefix } from './collections/MediaWithPrefix'
export default buildConfig({
collections: [Media, MediaWithPrefix],
plugins: [
githubStorage({
collections: {
[mediaSlug]: true,
[mediaWithPrefixSlug]: {
prefix: '/media',
},
},
owner: process.env.GITHUB_REPOSITORY_OWNER,
repo: process.env.GITHUB_REPOSITORY_NAME,
branch: process.env.GITHUB_REPOSITORY_BRANCH,
options: {
auth: process.env.GITHUB_ACCESS_TOKEN,
},
}),
],
})
| Option | Description | Default |
|---|---|---|
enabled | Whether or not to enable the plugin | true |
collections | Collections to apply the storage to | |
owner | The name of the repository owner (GitHub username or organization) | |
repo | The repository name | |
branch | Which branch to upload/read files | "main" |
options | Octokit client configuration. See Docs |
cloud storage
Store Payload uploads in third-party cloud storage through a generic adapter interface
1001.0M/wk46.1kv3 v4
payload storage bunny
Storage adapter for with video streaming, signed URLs and CDN cache purging
753.9k/wk60v4
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 cloudinary plugin
Upload Payload media to Cloudinary through an Express middleware and a config plugin
4855/wk76v2