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

export-import-strapi5-plugin

v1.0.1

Published

## Features

Readme

Strapi 5 Export/Import CSV Plugin

Features

  • Adds export/import buttons to configured Strapi content types
  • Exports data to CSV format with selected fields
  • Imports data from CSV while preserving relationships
  • Supports various field types with automatic conversion

Installation

npm install export-import-strapi5-plugin

Configuration

Add to ./config/plugins.js:

module.exports = ({ env }) => ({
  'export-import-strapi5-plugin': {
    enabled: true,
    config: {
      entities: {
        'api::product.product': {
          fields: [
            'category.name',
            'brand.name',
            'name',
            'slug',
            'price',
            'sale',
            'hit',
            'available',
            'popularity',
          ],
        },
        // Add other content types as needed
      },
    },
  },
});

Configuration Options

  • entities: Object containing content type configurations
    • Key: Content Type UID (e.g. "api::product.product")
    • fields: Array of fields to include in export/import
      • Supports nested fields with dot notation
      • Omit documentID - it's automatically included

Supported Field Types

| Type | Import Handling | Example | | ----------- | --------------------------------- | --------------------- | | Integer | Convert to integer | "42"42 | | BigInteger | Convert to integer | "1234567890" → ... | | Float | Convert to float | "3.14"3.14 | | Decimal | Convert to float | "99.99"99.99 | | Boolean | Convert 'true'/'false' to boolean | "true"true | | String/Text | Trim whitespace | " text ""text" |

Usage Notes

  1. Record Identification:

    • Imports update existing records using documentID
    • This field is automatically included in exports
    • Never remove/modify documentID in CSV files
  2. Relationship Handling:

    • Relationships are exported (e.g. category.name)
    • Relationship data is read-only during import
    • Only direct fields of the entity are updated

Example CSV Format

For api::product.product:

documentID,category.name,brand.name,name,slug,price,sale,hit,available,popularity
1,Electronics,Sony,TV,sony-tv,999.99,true,true,true,5
2,Electronics,Samsung,Phone,samsung-phone,799.99,false,true,true,8

Limitations

  1. Only updates existing records (by documentID)
  2. Relationship fields are read-only during import
  3. Not all Strapi field types are supported
  4. CSV files must maintain original documentIDs

UI Integration

After installation:

  1. Navigate to Content Manager
  2. Select configured content type
  3. Find new buttons in list view:
    • Export CSV - Download current data
    • Import CSV - Update records from file

Note: Always back up your data before performing imports