I want to host a small and explorable sqlite database (~20MB) on github pages and datasette-lite looks like the most appropriate way. This is the dataset btw https://www.kaggle.com/datasets/barryhaworth/imdb-parental-guide?select=IMDB_parental_guide.csv and this file is only useable after downloading and the kaggle's own UI isn't too good.
I don't understand webworkers. There isn't any .js available as a release either in this repo. Looking at some of the files in here, it doesn't look self contained because its loading some other .js files from external URLs (or may be its just that I don't know how to use it). I know I can hit https://lite.datasette.io/ with apporpriate params to load my file but I don't want to hit any external URL.
- Can you please add a small usage example in your Readme? Something like
<!-- site/index.html -->
<!doctype html>
<meta charset="utf-8" />
<title>my.db explorer</title>
<script src="datasette.js">
// script to load db e.g.
// load("my.db");
</script>
- Is it self contained? Can it be made self contained?
I want to host a small and explorable sqlite database (~20MB) on github pages and datasette-lite looks like the most appropriate way. This is the dataset btw https://www.kaggle.com/datasets/barryhaworth/imdb-parental-guide?select=IMDB_parental_guide.csv and this file is only useable after downloading and the kaggle's own UI isn't too good.
I don't understand webworkers. There isn't any .js available as a release either in this repo. Looking at some of the files in here, it doesn't look self contained because its loading some other .js files from external URLs (or may be its just that I don't know how to use it). I know I can hit https://lite.datasette.io/ with apporpriate params to load my file but I don't want to hit any external URL.