2 ms·
Really cool idea and implementation! It is really making me think about if this can be done in a service worker so that you could expose what would look like a
by pseudosavant 4y ago
Really cool idea and implementation! It is really making me think about if this can be done in a service worker so that you could expose what would look like a standard (REST?) API?
It seems like a client-side non-JS server backend would be incredibly useful. Just drop the service worker in and point it at your data source.
- simonw 4y agoI tried building this with a Service Worker first and it didn't work, because Pyodide needs XMLHttpRequest. I opened an issue about that here: https://github.com/pyodide/pyodide/issues/2432 https://github.com/pyodide/pyodide/issues/2432