It would be nice for datasette-lite to be distributed as a Python package like jupyterlite in order to build a datasette-lite website distribution, instead of having to fork this repository. This could even be Datasette plugin, in the vein of datasette-publish-vercel, providing a command to build the static website.
For instance, a possible workflow:
pip install datasette datasette-lite
datasette lite build
- Deploy on static hosting
Some nice to have features that could be integrated with the build command:
datasette lite build --output dir: specify the output directory:
datasette lite build --install datasette-dashboards: pre-installing additional dependencies (without having to use the install query argument) by templating webworker.js to include additional micropip.install instructions
The build command could then be responsible for generating at least the following files:
It would be nice for
datasette-liteto be distributed as a Python package likejupyterlitein order to build adatasette-litewebsite distribution, instead of having to fork this repository. This could even be Datasette plugin, in the vein ofdatasette-publish-vercel, providing a command to build the static website.For instance, a possible workflow:
pip install datasette datasette-litedatasette lite buildSome nice to have features that could be integrated with the build command:
datasette lite build --output dir: specify the output directory:datasette lite build --install datasette-dashboards: pre-installing additional dependencies (without having to use theinstallquery argument) by templatingwebworker.jsto include additionalmicropip.installinstructionsThe build command could then be responsible for generating at least the following files:
index.htmlwebworker.js