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

medusa-google-storage

v1.0.2

Published

A storage provider for Google Cloud Storage

Readme

medusa-google-storage

A Medusa.js storage plugin that supports Google Cloud Storage for storing all images.

Use Case

This plugin allows you to use Google Cloud Storage as the file storage solution for your Medusa.js e-commerce application. It's particularly useful when you want to leverage Google's robust and scalable cloud infrastructure to store and serve your product images and other media files.

Installation

To install the plugin, run the following command in your Medusa project:

npm install medusa-google-storage

Configuration

1. Update medusa-config.js

Add medusa-google-storage to the plugins array in your medusa-config.js file:

const plugins = [
  // ... other plugins
  `medusa-google-storage`,
]

2. Set up environment variables

Add the following variables to your .env file:

GCP_BUCKET_NAME=your_bucket_name
GCP_PROJECT_ID=your_project_id
GCP_CLIENT_EMAIL=your_client_email
GCP_PRIVATE_KEY=your_private_key
GCP_DIRECTORY=optional_directory_name
  • GCP_BUCKET_NAME: The name of your Google Cloud Storage bucket
  • GCP_PROJECT_ID: Your Google Cloud project ID
  • GCP_CLIENT_EMAIL: The client email from your Google Cloud service account
  • GCP_PRIVATE_KEY: The private key from your Google Cloud service account
  • GCP_DIRECTORY: (Optional) The directory within the bucket where images will be stored. If not provided, images will be stored in the root of the bucket.

Usage

Once installed and configured, the plugin will automatically handle file uploads to Google Cloud Storage. You don't need to change any of your existing file upload code in your Medusa.js application.

Notes

  • Ensure that your Google Cloud service account has the necessary permissions to read from and write to the specified bucket.
  • Keep your Google Cloud credentials secure and never commit them directly to your repository.
  • If you're using version control, remember to add your .env file to .gitignore.

Support

For any issues or questions, please open an issue in the GitHub repository or contact the plugin maintainer.