I have a small html/javascript only webapplication that runs client-side only. There is no backend (side from the files hosted on a webserver of course). My app does need to lookup a few fields though, based on an integer index. The data is readonly. There is no need for the user to edit it (I publish a new version once every so often). The data is only a single "table" and each row contains only a few columns. But the data can potentially contain quite a few rows. So a simple json file with an array of objects may get problematic to load into memory. I was looking at websql and https://github.com/orbitaloop/WebSqlSync but websql isn't supported by firefox, so no option for me.
So is there any javascript database/api that I could use load a database file from a webserver and use on the client for the data lookup? It could potentially just cache the file as long as the webserver reports it as unchanged. Basically something like localstorage or an sqlite database or something.
So requirements are:
- no server side backend/software needed other than regular webserver file hosting
- potentially local caching in the browser
- only read-only access needed
- works with javascript in most modern browsers ("recent" versions of edge/FF/chrome)