Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HereOrCode opened this issue May 12, 2024 · 1 comment
Open

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

HereOrCode opened this issue May 12, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@HereOrCode
Copy link

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
Copy link
Owner

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:

  • Handling message passing across contexts (like you mentioned)
  • Handling storages (like you mentioned)
  • Auth middleware for existing auth tools (next-auth, auth0, etc)

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 :)

@cezaraugusto cezaraugusto added the enhancement New feature or request label Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants