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-export-import-excel

v1.2.0

Published

A Strapi v5 plugin for exporting and importing collection data as Excel, with live preview and per-collection field configuration.

Readme

strapi-export-import-excel

A Strapi v5 plugin for exporting and importing collection data as Excel (.xlsx) files, with live preview, nested component support, and per-collection field configuration.

Requires: Strapi v5 · Node.js ≥ 18

Plugin preview


Features

  • Export to Excel — export any collection with field filtering and column reordering
  • Import from Excel / JSON — upsert entries using a configurable identifier field
  • Nested Import — import repeatable component data from a separate Excel file, linked to parent entries by an identifier field
  • Live preview — paginated table preview before downloading, with drag-and-drop column reordering
  • Per-collection field config — configure which fields to include/exclude and their order
  • Locale support — export and import specific locales, or bulk import with one sheet per locale
  • Relation handling — relations are exported as field:value format and resolved back on import
  • Repeatable components — exported as JOIN-style rows (one row per component item, parent fields duplicated)

Installation

npm install strapi-export-import-excel
# or
yarn add strapi-export-import-excel

Rebuild your Strapi admin and restart the server:

npm run build
npm run develop

Usage

Export

  1. Go to the plugin page in the Strapi admin sidebar
  2. Select a collection and (optionally) a locale
  3. Click Preview & Export to open the preview page
  4. Reorder or remove columns using the column sorter
  5. Click Download Excel to download the file

Repeatable components are expanded into multiple rows — parent fields are duplicated for each component item. Component field columns use dot notation (e.g. additionalFaqs.category, additionalFaqs.faqs).

Import

  1. Select a collection and (optionally) a locale
  2. Click Upload File and select an .xlsx, .xls, or .json file
  3. Select the Identifier Field — the column used to match existing entries
  4. Optionally toggle Publish on import and Bulk locale upload
  5. Click Start Import

The import will create new entries or update existing ones based on the identifier field.

Nested Import (Repeatable Components)

Use the Nested Import panel to import repeatable component data from a separate Excel file.

  1. Select a collection
  2. Select the Component Field (filtered to repeatable components only)
  3. Select the Parent Identifier Field (the field on the parent to match entries)
  4. Optionally toggle Bulk locale upload for multi-locale files
  5. Upload the Excel file and click Start Nested Import

Excel format for nested import

| entryId | category | items | |------|----------|-------| | product-a | name:Electronics | title:Item 1|title:Item 2 | | product-a | name:Accessories | title:Item 3 | | product-b | name:Electronics | title:Item 4 |

  • First column = parent identifier value (matches the parent entry)
  • Remaining columns = component field names
  • Multiple rows with the same identifier = multiple items in the repeatable component array
  • Relations use field:value format (e.g. name:Electronics)
  • For multiple relations in one field, pipe-separate them: title:Item 1|title:Item 2

Bulk locale upload

When enabled, each sheet in the Excel file represents a locale (sheet name = locale code like en, th). All sheets are processed and component data is imported into their matching locale.


Relation Format

Relations are exported and imported using the field:value syntax:

entryId:my-related-entry

This tells the plugin to look up the target collection where entryId = "my-related-entry".

Resolution priority on export:

  1. Fields ending in Id (e.g. productId, categoryId)
  2. Shortcut fields (name, title)
  3. First available scalar field

Supported import formats:

  • field:value — explicit field lookup (recommended)
  • Plain string — falls back to shortcut field matching

For array relations, pipe-separate multiple values:

name:Value A|name:Value B|name:Value C

API Endpoints

All endpoints are prefixed with /api/strapi-export-import-excel.

| Method | Path | Description | |--------|------|-------------| | GET | /settings | Get plugin settings | | PUT | /settings | Update plugin settings | | GET | /collections | List all collections | | GET | /locales | List available locales | | GET | /collections/:uid/fields | Get fields for a collection | | GET | /tabledata | Paginated data preview | | GET | /export | Download export | | POST | /import | Import file | | POST | /import-headers | Read column headers from a file | | POST | /import-component | Import repeatable component data |


Field Configuration

Go to Settings → Export / Import Excel → Collections to configure per-collection field settings:

  • Toggle fields on/off for export
  • Drag to reorder fields — the order determines column order in the exported file

Notes

  • Media fields are excluded from export/import
  • Single (non-repeatable) components are flattened into componentName_subField columns
  • Repeatable components are expanded into JOIN-style rows with dot notation headers
  • Nested import always publishes the updated entry by default
  • Custom fields are excluded from export

License

MIT © Assawin Chittanandha