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

strapi5-plugin-csv-export

v5.0.1

Published

A powerful Strapi plugin that enables easy export of content types to CSV format, with support for field selection, filtering, and batch operations.

Readme

🚀 Strapi CSV Export Plugin

A powerful Strapi v5 plugin that enables easy export of content types to CSV format. This plugin provides a user-friendly interface to export your Strapi content with customizable field selection, filtering options, and batch operations.

Strapi CSV Export Banner

npm version npm downloads MIT License

✨ Features

  • Export any content type to CSV format
  • Select specific fields to export
  • Filter data before export
  • Support for all field types including relations and media
  • Batch export capabilities
  • Clean and intuitive user interface
  • Respects Strapi's permissions system
  • Internationalization support

🔧 Requirements

  • Strapi v5.x.x
  • Node.js >=14.19.1 <=22.x.x
  • NPM >= 6.0.0

📦 Installation

# Using npm
npm install strapi-plugin-csv-export

# Using yarn
yarn add strapi-plugin-csv-export

# Using pnpm
pnpm add strapi-plugin-csv-export

⚙️ Configuration

  1. Create or edit the plugin configuration file in your Strapi project:
// config/plugins.js
module.exports = {
  'csv-export': {
    enabled: true,
    config: {
      // Optional configuration
      maxExportCount: 1000, // Maximum number of entries to export (default: 1000)
      defaultFields: ['id', 'createdAt', 'updatedAt'], // Default fields to include
      delimiter: ',', // CSV delimiter (default: ',')
      encoding: 'utf8', // File encoding (default: 'utf8')
      exportPath: './exports', // Path for temporary export files (default: './exports')
      dateFormat: 'YYYY-MM-DD HH:mm:ss', // Date format in exports (default: 'YYYY-MM-DD HH:mm:ss')
    },
  },
};
  1. Add the plugin to your dependencies and rebuild your Strapi admin panel:
# Using npm
npm run build
npm run develop

# Using yarn
yarn build
yarn develop

# Using pnpm
pnpm run build
pnpm run develop
  1. The plugin should now be available in your Strapi admin panel under the Plugins section.

📖 Usage

Quick Start

  1. Navigate to any content type in your Strapi admin panel
  2. Look for the "CSV Export" button in the top toolbar
  3. Click it to open the export interface

Export Button

Export Options

1. Field Selection

  • Choose which fields to include in your export
  • Support for all field types:
    • Basic fields (text, number, date, etc.)
    • Relation fields (one-to-one, one-to-many, many-to-many)
    • Media fields (with configurable URL or file path export)
    • Component fields (nested data)
    • Dynamic zones
    • Custom fields

Field Selection

2. Filtering Options

Filter your data before export:

  • Date range filters
  • Status filters (published/draft)
  • Custom field filters
  • Relation filters
  • Search functionality

3. Batch Operations

Export specific entries:

  1. Select entries using checkboxes
  2. Click "Export Selected" to export only chosen entries
  3. Use "Select All" for bulk operations

Export Format

The exported CSV file includes:

  • UTF-8 encoding with BOM for Excel compatibility
  • Configurable delimiter (default: comma)
  • Proper escaping of special characters
  • Nested data handling
  • Relation data resolution

Example output:

id,title,author,publishedAt,categories
1,"My First Post","John Doe","2024-03-30","Tech,News"
2,"Getting Started","Jane Smith","2024-03-29","Tutorial"

🤝 Contributing

We love your input! We want to make contributing to Strapi CSV Export as easy and transparent as possible. Please check our Contributing Guide for detailed instructions on:

  • Reporting bugs
  • Discussing the current state of the code
  • Submitting fixes
  • Proposing new features
  • Becoming a maintainer

Development Workflow

  1. Fork the repo and create your branch from main
  2. Install dependencies: npm install
  3. Make your changes
  4. Add tests if applicable
  5. Run tests: npm test
  6. Update documentation
  7. Create a Pull Request

🐛 Troubleshooting

Common Issues

  1. Export button not visible

    • Ensure the plugin is properly installed and enabled
    • Check user permissions in Strapi admin
  2. Export fails with large datasets

    • Adjust maxExportCount in configuration
    • Use filters to reduce dataset size
  3. Relation fields not exporting

    • Verify relation field configuration
    • Check permissions for related content types

Debug Mode

Enable debug mode in your Strapi configuration:

// config/plugins.js
module.exports = {
  'csv-export': {
    enabled: true,
    config: {
      debug: true, // Enable detailed logging
    },
  },
};

📝 License

MIT License © Shubha Kumar

📚 Documentation

💬 Support

⭐ Show your support

If this plugin helps you, please consider:

  • Giving it a star on GitHub
  • Sharing it with your team and friends
  • Contributing to make it better

📣 Acknowledgements

  • Thanks to all our contributors
  • Inspired by the Strapi community's needs for better data export solutions