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-onemanager-v2

v2.0.5

Published

onemanager图床v2

Readme

picgo-plugin-onemanager-v2

A plugin for PicGo to use OneDrive as imgur.

PicGo插件,使用OneDrive作为图床。

基于picgo-plugin-onemanager进行更新。解决痛点:

  1. PicGo更新后原项目上传报错的问题。感谢**Orainge**在原项目提出的Pull requests解决了这个问题,我将此更新在本插件中,经测试无上传报错问题。

  2. 上传图片后,基于onedrive-vercel-index获取图片直链(性能表现更佳)。

总而言之,本插件需提前部署两个项目:

  1. onedrive-vercel-index,用于获取图片直链
  2. onemanager,用于上传图片

为什么制作这个插件

时至2024的尾巴,网上依旧没有简易、可用的OneDrive图床方案。

非常感谢picgo-plugin-onemanager让我得以在一晚上完成本插件的开发。

picgo-plugin-onemanager目前似乎只能在旧版本PicGo(2.3.1)工作,而旧版本PicGo似乎插件商店无法搜索到插件了,因此使我有了对原项目进行魔改的动机。

由于我之前已完成onedrive-vercel-index的搭建,因此我本来有获取图片直链的方案,但缺乏上传图片的手段,因此借用onemanager项目,用于上传图片。

目前最基本的图床功能已实现:上传图片&返回直链URL,其余功能后续看情况再开发吧(

简单的教程

插件安装

① 本地安装

下载本项目,

打开PicGo->插件设置->导入本地插件->选择本项目所在文件夹

image-20241210152410728

② picgo插件设置安装

~~在picgo中搜索关键词onemanagerv2即可~~(我再研究下怎么上传PicGo插件商店)

onemanager设置(沿用picgo-plugin-onemanager

我这里设置的是/onedrive-vercel-index/Pictures文件夹

  • 打开你刚刚设置的图床文件夹
  • 复制浏览器地址栏url

image-20241210153229714

我这里是https://pan.laoxin.top/od1/onedrive-vercel-index/Pictures后面需要将这个url填入到插件url栏 注意 ykfile 文件夹需要提前创建 如果你只是挂载了一个网盘,那么https://pan.laoxin.top/od1/onedrive-vercel-index/Pictures这行地址中不会存在od1

  • 打开插件设置
  • 将刚刚复制的url填入即可

image-20241210153342235

onedrive-vercel-index设置

强烈推荐这个大佬的教程:免费搭建你的OneDrive公共网盘——Vercel特供版

配置好以后,找到图床里面任意一个图片,获取它的下载链接,格式为(大括号内的内容可变):

https://{domain.app}/api/raw/?path=/{Pictures}/{Picture_name}

聪明的你发现不同图片的直链URL只有{Picture_name}不同,所以这时候你就把前缀大胆放到插件设置中吧:

image-20241210154047163

放进去的域名为(根据你的实际情况,修改大括号里面的内容):

https://{domain.app}/api/raw/?path=/{Pictures}/

安全性分析

onemanager只用于上传,网址是放在本地PicGo的,所以我认为应该不会有安全隐患。

而暴露在互联网上的是onedrive-vercel-index的域名,因此安全性取决于onedrive-vercel-index。

onedrive-vercel-index提供了加密选项配置:

https://ovi.swo.moe/zh/docs/features/protected-folders

加密后在onedrive-vercel-index上复制图片链接,可以看到有个后缀odpt=XXXXXX

把后缀填到插件设置安全栏即可实现分享。