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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@kb0912/currency-exchange-plugin

v0.0.3

Published

A starter for Medusa plugins.

Readme

Currency Exchange Plugin for Medusa

Package: @kb0912/currency-exchange-plugin

Automatically sync your product prices to the latest exchange rates, supporting multiple currencies. Choose between automatic live rates (from fawazahmed0/exchange-api) or manual rate settings for each currency. Manage everything directly from Medusa Admin—including instant manual price updates!



Features

  • Auto-update product prices based on the latest currency exchange rates and your base currency.
  • Enable/disable each currency directly from the Admin UI.
  • Switch between "Auto" and "Manual" mode for each currency.
  • Edit manual exchange rates for full control.
  • Trigger instant price updates—no need to wait for a cronjob.
  • Safe: Disabled currencies will not have their prices changed or deleted.

Installation

yarn add @kb0912/currency-exchange-plugin

or

npm install @kb0912/currency-exchange-plugin

Configuration (in medusa-config.js or .ts)

const plugins = [
  // ... other plugins
  {
    resolve: "@kb0912/currency-exchange-plugin",
    options: {}
  }
]

Note:
Base currency will be taken from your Store config if not specified.


Usage in Medusa Admin

Once installed, a Currency Exchange Settings page appears in your Admin sidebar.

1. Enable/disable currencies

  • Toggle the Enable/Disable switch to control which currencies are updated.

2. Switch exchange rate mode

  • Toggle between Auto (fetches rates from exchange-api) and Manual (enter your own rate) for each currency.

3. Edit manual rates

  • If Manual mode is selected, type your desired rate and click Save.

4. Instant price update

  • Click Update Prices Now to immediately update all product prices using the latest rates—no need to wait for scheduled jobs!
  • The plugin will recalculate and update all enabled currency prices based on the latest exchange rates and your base currency.

Exchange Rate Source

  • This plugin uses fawazahmed0/exchange-api as the default source for live rates.
  • You can override any rate at any time using Manual mode.

Usage Notes

  • Only enabled currencies will have their prices updated. Disabled currencies retain their existing prices—nothing is deleted or overwritten.
  • You can combine automatic and manual rate management for maximum flexibility.
  • All updates can be triggered manually in Admin or scheduled using cron.

License

MIT


For questions, feature requests, or issues, please open an issue or contact the maintainer.