esm-dev / esm.sh

A fast, smart, & global CDN for modern(es2015+) web development.
https://esm.sh
MIT License
3.07k stars 147 forks source link

Feature request - SSE for package new version #799

Closed jdevega closed 7 months ago

jdevega commented 7 months ago

Feature request

It would be awesome to have an endpoint were clients can connect to SSE (Server Sent Events) and get notified whenever a new version of a package has been published to the registry ( NPM for example ).

const esmshEvents = new EventSource('https://esm.sh/sse')
esmshEvents.addEventListener('update', (event) => ... );

I don't know if this would be something useful or not, but for me, i'll love it if it was implemented.

Thanks for the great work BTW!

ije commented 7 months ago

i don't think this is possible. think esm.sh is not a registry, it doesn't know what is happening in the back registry unless an user is accessing a module.

jdevega commented 7 months ago

Yes, maybe it's out of the scope of esm.sh . Thanks anyway.