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

@fresh.codes/strapi-plugin-export-csv

v1.0.2

Published

A CSV export plugin for Strapi v5 that adds export functionality to the admin panel with configuration options.

Readme

Export CSV Strapi Plugin

A CSV export plugin for Strapi v5 that adds export functionality to the admin panel with configuration options.

Installation

npm install @fresh.codes/strapi-plugin-export-csv

Usage

Export Filtered Data

  1. Go to any content type in the admin panel (e.g., Articles)
  2. Apply filters, search, or sort as needed
  3. Click the "Export CSV" button in the header
  4. The CSV will download with your filtered data

Bulk Export Selected Records

  1. Go to any content type list view
  2. Select specific records using checkboxes
  3. Click "Export CSV (X selected)" in the bulk actions menu
  4. Only selected records will be exported

Configuration

Options

| Option | Type | Default | Description | | ------------------------- | ----------------------- | --------------------------------------------------------- | ---------------------------------------------- | | excludedColumns | string[] | ['password', 'resetPasswordToken', 'registrationToken'] | Fields to exclude from export | | maxRecords | number | 10000 | Maximum records to export | | batchSize | number | 100 | Records per batch (memory management) | | useContentManagerLabels | boolean | true | Use field labels from admin configuration | | debug | boolean | false | Enable detailed debug logging | | fieldTransforms | object | { updatedBy, createdBy } | Functions to transform field values | | headerTransforms | object | {} | Custom column header names | | csvOptions | object | CSV Stringify defaults | CSV formatting options | | populate | string\|array\|object | '*' | Relations to populate | | contentTypes | object | {} | Override any config for specific content types |

Example

// config/plugins.js
module.exports = {
  'export-csv': {
    enabled: true,
    config: {
      // Global settings (apply to all content types)
      batchSize: 50,

      // Content-type specific overrides
      contentTypes: {
        'api::article.article': {
          batchSize: 10,
          excludedColumns: ['internalNotes'],
        },
      },
    },
  },
}

Field Transforms

Field transforms allow you to modify values before they're written to CSV. The plugin includes several default transforms and supports custom ones.

Default Field Transforms

The plugin automatically applies these transforms:

// These are applied by default - no configuration needed
fieldTransforms: {
  updatedBy: (value) => value?.username ?? '',
  createdBy: (value) => value?.username ?? ''
}

Transform Function Signature

type FieldTransform = (
  value: any, // The field value
  record?: any, // The full record object (optional)
  field?: string, // The field name (optional)
) => any // Return the transformed value

CSV Formatting Options

The plugin uses the csv-stringify library. All options are supported:

csvOptions: {
  delimiter: ';',           // Use semicolon instead of comma
  header: true,            // Include headers
  quoted_string: true,     // Quote string values
  escape: '"',             // Escape character
  quote: '"',              // Quote character
  bom: true,              // Add BOM for Excel compatibility

  // Type-based formatting
  cast: {
    boolean: (value) => value ? 'Yes' : 'No'
  }
}

Debug Logging

Enable detailed logging for troubleshooting:

1. Enable Strapi debug logging

Add to config/server.ts:

export default ({ env }) => ({
  // ... other config
  logger: {
    config: {
      level: 'debug', // Required to see debug logs
    },
  },
})

2. Enable plugin debug

// config/plugins.js
module.exports = {
  'export-csv': {
    enabled: true,
    config: {
      debug: true, // Enable for all content types

      // Or enable per content type
      contentTypes: {
        'api::article.article': {
          debug: true, // Only debug article exports
        },
      },
    },
  },
}

License

MIT License

Made by Fresh Codes.