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

@jytextiles/medusa-plugin-etsy-sync

v0.1.6

Published

Medusa v2 plugin to sync Medusa products to a personal Etsy shop account via the Etsy Open API v3.

Readme

@jytextiles/medusa-plugin-etsy-sync

A Medusa v2 plugin that syncs your Medusa products to a personal Etsy shop via the Etsy Open API v3. It handles the OAuth2 (PKCE) connect flow, draft-listing creation, listing updates, image uploads, and keeps a per-product sync record so you can publish to Etsy from the Medusa Admin.

Features

  • OAuth2 PKCE connect flow — connect/disconnect an Etsy shop from Settings → Etsy in the Admin; tokens are stored and auto-refreshed.
  • Product → Etsy sync — create draft listings, update them, and upload product images (single or bulk).
  • Readiness checks — surfaces what's missing (shop connection, shipping profile, return policy, taxonomy) before you publish.
  • Sync records — every sync is tracked per product with status and the remote Etsy listing id.
  • Scheduled token refresh — a background job keeps the Etsy access token fresh so syncs don't fail mid-session.

Requirements

Install

npm install @jytextiles/medusa-plugin-etsy-sync
# or
yarn add @jytextiles/medusa-plugin-etsy-sync
# or
pnpm add @jytextiles/medusa-plugin-etsy-sync

Configure

Register the plugin in medusa-config.ts:

module.exports = defineConfig({
  // ...
  plugins: [
    {
      resolve: "@jytextiles/medusa-plugin-etsy-sync",
      options: {
        keystring: process.env.ETSY_KEYSTRING,
        sharedSecret: process.env.ETSY_SHARED_SECRET,
        redirectUri:
          process.env.ETSY_REDIRECT_URI ??
          "http://localhost:9000/app/settings/oauth/etsy/callback",
        scope:
          process.env.ETSY_SCOPE ?? "listings_r listings_w listings_d shops_r",
      },
    },
  ],
})

Options can be supplied via the options object above or the matching environment variables (env takes precedence):

| Option | Env var | Required | Description | | -------------- | -------------------- | -------- | ------------------------------------------------------------------ | | keystring | ETSY_KEYSTRING | yes | Your Etsy app's keystring (API key). | | sharedSecret | ETSY_SHARED_SECRET | yes | Your Etsy app's shared secret. | | redirectUri | ETSY_REDIRECT_URI | no | OAuth callback URL. Must match your Etsy app's registered callback. | | scope | ETSY_SCOPE | no | Space-separated Etsy OAuth scopes. |

Add the callback URL (redirectUri) to your Etsy app's allowed redirect URIs in the Etsy developer portal.

After installing, run your project's migrations so the plugin's tables are created:

npx medusa db:migrate

Usage

  1. In the Admin, go to Settings → Etsy and click Connect to authorize your Etsy shop.
  2. Configure your sync settings (shipping profile, return policy, taxonomy).
  3. From a product page, use the Etsy widget to sync the product, or sync in bulk from the Etsy settings page.

Admin API routes

| Method | Route | Purpose | | ---------- | ------------------------------ | ------------------------------------ | | GET | /admin/etsy/status | Connection + readiness status | | GET / POST | /admin/etsy/settings | Read / save sync settings | | GET | /admin/etsy/auth/authorize | Start the OAuth2 PKCE flow | | GET | /admin/etsy/auth/callback | OAuth2 callback | | POST | /admin/etsy/auth/disconnect | Disconnect the shop | | POST | /admin/etsy/sync/product/:id | Sync a single product | | POST | /admin/etsy/sync/bulk | Sync multiple products | | GET | /admin/etsy/syncs | List sync records | | GET | /admin/etsy/taxonomy | Etsy taxonomy lookup | | GET | /admin/etsy/shipping-profiles| Etsy shipping profiles | | GET | /admin/etsy/return-policies | Etsy return policies |

Development

# Build the plugin (compiles to .medusa/server)
npm run build

# Watch mode while developing against a local Medusa app
npm run dev

# Generate a migration after changing a model
npm run db:generate

# Run tests
npm run test

License

MIT