datasette-lite
datasette-lite copied to clipboard
Datasette running in your browser using WebAssembly and Pyodide
https://twitter.com/derjan/status/1521896354745921537 > Is it a PWA that I can "install" and use offline? No reason at all it shouldn't be able to do that. For it to be useful I...
Many Datasette plugins won't work, but a few might. Supporting `?install=datasette-json-html` would be a neat way to try them out.
Relates to plugins challenge: - #5 The `table.js` script used by the table page doesn't load at the moment, which means no cog icons on the columns:  
It's compiled to WASM by this project: https://github.com/jvail/spl.js WASM blob here: https://github.com/jvail/spl.js/blob/main/dist/spl.wasm Would be amazing to figure out how to load this as a Python module, as seen in https://docs.datasette.io/en/stable/spatialite.html#spatial-indexing-latitude-longitude-columns
https://twitter.com/BardakciBaba/status/1521927918603145216 > Impressive! Does it download the whole database or only the bits sqlite actually needs - possibly via http range requests a la https://phiresky.github.io/blog/2021/hosting-sqlite-databases-on-github-pages/ Right now Datasette Lite downloads...
Not actually uploading it to the server, but opening it through the browser file open UI - like https://squoosh.app/
I'm seeing that error message on this page in Firefox right now: https://simonw.github.io/datasette-lite/?url=https%3A%2F%2Fglobal-power-plants.datasettes.com%2Fglobal-power-plants.db I've not seen it before. It's blocking the page from loading:
If you click several links in quick succession on an expensive page, e.g. https://simonw.github.io/datasette-lite/?url=https%3A%2F%2Fglobal-power-plants.datasettes.com%2Fglobal-power-plants.db#/global-power-plants/global-power-plants?_facet=primary_fuel&primary_fuel=Wind&_facet=geolocation_source&_facet=generation_data_source - it's possible that a message will return out of order and the page will render...