GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - terwer/siyuan-plugin-picgo: Your favorite PicGo image bed is still available in siyuan-notes, wuhu~ 您喜爱的 PicGo 图床,在思源笔记依然可用,没想到吧~

BranchesTags
Open more actions menu

Latest commit

 

History

645 Commits
645 Commits

Folders and files

NameName
Last commit message
Last commit date
.agent-hosts
.agent-hosts
 
 
.codex
.codex
 
 
.dsh
.dsh
 
 
.github
.github
 
 
.hermes
.hermes
 
 
.openidea
.openidea
 
 
.planning
.planning
 
 
docs/audits
docs/audits
 
 
libs
libs
 
 
openspec
openspec
 
 
packages
packages
 
 
scripts
scripts
 
 
.eslintrc.cjs
.eslintrc.cjs
 
 
.gitguardian.yml
.gitguardian.yml
 
 
.gitignore
.gitignore
 
 
.mcp.json
.mcp.json
 
 
.npmrc
.npmrc
 
 
.prettierignore
.prettierignore
 
 
.prettierrc.cjs
.prettierrc.cjs
 
 
.release-please-manifest.json
.release-please-manifest.json
 
 
CHANGELOG.md
CHANGELOG.md
 
 
DEVELOPMENT.md
DEVELOPMENT.md
 
 
DEVELOPMENT_zh_CN.md
DEVELOPMENT_zh_CN.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
README_zh_CN.md
README_zh_CN.md
 
 
commitlint.config.cjs
commitlint.config.cjs
 
 
dev.sh
dev.sh
 
 
icon.png
icon.png
 
 
package.json
package.json
 
 
plugin.json
plugin.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 
preview.png
preview.png
 
 
release-please-config.json
release-please-config.json
 
 
turbo.json
turbo.json
 
 

Repository files navigation

中文

PicGo Plugin

Your favorite PicGo image bed is still available in siyuan-notes, wuhu~

Recent Changes

Only the three most recent 3.x minor versions are kept here, with patch releases folded into their minor version.

  • v3.2.x
    • Image uploads are scoped to the focused block
    • The drag upload image limit is configurable
    • Headless upload resolves database images from Markdown and replaces them exactly
    • Fixed active document detection for focused tabs and when a rich title protyle comes first
    • Upgraded the js-md5 dependency
  • v3.1.x
    • SM.MS uploads now go to S.EE after the SM.MS migration
    • Paste upload and link replacement are independent
    • Fixed a missing PicListUploader import
    • The plugin entry remains a single self-contained file
    • The console prints warnings and errors by default, keeping only key upload start/finish lines
    • Added project-level Electron CDP config for dev tooling and excluded the CDP endpoint from the HTTP proxy
    • Upgraded zhi dependencies and a batch of dev dependencies (including dependabot updates)
  • v3.0.x
    • PicGo config is now stored in the workspace and accessed through an async facade
    • HarmonyOS support
    • Documents without images skip uploader validation
    • The bazaar manifest conforms to the new spec

See CHANGELOG.md for the full history.

Recommended Configuration

Recommended: use rustfs with the PicGo plugin for the best self-hosted image hosting setup.

Version Compatibility

Important Note:

PicGo 3.0.0+ uses a unified configuration source. The bundled PicGo config, external PicGo/PicList config, and SiYuan connection config are read from workspace-backed configuration files when the SiYuan API is available. Runtime files, third-party plugin dependencies, cache, scripts, and logs still stay on the current device.

The 2.0.0 path split is now listed under Historical paths for reference.

Please refrain from updating this plugin for versions of siyuan-note prior to 3.0.3; the highest permissible version remains 1.5.1. For siyuan-note versions 3.0.3 and beyond, the PicGO plugin may be upgraded to 1.6.0+.

For versions of siyuan-note before 2.10.8, it is advised not to upgrade this plugin beyond version 1.4.5. Subsequent to siyuan-note 2.10.8, the PicGO plugin can be updated to 1.5.0+.

v3.0.0 configuration paths

