How to make Zotero load plugins from unpacked source code?

67 views
Skip to first unread message

coffee db

unread,
Nov 3, 2023, 10:55:20 AM11/3/23
to zotero-dev
I'm currently studying how to develop Zotero plugins and have been searching for quite some time, but still haven't found a way to load plugins from compiled source code. What are the steps to achieve this functionality?

XY Wong

unread,
Nov 3, 2023, 11:34:37 AM11/3/23
to zotero-dev
dev:client_coding:plugin_development [Zotero Documentation] If you cannot load from the source code even if you are following the steps of the official document, please come back with more detailed descriptions of the steps, your Zotero version, and what plugin you are trying to load.

The scaffolds like https://github.com/windingwind/zotero-plugin-template can automatically set up this step for you, but that relies on a correct configuration. 

coffee db

unread,
Nov 6, 2023, 5:00:28 AM11/6/23
to zotero-dev
I think I have found the problem. In the `package.json`, the `addonID` must be configured in email format. Using other characters will prevent the plugin from being loaded from the source code. (I was able to load the plugin from the source code by changing the `addonID` to an email format.) Are there any rules or requirements for naming `addonID`? Why is it necessary to set it in this way?

XY Wong

unread,
Nov 6, 2023, 5:06:44 AM11/6/23
to zotero-dev
Because Zotero is based on Firefox, and Firefox has such a requirement.

coffee db

unread,
Nov 6, 2023, 11:01:45 AM11/6/23
to zotero-dev
I understand now. Thank you very much for your assistance!
Reply all
Reply to author
Forward
0 new messages