Adds export buttons to collection list views so editors can download collection data as CSV or JSON. It is registered as a plugin in the config and built for the mzinga fork of Payload, with mzinga, react and react-i18next as peer dependencies. Options cover disabled collections, a temporary export directory, button placement, a JSON replacer and CSV options.
Provide ability to export collections as CSV or JSON
Installation
npm i @newesissrl/payload-exportcollections-plugin41
Stars
3
Forks
5
Open Issues
Today
Last Updated
402
Weekly Downloads
v1.1.0
npm Version
167.3 KB
Unpacked Size
3
Dependencies
41+1 since Sep 6
| Date | Stars |
|---|---|
| Dec 5, 2026 | 41 |
| Dec 4, 2026 | 41 |
| Dec 3, 2026 | 41 |
| Dec 2, 2026 | 41 |
| Dec 1, 2026 | 41 |
| Nov 30, 2026 | 41 |
| Nov 29, 2026 | 41 |
| Nov 28, 2026 | 41 |
| Nov 27, 2026 | 41 |
| Nov 26, 2026 | 41 |
| Nov 25, 2026 | 41 |
| Nov 24, 2026 | 41 |
| Nov 23, 2026 | 41 |
| Nov 22, 2026 | 41 |
| Nov 21, 2026 | 41 |
| Nov 20, 2026 | 41 |
| Nov 19, 2026 | 41 |
| Nov 18, 2026 | 41 |
| Nov 17, 2026 | 41 |
| Nov 16, 2026 | 41 |
| Nov 15, 2026 | 41 |
| Nov 14, 2026 | 41 |
| Nov 13, 2026 | 41 |
| Nov 12, 2026 | 41 |
| Nov 11, 2026 | 41 |
| Nov 10, 2026 | 41 |
| Nov 9, 2026 | 41 |
| Nov 8, 2026 | 41 |
| Nov 7, 2026 | 41 |
| Nov 6, 2026 | 41 |
| Nov 5, 2026 | 41 |
| Nov 4, 2026 | 41 |
| Nov 3, 2026 | 40 |
| Nov 2, 2026 | 40 |
| Nov 1, 2026 | 40 |
| Oct 31, 2026 | 40 |
| Oct 30, 2026 | 40 |
| Oct 29, 2026 | 40 |
| Oct 28, 2026 | 40 |
| Oct 27, 2026 | 40 |
| Oct 26, 2026 | 40 |
| Oct 25, 2026 | 40 |
| Oct 24, 2026 | 40 |
| Oct 23, 2026 | 40 |
| Oct 22, 2026 | 40 |
| Oct 21, 2026 | 40 |
| Oct 20, 2026 | 40 |
| Oct 19, 2026 | 40 |
| Oct 18, 2026 | 40 |
| Oct 17, 2026 | 40 |
| Oct 16, 2026 | 40 |
| Oct 15, 2026 | 40 |
| Oct 14, 2026 | 40 |
| Oct 13, 2026 | 40 |
| Oct 12, 2026 | 40 |
| Oct 11, 2026 | 40 |
| Oct 10, 2026 | 40 |
| Oct 9, 2026 | 40 |
| Oct 8, 2026 | 40 |
| Oct 7, 2026 | 40 |
| Oct 6, 2026 | 40 |
| Oct 5, 2026 | 40 |
| Oct 4, 2026 | 40 |
| Oct 3, 2026 | 40 |
| Oct 2, 2026 | 40 |
| Oct 1, 2026 | 40 |
| Sep 30, 2026 | 40 |
| Sep 29, 2026 | 40 |
| Sep 28, 2026 | 40 |
| Sep 27, 2026 | 40 |
| Sep 26, 2026 | 40 |
| Sep 25, 2026 | 40 |
| Sep 24, 2026 | 40 |
| Sep 23, 2026 | 40 |
| Sep 22, 2026 | 40 |
| Sep 21, 2026 | 40 |
| Sep 20, 2026 | 40 |
| Sep 19, 2026 | 40 |
| Sep 18, 2026 | 40 |
| Sep 17, 2026 | 40 |
| Sep 16, 2026 | 40 |
| Sep 15, 2026 | 40 |
| Sep 14, 2026 | 40 |
| Sep 13, 2026 | 40 |
| Sep 12, 2026 | 40 |
| Sep 11, 2026 | 40 |
| Sep 10, 2026 | 40 |
| Sep 9, 2026 | 40 |
| Sep 8, 2026 | 40 |
| Sep 7, 2026 | 40 |
| Sep 6, 2026 | 40 |
142+87 since Sep 6
| Date | Weekly downloads |
|---|---|
| Dec 5, 2026 | 142 |
| Dec 4, 2026 | 142 |
| Dec 3, 2026 | 110 |
| Dec 2, 2026 | 82 |
| Dec 1, 2026 | 82 |
| Nov 30, 2026 | 81 |
| Nov 29, 2026 | 52 |
| Nov 28, 2026 | 55 |
| Nov 27, 2026 | 55 |
| Nov 26, 2026 | 56 |
| Nov 25, 2026 | 46 |
| Nov 24, 2026 | 47 |
| Nov 23, 2026 | 47 |
| Nov 22, 2026 | 18 |
| Nov 21, 2026 | 17 |
| Nov 20, 2026 | 21 |
| Nov 19, 2026 | 23 |
| Nov 18, 2026 | 87 |
| Nov 17, 2026 | 85 |
| Nov 16, 2026 | 85 |
| Nov 15, 2026 | 82 |
| Nov 14, 2026 | 83 |
| Nov 13, 2026 | 83 |
| Nov 12, 2026 | 81 |
| Nov 11, 2026 | 20 |
| Nov 10, 2026 | 54 |
| Nov 9, 2026 | 55 |
| Nov 8, 2026 | 68 |
| Nov 7, 2026 | 66 |
| Nov 6, 2026 | 63 |
| Nov 5, 2026 | 65 |
| Nov 4, 2026 | 67 |
| Nov 3, 2026 | 32 |
| Nov 2, 2026 | 31 |
| Nov 1, 2026 | 19 |
| Oct 31, 2026 | 17 |
| Oct 30, 2026 | 17 |
| Oct 29, 2026 | 13 |
| Oct 28, 2026 | 8 |
| Oct 27, 2026 | 9 |
| Oct 26, 2026 | 10 |
| Oct 25, 2026 | 8 |
| Oct 24, 2026 | 8 |
| Oct 23, 2026 | 6 |
| Oct 22, 2026 | 14 |
| Oct 21, 2026 | 33 |
| Oct 20, 2026 | 35 |
| Oct 19, 2026 | 34 |
| Oct 18, 2026 | 38 |
| Oct 17, 2026 | 39 |
| Oct 16, 2026 | 45 |
| Oct 15, 2026 | 43 |
| Oct 14, 2026 | 67 |
| Oct 13, 2026 | 65 |
| Oct 12, 2026 | 68 |
| Oct 11, 2026 | 67 |
| Oct 10, 2026 | 67 |
| Oct 9, 2026 | 73 |
| Oct 8, 2026 | 82 |
| Oct 7, 2026 | 42 |
| Oct 6, 2026 | 42 |
| Oct 5, 2026 | 40 |
| Oct 4, 2026 | 42 |
| Oct 3, 2026 | 47 |
| Oct 2, 2026 | 43 |
| Oct 1, 2026 | 34 |
| Sep 30, 2026 | 39 |
| Sep 29, 2026 | 38 |
| Sep 28, 2026 | 38 |
| Sep 27, 2026 | 39 |
| Sep 26, 2026 | 37 |
| Sep 25, 2026 | 36 |
| Sep 24, 2026 | 33 |
| Sep 23, 2026 | 28 |
| Sep 22, 2026 | 29 |
| Sep 21, 2026 | 62 |
| Sep 20, 2026 | 63 |
| Sep 19, 2026 | 60 |
| Sep 18, 2026 | 64 |
| Sep 17, 2026 | 64 |
| Sep 16, 2026 | 68 |
| Sep 15, 2026 | 70 |
| Sep 14, 2026 | 38 |
| Sep 13, 2026 | 38 |
| Sep 12, 2026 | 49 |
| Sep 11, 2026 | 49 |
| Sep 10, 2026 | 56 |
| Sep 9, 2026 | 55 |
| Sep 8, 2026 | 56 |
| Sep 7, 2026 | 56 |
| Sep 6, 2026 | 55 |
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/732042021-root)<a href="https://payloaddirectory.dev/plugins/732042021-root"><img src="https://payloaddirectory.dev/badge/732042021-root.svg" alt="Payload Directory"></a>README
Extends mzinga with the ability to export all collection's data to CSV or JSON
npm install @newesissrl/payload-exportcollections-plugin
mzinga (^1.0.5), react and react-i18next are peer dependencies: the plugin uses the copies installed by the host application, so only one Mzinga instance is loaded.
import { exportCollectionsPlugin } from "@newesissrl/payload-exportcollections-plugin";
export default buildConfig({
....
plugins: [exportCollectionsPlugin(config?)],
i18n: {
resources: {
// to localize the buttons' labels
en: {
general: {
"export-list-csv": "Export list (CSV)",
"export-list-json": "Export list (JSON)",
},
},
it: {
general: {
"export-list-csv": "Esporta lista (CSV)",
"export-list-json": "Esporta lista (JSON)",
},
},
},
}
....
})
The plugin may expects a config object defined like this:
export type ExportCollectionsPluginConfig = {
disabledCollections?: string[];
rootDir?: string;
jsonReplacer?: (key: string, value: any) => any;
csvOptions?: Json2CsvOptions;
componentPlacement?:
| "AfterList"
| "AfterListTable"
| "BeforeList"
| "BeforeListTable";
};
where:
disabledCollections is a list of collections' slugs that you want to exclude from the plugin's enrichment.rootDir is the directory where to temporarily store the exported filescomponentPlacement identify where to place the componentjsonReplacer is a function useful to replace fields (and/or omit them in the final result). see herecsvOptions is the same implementation as per the core json-2-csv package. see hereIf you followed the above guide and still cannot see the buttons, it may be needed to update your webpack config as per below:
export default buildConfig({
admin: {
webpack: (config: any) => {
return {
...config,
resolve: {
...config.resolve,
alias: {
...config.resolve.alias,
payload: path.resolve("./node_modules/mzinga"), // this will fix the components usage of `useConfig` hook
}
}
}
}
}
})
Topics
import export
Import and export Payload collection data from within the admin panel
9757.1k/wk46.1kv3 v4
payload plugin import export
Import and export collection data as JSON or CSV files from the Payload admin
501.2k/wk23v3
payload portable plugin
Export all collections and globals to one JSON file and import them back from the Payload admin panel
43247/wk0v3
payload extended import export plugin
Import CSV, JSON, Excel and TSV files into Payload collections with field mapping and preview
3526/wk31v3
payload
Immutable phylogenetic reference panels, sample and sequence registration, and GenBank import for Payload collections
76475/wk0v3
payload wordpress
WordPress MySQL database adapter and migration tool for Payload with PostgreSQL support
135v3