Extends the Payload import-export idea with an Import button in the list view of chosen collections. A drawer guides editors through file upload, data preview, column-to-field mapping, validation and import with progress tracking. It also exposes a POST import endpoint and requires Payload 3.37 or newer.
This is an extended version of the Payload CMS import-export plugin, providing additional features and enhancements.
Installation
npm i payload-extended-import-export-plugin31
Stars
7
Forks
1
Open Issues
1 years ago
Last Updated
26
Weekly Downloads
v1.0.11
npm Version
380.0 KB
Unpacked Size
3
Dependencies
31+2 since Sep 7
| Date | Stars |
|---|---|
| Dec 6, 2026 | 31 |
| Dec 5, 2026 | 31 |
| Dec 4, 2026 | 31 |
| Dec 3, 2026 | 31 |
| Dec 2, 2026 | 31 |
| Dec 1, 2026 | 31 |
| Nov 30, 2026 | 31 |
| Nov 29, 2026 | 31 |
| Nov 28, 2026 | 31 |
| Nov 27, 2026 | 31 |
| Nov 26, 2026 | 31 |
| Nov 25, 2026 | 31 |
| Nov 24, 2026 | 31 |
| Nov 23, 2026 | 31 |
| Nov 22, 2026 | 30 |
| Nov 21, 2026 | 30 |
| Nov 20, 2026 | 30 |
| Nov 19, 2026 | 30 |
| Nov 18, 2026 | 30 |
| Nov 17, 2026 | 30 |
| Nov 16, 2026 | 30 |
| Nov 15, 2026 | 30 |
| Nov 14, 2026 | 30 |
| Nov 13, 2026 | 30 |
| Nov 12, 2026 | 30 |
| Nov 11, 2026 | 30 |
| Nov 10, 2026 | 30 |
| Nov 9, 2026 | 30 |
| Nov 8, 2026 | 30 |
| Nov 7, 2026 | 30 |
| Nov 6, 2026 | 30 |
| Nov 5, 2026 | 30 |
| Nov 4, 2026 | 29 |
| Nov 3, 2026 | 29 |
| Nov 2, 2026 | 29 |
| Nov 1, 2026 | 29 |
| Oct 31, 2026 | 29 |
| Oct 30, 2026 | 29 |
| Oct 29, 2026 | 29 |
| Oct 28, 2026 | 29 |
| Oct 27, 2026 | 29 |
| Oct 26, 2026 | 29 |
| Oct 25, 2026 | 29 |
| Oct 24, 2026 | 29 |
| Oct 23, 2026 | 29 |
| Oct 22, 2026 | 29 |
| Oct 21, 2026 | 29 |
| Oct 20, 2026 | 29 |
| Oct 19, 2026 | 29 |
| Oct 18, 2026 | 29 |
| Oct 17, 2026 | 29 |
| Oct 16, 2026 | 29 |
| Oct 15, 2026 | 29 |
| Oct 14, 2026 | 29 |
| Oct 13, 2026 | 29 |
| Oct 12, 2026 | 29 |
| Oct 11, 2026 | 29 |
| Oct 10, 2026 | 29 |
| Oct 9, 2026 | 29 |
| Oct 8, 2026 | 29 |
| Oct 7, 2026 | 29 |
| Oct 6, 2026 | 29 |
| Oct 5, 2026 | 29 |
| Oct 4, 2026 | 29 |
| Oct 3, 2026 | 29 |
| Oct 2, 2026 | 29 |
| Oct 1, 2026 | 29 |
| Sep 30, 2026 | 29 |
| Sep 29, 2026 | 29 |
| Sep 28, 2026 | 29 |
| Sep 27, 2026 | 29 |
| Sep 26, 2026 | 29 |
| Sep 25, 2026 | 29 |
| Sep 24, 2026 | 29 |
| Sep 23, 2026 | 29 |
| Sep 22, 2026 | 29 |
| Sep 21, 2026 | 29 |
| Sep 20, 2026 | 29 |
| Sep 19, 2026 | 29 |
| Sep 18, 2026 | 29 |
| Sep 17, 2026 | 29 |
| Sep 16, 2026 | 29 |
| Sep 15, 2026 | 29 |
| Sep 14, 2026 | 29 |
| Sep 13, 2026 | 29 |
| Sep 12, 2026 | 29 |
| Sep 11, 2026 | 29 |
| Sep 10, 2026 | 29 |
| Sep 9, 2026 | 29 |
| Sep 8, 2026 | 29 |
| Sep 7, 2026 | 29 |
27+17 since Sep 7
| Date | Weekly downloads |
|---|---|
| Dec 6, 2026 | 27 |
| Dec 5, 2026 | 27 |
| Dec 4, 2026 | 3 |
| Dec 3, 2026 | 2 |
| Dec 2, 2026 | 2 |
| Dec 1, 2026 | 3 |
| Nov 30, 2026 | 3 |
| Nov 29, 2026 | 15 |
| Nov 28, 2026 | 15 |
| Nov 27, 2026 | 15 |
| Nov 26, 2026 | 15 |
| Nov 25, 2026 | 15 |
| Nov 24, 2026 | 14 |
| Nov 23, 2026 | 14 |
| Nov 22, 2026 | 3 |
| Nov 21, 2026 | 4 |
| Nov 20, 2026 | 4 |
| Nov 19, 2026 | 5 |
| Nov 18, 2026 | 16 |
| Nov 17, 2026 | 16 |
| Nov 16, 2026 | 17 |
| Nov 15, 2026 | 15 |
| Nov 14, 2026 | 15 |
| Nov 13, 2026 | 17 |
| Nov 12, 2026 | 28 |
| Nov 11, 2026 | 17 |
| Nov 10, 2026 | 20 |
| Nov 9, 2026 | 19 |
| Nov 8, 2026 | 20 |
| Nov 7, 2026 | 19 |
| Nov 6, 2026 | 16 |
| Nov 5, 2026 | 4 |
| Nov 4, 2026 | 4 |
| Nov 3, 2026 | 1 |
| Nov 2, 2026 | 4 |
| Nov 1, 2026 | 3 |
| Oct 31, 2026 | 4 |
| Oct 30, 2026 | 4 |
| Oct 29, 2026 | 4 |
| Oct 28, 2026 | 4 |
| Oct 27, 2026 | 6 |
| Oct 26, 2026 | 3 |
| Oct 25, 2026 | 4 |
| Oct 24, 2026 | 4 |
| Oct 23, 2026 | 4 |
| Oct 22, 2026 | 6 |
| Oct 21, 2026 | 6 |
| Oct 20, 2026 | 4 |
| Oct 19, 2026 | 4 |
| Oct 18, 2026 | 3 |
| Oct 17, 2026 | 3 |
| Oct 16, 2026 | 3 |
| Oct 15, 2026 | 2 |
| Oct 14, 2026 | 13 |
| Oct 13, 2026 | 14 |
| Oct 12, 2026 | 14 |
| Oct 11, 2026 | 15 |
| Oct 10, 2026 | 15 |
| Oct 9, 2026 | 15 |
| Oct 8, 2026 | 14 |
| Oct 7, 2026 | 4 |
| Oct 6, 2026 | 3 |
| Oct 5, 2026 | 4 |
| Oct 4, 2026 | 3 |
| Oct 3, 2026 | 3 |
| Oct 2, 2026 | 3 |
| Oct 1, 2026 | 3 |
| Sep 30, 2026 | 2 |
| Sep 29, 2026 | 14 |
| Sep 28, 2026 | 13 |
| Sep 27, 2026 | 14 |
| Sep 26, 2026 | 16 |
| Sep 25, 2026 | 16 |
| Sep 24, 2026 | 17 |
| Sep 23, 2026 | 17 |
| Sep 22, 2026 | 17 |
| Sep 21, 2026 | 17 |
| Sep 20, 2026 | 17 |
| Sep 19, 2026 | 15 |
| Sep 18, 2026 | 15 |
| Sep 17, 2026 | 17 |
| Sep 16, 2026 | 18 |
| Sep 15, 2026 | 6 |
| Sep 14, 2026 | 8 |
| Sep 13, 2026 | 8 |
| Sep 12, 2026 | 10 |
| Sep 11, 2026 | 10 |
| Sep 10, 2026 | 7 |
| Sep 9, 2026 | 7 |
| Sep 8, 2026 | 10 |
| Sep 7, 2026 | 10 |
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/1030244052-root)<a href="https://payloaddirectory.dev/plugins/1030244052-root"><img src="https://payloaddirectory.dev/badge/1030244052-root.svg" alt="Payload Directory"></a>README
An extended import and export plugin for Payload CMS with additional features and enhancements.
Install the plugin via npm or pnpm:
npm i payload-extended-import-export-plugin
or
pnpm add payload-extended-import-export-plugin
Add the plugin to your payload.config.ts:
import { payloadExtendedImportExportPlugin } from 'payload-extended-import-export-plugin'
export default buildConfig({
plugins: [
payloadExtendedImportExportPlugin({
collections: ['posts', 'users', 'pages'], // Specify collections for import
enabled: true,
}),
],
})
The plugin accepts the following configuration options:
collections (required)CollectionSlug[]enabled (optional)booleantruepayloadExtendedImportExportPlugin({
collections: ['posts', 'users', 'pages'], // Enable import for these collections
enabled: process.env.NODE_ENV !== 'production', // Disable in production
})
The plugin adds an "Import" button to the list view of enabled collections. Clicking this button opens a drawer with the import interface that guides you through the import process:
This plugin is built with:
To set up the development environment:
# Clone the repository
git clone https://github.com/saroroce/payload-extended-import-export-plugin
# Install dependencies
pnpm install
# Set up environment variables
cd dev
cp .env.example .env
Environment Configuration:
Create a .env file in the dev folder with the following variables:
# Database connection string
DATABASE_URI="mongodb://localhost:27017/payload-import-export-dev"
# Payload secret for JWT tokens
PAYLOAD_SECRET="your-secret-key-here"
# Optional: Email configuration for testing
EMAIL_FROM="[email protected]"
EMAIL_FROM_NAME="Payload Import Export Plugin"
Important Notes:
DATABASE_URI to match your database setup (MongoDB, PostgreSQL, etc.)PAYLOAD_SECRETdev/payload.config.ts# Start development server
pnpm dev
The development server will be available at http://localhost:3000.
// payload.config.ts
import { payloadExtendedImportExportPlugin } from 'payload-extended-import-export-plugin'
export default buildConfig({
collections: [
{
slug: 'posts',
fields: [
{ name: 'title', type: 'text', required: true },
{ name: 'content', type: 'textarea' },
{ name: 'status', type: 'select', options: ['draft', 'published'] },
],
},
],
plugins: [
payloadExtendedImportExportPlugin({
collections: ['posts'], // Enable import for posts collection
enabled: true,
}),
],
})
payloadExtendedImportExportPlugin({
collections: ['posts', 'users', 'pages'],
enabled: process.env.NODE_ENV !== 'production', // Disable in production
})
For a posts collection, your CSV might look like:
title,content,status
"My First Post","This is the content of my first post",published
"Draft Post","This is a draft post",draft
"Another Post","More content here",published
The plugin includes comprehensive tests to ensure reliability:
# Run integration tests
pnpm test:int
# Run end-to-end tests
pnpm test:e2e
# Run all tests
pnpm test
interface PayloadExtendedImportExportPluginConfig {
collections: CollectionSlug[] // Required: Array of collection slugs
enabled?: boolean // Optional: Enable/disable plugin (default: true)
}
The plugin exposes an import endpoint at /api/import that accepts:
POSTmultipart/form-dataImport button not visible:
collections arraypayload.config.tsFile upload errors:
Import validation errors:
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see LICENSE file for details.
If you encounter any issues or have questions, please:
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 exportcollections plugin
Export collection data to CSV or JSON from list views in the admin panel
78448/wk41v?
payload portable plugin
Export all collections and globals to one JSON file and import them back from the Payload admin panel
43247/wk0v3
payload wordpress
WordPress MySQL database adapter and migration tool for Payload with PostgreSQL support
135v3
payload
Immutable phylogenetic reference panels, sample and sequence registration, and GenBank import for Payload collections
76475/wk0v3