npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

strapi-plugin-import-export-data

v1.1.0

Published

Strapi plugin for importing and exporting collection data

Downloads

178

Readme

strapi-plugin-import-export-data

CSV import and export for Strapi 5 collection types, with column selection, CSV preview, import column mapping, batched import progress, and safer handling for Strapi object fields such as blocks.

Compatibility

  • Strapi: >=5.0.0
  • Tested with Strapi: 5.46.1
  • Node: follows your Strapi 5 project requirements
  • Supported file format: CSV
  • Not supported: Strapi 4

Features

  • Export collection entries to CSV.
  • Select exactly which columns to export.
  • Include drafts or export only published records for Draft & Publish collections.
  • Preview collection data before export.
  • Preserve Strapi object fields by exporting object values as JSON.
  • Import CSV files into collection types.
  • Preview CSV rows before import.
  • Map CSV columns to Strapi fields before importing.
  • Automatically map CSV columns when names match Strapi fields.
  • Import records in batches with progress feedback.
  • Row-aware import errors for easier troubleshooting.
  • Filters out private/password fields from export and import.
  • Guards exported CSV values against spreadsheet formula injection.
  • Rejects non-CSV spreadsheet packages such as Apple Numbers files.

Installation

npm install strapi-plugin-import-export-data

or:

yarn add strapi-plugin-import-export-data

Restart Strapi after installation.

Configuration

Enable the plugin in your Strapi app config:

// config/plugins.ts
export default {
  'strapi-plugin-import-export-data': {
    enabled: true,
  },
};

Then restart your Strapi server and open the plugin from the Strapi admin sidebar.

Usage

Export CSV

  1. Open Import-Export Data in the Strapi admin panel.
  2. Choose Export.
  3. Select a collection.
  4. For Draft & Publish collections, choose whether draft records should be included.
  5. Review the KPIs and preview.
  6. Select the columns you want to export.
  7. Click Export CSV.

Object values, including Strapi blocks content, are exported as JSON strings so they can be imported back into Strapi. By default, draft records are included to preserve the plugin's earlier export behavior. Choose Exclude to export only published records.

Import CSV

  1. Open Import-Export Data in the Strapi admin panel.
  2. Choose Import.
  3. Select a collection.
  4. Choose a .csv file.
  5. Review the CSV preview.
  6. Map CSV columns to Strapi fields.
  7. Click Import CSV.

The plugin imports records in batches and shows progress while importing.

CSV Notes

  • Upload real .csv files only.
  • Spreadsheet files from Apple Numbers, Excel, or Google Sheets must be exported as CSV first.
  • For blocks, json, components, dynamic zones, media, and relations, values should be valid JSON.
  • Empty cells are skipped during import.
  • System fields such as id, documentId, createdAt, updatedAt, and publishedAt are ignored during import.

Limits And Safety

The plugin includes defensive limits and checks:

  • Legacy uploaded CSV file size limit: 10 MB.
  • Legacy uploaded CSV row limit: 10,000 rows.
  • Batched import endpoint limit: 500 records per batch.
  • Maximum CSV columns per row: 200.
  • Maximum cell length: 1,000,000 characters.
  • Private fields and password fields are excluded from export/import.
  • Admin and plugin content types are not available for import/export.
  • Spreadsheet formula-like values are escaped when exporting CSV.

Troubleshooting

I see [object Object] in old exports

That CSV was exported before object fields were serialized as JSON. Re-export the collection with the latest plugin version.

Import says the file is a spreadsheet package

The selected file is not CSV. Export it from Numbers, Excel, or Google Sheets as comma-separated values (.csv) and import that file.

Import fails for a blocks field

Strapi blocks fields must be valid JSON arrays. Exporting from this plugin produces the expected format.

Current Version

Recommended release version:

1.1.0

This is a minor release because it keeps Strapi 5 compatibility while adding a redesigned admin workflow, export column selection, import column mapping, batched progress, object-field handling, and security hardening.

Development

Build the plugin:

npm run build

Verify in a linked Strapi app:

cd ../strapi-plugin-test-app
npm run build

License

MIT