v3.0.0 is a configuration cleanup release. It keeps the v2 runtime split, and moves all user-facing PicGo configuration into explicit workspace configuration files.

Workspace-backed configuration:

[workspace]/data/storage/syp/picgo/
  picgo.cfg.json                  # bundled PicGo config, uploaders, plugin values, paste behavior
  external-picgo-cfg.json         # external PicGo App / PicList API selection and endpoint

[workspace]/data/storage/syp/
  siyuan-cfg.json                 # SiYuan API connection settings

Device-local runtime files stay outside workspace sync:

~/.universal-picgo/
  package.json
  package-lock.json
  node_modules/
  libs/
  i18n-cli/
  picgo-clipboard-images/
  mac.applescript / windows.ps1 / windows10.ps1 / linux.sh / wsl.sh
  picgo.log

Migration rule: v3 imports eligible legacy data by domain, writes the new configuration files, and leaves existing real user configuration in place. After migration finishes, PicGo records a marker and stays quiet on later starts.

About rare simultaneous edits: if multiple PicGo entry points in the same SiYuan workspace edit the same setting at almost the same time, the last save wins.

Note: this does not affect SiYuan's multiple-workspace model; separate workspaces remain naturally isolated. Most users will never hit this.

Historical paths

2.0.0 - 2.x
[workspace]/data/storage/syp/picgo/picgo.cfg.json
~/.universal-picgo/external-picgo-cfg.json
~/.universal-picgo/package.json
~/.universal-picgo/package-lock.json
~/.universal-picgo/node_modules/
~/.universal-picgo/libs/
~/.universal-picgo/i18n-cli/
~/.universal-picgo/picgo-clipboard-images/
~/.universal-picgo/*.script
~/.universal-picgo/picgo.log

1.6.0+
~/.universal-picgo/picgo.cfg.json
~/.universal-picgo/external-picgo-cfg.json
~/.universal-picgo/package.json
~/.universal-picgo/package-lock.json
~/.universal-picgo/node_modules/
~/.universal-picgo/libs/
~/.universal-picgo/i18n-cli/
~/.universal-picgo/picgo-clipboard-images/
~/.universal-picgo/*.script
~/.universal-picgo/picgo.log

<= 1.5.6
[workspace]/data/storage/syp/picgo/picgo.cfg.json
[workspace]/data/storage/syp/picgo/external-picgo-cfg.json
[workspace]/data/storage/syp/picgo/package.json
[workspace]/data/storage/syp/picgo/package-lock.json
[workspace]/data/storage/syp/picgo/node_modules/
[workspace]/data/storage/syp/picgo/libs/
[workspace]/data/storage/syp/picgo/i18n-cli/
[workspace]/data/storage/syp/picgo/picgo-clipboard-images/
[workspace]/data/storage/syp/picgo/*.script
[workspace]/data/storage/syp/picgo/picgo.log

Image Hosting Support

  • Githubrecommended
  • Gitlabrecommended
  • Alibaba Cloud
  • Tencent Cloud
  • Upyun
  • Qiniu Cloudrecommended
  • SM.MS
  • imgur
  • Amazon S3recommended, thanks to @hzj629206
  • Lsky pro v1.11.0+

Changelog

Please refer to CHANGELOG

Donate

If you approve of this project, invite me to have a cup of coffee, which will encourage me to keep updating and create more useful tools~

WeChat

wechat

Alipay

alipay

Related Items

  • sy-picgo-core
  • Electron-PicGo-Core
  • picgo-plugin-watermark-elec

Thanks

Thanks to the solutions provided by the open source community, which simplifies a lot of work for this project!

  • PicGo-Core
  • PicList

About

Your favorite PicGo image bed is still available in siyuan-notes, wuhu~ 您喜爱的 PicGo 图床,在思源笔记依然可用,没想到吧~

Topics

picbedpicgopicturesiyuan-note

Resources

Readme
MIT license
Activity

Stars

40 stars

Watchers

2 watching

Forks

14 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.