-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Turn this into an offline enabled PWA #26
Comments
Very relevant example repository: https://github.com/mikeckennedy/pyscript-pwa-example Here's the Service Worker that caches all of the necessary wheels: https://github.com/mikeckennedy/pyscript-pwa-example/blob/main/static/js/serviceWorker.js |
I think step one here is going to be figuring out how to have Datasette Lite load all of its assets from the same domain it is hosted on, rather than pulling things from PyPI. |
Could a Github Action handle the pulling of packages into a repo from a requirements file. And then use a template Github repository as a way for people to "install" a blank datasette-lite application to a new repo of their own repository that can then build a datasette-lite distribution from a relatively simple set of config files? |
Yes, definitely. I think that's the way I want to go - my ideal for Datasette Lite is that it's entirely self-contained, so you can run it on a server (or on your laptop) without it loading anything at all from external servers. I need to figure out how to have it load the various Python wheels it needs from a URL that I control first though. |
Does |
I think I've figured out how to do it: https://pyodide.org/en/stable/usage/loading-packages.html#installing-wheels-from-arbitrary-urls
|
Micropip or Mambalite or picomamba or Zig. "Better integration with conda/conda-forge for building packages" pyodide/pyodide#795 Emscripten-forge > Adding packages: |
"Progressive Web Apps:Going Offline" https://developers.google.com/codelabs/pwa-training/pwa03--going-offline#0 ( Sep 30, 2022 ) |
https://twitter.com/derjan/status/1521896354745921537
No reason at all it shouldn't be able to do that.
For it to be useful I would need to implement "open file":
The text was updated successfully, but these errors were encountered: