extension-js / extension.js

🧩 Plug-and-play, zero-config, cross-browser extension development tool.
https://extension.js.org
MIT License
3.51k stars 82 forks source link

Can extension.js add some common utility methods? #57

Open HereOrCode opened 2 months ago

HereOrCode commented 2 months ago

In development, we often deal with storage and message passing. Can extension.js provide some methods to make the development process more efficient?


Message passing  |  Chrome Extensions  |  Chrome for Developers https://developer.chrome.com/docs/extensions/develop/concepts/messaging

Reference: vocably/hermes: Typesafe browser extension messaging created with Typescript https://github.com/vocably/hermes


chrome.storage  |  API  |  Chrome for Developers https://developer.chrome.com/docs/extensions/reference/api/storage

Reference: https://webext-core.aklinker1.io/guide/storage/typescript.html

cezaraugusto commented 2 months ago

Hi @code4you2021, I'd like to have similar helper libs implemented as well or at least document use-cases and reference existing alternatives such as the ones you provided. For now, these modules seem to be the most requested:

I don't have immediate plans for this but feel free to propose something or provide some guidance of how you would like to see this implemented/API suggestions. I'm currently working on browser support, so having built-in support for them is unlikely in the near future. Would accept pull-requests for someone who might want to implement something. Packages live in /packages and there is a CONTRIBUTE guide that might help the adventurous :)