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

picgo-plugin-huaweicloud-obs

v1.0.1

Published

A PicGo plugin for uploading files to Huawei Cloud OBS (Object Storage Service)

Readme

picgo-plugin-huaweicloud-obs

A PicGo plugin for uploading images to Huawei Cloud OBS (Object Storage Service)

npm version license

Features

  • ✅ Upload files to Huawei Cloud OBS
  • ✅ Support for custom storage paths
  • ✅ Support for custom domains
  • ✅ GUI configuration support
  • ✅ Automatic unique filename generation
  • ✅ Support for multiple file formats:
    • Images: JPG, PNG, GIF, BMP, WebP, SVG, ICO, TIFF
    • Videos: MP4, AVI, MOV, WMV, FLV, MKV, WebM, MPG
    • Audio: MP3, WAV, OGG, M4A, FLAC, AAC
    • Documents: PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, TXT
    • Archives: ZIP, RAR, 7Z, TAR, GZ
    • And more: JSON, XML, HTML, CSS, JS, MD, CSV

Installation

Via PicGo GUI

  1. Open PicGo
  2. Go to Plugin Settings
  3. Search for huaweicloud-obs
  4. Click Install

Via PicGo CLI

picgo install huaweicloud-obs

Manual Installation (for development)

git clone https://github.com/hu-qi/picgo-plugin-huaweicloud-obs.git
cd picgo-plugin-huaweicloud-obs
npm install
npm link
picgo install /path/to/picgo-plugin-huaweicloud-obs

Configuration

Required Settings

| Field | Description | Example | | --------------------- | ------------------------------ | ---------------------------------- | | Endpoint | OBS endpoint URL | obs.cn-north-4.myhuaweicloud.com | | Access Key ID | Huawei Cloud Access Key ID | YOUR_ACCESS_KEY_ID | | Secret Access Key | Huawei Cloud Secret Access Key | YOUR_SECRET_ACCESS_KEY | | Bucket | OBS bucket name | huqi-blog |

Optional Settings

| Field | Description | Example | | -------------- | --------------------------------- | ------------------------- | | Path | Storage path prefix in bucket | blog/images/ | | Custom URL | Custom domain for uploaded images | https://cdn.example.com |

Configuration via GUI

  1. Open PicGo
  2. Go to Image Hosting Settings
  3. Select Huawei Cloud OBS
  4. Fill in the required fields
  5. Click Confirm

Configuration via CLI

Edit PicGo config file (~/.picgo/config.json):

{
  "picBed": {
    "current": "huaweicloud-obs",
    "huaweicloud-obs": {
      "endpoint": "obs.cn-north-4.myhuaweicloud.com",
      "accessKeyId": "YOUR_ACCESS_KEY_ID",
      "secretAccessKey": "YOUR_SECRET_ACCESS_KEY",
      "bucket": "your-bucket-name",
      "path": "blog/",
      "customUrl": ""
    }
  }
}

Usage

Upload via GUI

  1. Configure the plugin (see above)
  2. Drag and drop images to PicGo
  3. Images will be automatically uploaded to OBS
  4. URLs will be copied to clipboard

Upload via CLI

# Upload single image
picgo upload /path/to/image.jpg

# Upload multiple images
picgo upload /path/to/image1.jpg /path/to/image2.png

OBS Endpoint List

Common Huawei Cloud OBS endpoints:

| Region | Endpoint | | ---------- | -------------------------------------- | | Beijing 1 | obs.cn-north-1.myhuaweicloud.com | | Beijing 4 | obs.cn-north-4.myhuaweicloud.com | | Shanghai 1 | obs.cn-east-3.myhuaweicloud.com | | Guangzhou | obs.cn-south-1.myhuaweicloud.com | | Hong Kong | obs.ap-southeast-1.myhuaweicloud.com |

For a complete list, see Huawei Cloud OBS Endpoints.

Getting Access Keys

  1. Log in to Huawei Cloud Console
  2. Click your username in the top right corner
  3. Select My Credentials
  4. Go to Access Keys tab
  5. Click Create Access Key
  6. Download and save your Access Key ID and Secret Access Key

Troubleshooting

Upload fails with "Access Denied"

  • Verify your Access Key ID and Secret Access Key are correct
  • Ensure your account has permission to write to the bucket
  • Check if the bucket exists and is in the correct region

Images not accessible after upload

  • Verify bucket permissions (should allow public read)
  • Check if the generated URL is correct
  • If using custom domain, ensure DNS is configured correctly

Plugin not showing in PicGo

  • Restart PicGo after installation
  • Check if the plugin is enabled in Plugin Settings
  • Try reinstalling the plugin

Development

# Clone repository
git clone https://github.com/hu-qi/picgo-plugin-huaweicloud-obs.git
cd picgo-plugin-huaweicloud-obs

# Install dependencies
npm install

# Link for local testing
npm link
picgo install /path/to/picgo-plugin-huaweicloud-obs

License

MIT © huqi

Related Links

Changelog

1.0.0

  • Initial release
  • Support for basic OBS upload functionality
  • GUI configuration support
  • Custom domain support