puter icon indicating copy to clipboard operation
puter copied to clipboard

Feature request: add a service worker

Open Zac0511 opened this issue 10 months ago • 5 comments

Puter could have a service worker that could allow a few things, such as :

  • Notifications : for example, send a notification when an app is approved on the App center (even when Puter is not open, in addition to the mail), or send a notification when a file/folder is shared with the user.
  • Basic offline page : the service worker could add a basic offline page saying to the user that Puter cannot be used offline

A service worker could probably add other functions, but i don't have any other idea for now.

Zac0511 avatar Jan 21 '25 17:01 Zac0511

Hello @KernelDeimos could I be assigned this idea?

hchou3 avatar Mar 07 '25 23:03 hchou3

@hchou3 sure, make sure you do some testing and see what's already implemented since this issue is a few months old.

For example, I believe we already have this implemented (just not using a service worker):

send a notification when a file/folder is shared with the user

I think what Zac is suggesting is we allow Puter to use the host system's notification system via the service worker instead. In this case, you would want to make sure that Puter doesn't show its own notification toasts when the user has their browser notifications enabled, since that would be redundant. (but, it absolutely should show Puter's notification toasts if the user doesn't have notifications enabled using the service worker)

KernelDeimos avatar Mar 08 '25 00:03 KernelDeimos

Got it! I'll let you know if I have any questions

hchou3 avatar Mar 08 '25 02:03 hchou3

I just noticed I forgot to assign you through the UI. You are now assigned on Github

KernelDeimos avatar Mar 10 '25 22:03 KernelDeimos

Thank You! I actually haven't noticed either 😅

hchou3 avatar Mar 11 '25 02:03 hchou3

Hello @hchou3, any updates on this? Let us know if you need help.

jelveh avatar Jul 02 '25 21:07 jelveh