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

@devx-commerce/strapi

v2.0.0-beta.0

Published

Medusa plugin for Strapi as CMS

Downloads

1,804

Readme

Features

  • 🔄 Seamless integration between Medusa and Strapi
  • 📝 Flexible content management for your e-commerce store
  • 🖼️ Rich media management for product images and assets
  • 🚀 Extend product information with custom fields and content
  • 📱 Headless architecture for omnichannel commerce
  • 🔄 Automatic synchronization between Medusa and Strapi

Requirements

This plugin requires:

Installation

  1. Install the plugin:
npm install @devx-commerce/strapi @strapi/client
# or
yarn add @devx-commerce/strapi @strapi/client
  1. Add the plugin to your medusa-config.js:
const { defineConfig } = require("@medusajs/medusa"); // or "@medusajs/framework/utils"

module.exports = defineConfig({
  // ... other config
  plugins: [
    // ... other plugins,
    {
      resolve: "@devx-commerce/strapi",
      options: {
        base_url: process.env.STRAPI_URL,
        api_key: process.env.STRAPI_API_KEY,
      },
    },
  ],
});

Setup

Setting up Strapi

  1. Install Strapi if you haven't already:
npx create-strapi-app@latest my-strapi-cms
  1. Start your Strapi server:
cd my-strapi-cms
npm run develop
  1. Create an API token in Strapi:

    • Go to Settings > API Tokens
    • Create a new full access token
    • Copy the token to use in your Medusa configuration
  2. Create Product and Variant collections in Strapi:

    • In your Strapi admin panel, go to Content-Type Builder
    • Create a new collection type called Product
      • Add a title field (Text type)
      • Add a systemId field (Text type, Unique)
    • Create another collection type called Variant
      • Add a title field (Text type)
      • Add a systemId field (Text type, Unique)
    • Save and publish your new collection types
  3. Configure environment variables for your Medusa backend:

    STRAPI_URL=http://localhost:1337
    STRAPI_API_KEY=your-api-token-here

Synchronizing data

After installation and setup, the plugin will automatically:

  • Create and update products, collections & categories in Strapi when they are modified in Medusa
  • Sync product, collection & category metadata between Medusa and Strapi
  • Allow extending product data with Strapi's content types

Usage

Once the plugin is set up, you can use Strapi's admin panel to add rich content to your products and use the Strapi API to fetch this content for your storefront.

Example of fetching product content from Medusa (with Strapi fields):

// In your storefront
async function getProductContent(productId) {
  const response = await fetch(
    `${MEDUSA_BASE_URL}/store/products/${productId}?fields=cms_product.*`,
    {
      headers: {
        "x-publishable-api-key": STOREFRONT_PUBLISHABLE_API_KEY,
      },
    },
  );
  const data = await response.json();
  return data.data[0];
}

Documentation