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

picgo-plugin-gitee-nutpi

v1.0.1

Published

picgo uploader for gitee

Readme

picgo-plugin-gitee

一个为 PicGo 开发的 Gitee 图床插件,让图片管理更简单、更高效。

📝 项目背景

在使用 Markdown 写作时,图片管理一直是一个痛点。虽然有很多图床服务,但要么需要付费,要么不够稳定。作为国内开发者经常使用的 Gitee 平台,它提供了免费的代码托管服务,何不将其作为图床使用?

基于这个想法,我开发了这个插件,它可以:

  • 让你直接在 PicGo 中使用 Gitee 作为图床
  • 提供简单的配置界面
  • 支持图片的上传和删除同步
  • 完全免费,无需额外付费

⭐ 核心特性

  • 🚀 一键上传:快速将图片上传至 Gitee 仓库
  • 🔄 双向同步:支持 PicGo 中的删除操作同步到 Gitee
  • 📁 路径管理:支持自定义存储路径,更好地组织图片
  • 💾 提交定制:支持自定义 Git 提交信息
  • ⚡ 秒传检测:自动检测重复文件,避免重复上传
  • 🔒 安全可靠:使用 Gitee API Token 认证,确保安全性

🚨 使用限制

  • ⚠️ Gitee 单文件大小限制为 1MB
  • 🔒 需要配置 Gitee 的个人访问令牌
  • 📡 受 Gitee API 调用频率限制
  • 🌐 图片链接受 Gitee 平台策略影响

安装

npm install picgo-plugin-gitee

配置说明

必需配置项

| 参数名 | 描述 | 示例 | |--------|------|------| | owner | Gitee 仓库所有者用户名 | nutpi | | repo | Gitee 仓库名称 | images | | token | Gitee 个人访问令牌 | 5664xxxxxxxxxxxxx |

可选配置项

| 参数名 | 描述 | 默认值 | |--------|------|--------| | path | 图片存储路径(仓库中的目录) | 根目录 | | message | Git 提交信息 | picgo commit |

仓库配置指南

方式一:创建新仓库

mkdir resources
cd resources
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin your-remote-link
git push -u origin master

方式二:使用现有仓库

cd existing_git_repo
git remote add origin your-remote-link
git push -u origin master

获取 Gitee Token

  1. 登录 Gitee 账号
  2. 进入设置 -> 私人令牌
  3. 生成新令牌(建议只勾选 projects 权限)
  4. 复制生成的令牌字符串

基础配置

| 配置项 | 必填 | 说明 | 示例 | | ------- | ---- | ------------ | ----------------- | | owner | 是 | Gitee 用户名 | nutpi | | repo | 是 | 仓库名称 | images | | token | 是 | 访问令牌 | xxxxxx | | path | 否 | 存储路径 | img/blog | | message | 否 | 提交信息 | Upload by PicGo |

🔧 开发指南

环境准备

git clone https://gitee.com/nutpi/picgo-plugin-gitee.git
cd picgo-plugin-gitee
npm install

项目结构

.
├── src/
│   └── index.js          # 主程序入口
├── package.json          # 项目配置
└── README.md            # 项目文档

关键模块

  • register: 插件注册和初始化
  • handle: 图片上传处理
  • onRemove: 删除操作处理
  • getUserConfig: 配置管理

开发流程

  1. Fork 项目
  2. 创建特性分支
  3. 提交代码
  4. 创建 Pull Request

🤝 参与贡献

欢迎所有形式的贡献,包括但不限于:

  • 提交问题和建议
  • 完善文档内容
  • 提交代码改进
  • 分享使用经验

贡献步骤

  1. 先查看 Issue 列表
  2. 如果是新问题,创建新的 Issue
  3. Fork 项目并克隆到本地
  4. 创建新分支:git checkout -b feature/your-feature
  5. 提交改动:git commit -am 'Add some feature'
  6. 推送分支:git push origin feature/your-feature
  7. 提交 Pull Request

📚 相关资源

🔗 更多链接

📄 开源协议

MIT License © 2023 坚果派

如果这个项目对你有帮助,欢迎 ⭐️ Star 支持!

坚果派