Fwiw LocalStorage is a SQLite db on most browsers, with a kv api. It’s be interesting to have the actual API available.
That's why PeakSlab is written in c, because what's faster than casting the whole database to a struct? ;-P