saghul / txiki.js

A tiny JavaScript runtime
MIT License
2.54k stars 171 forks source link

Implement localStorage and sessionStorage #346

Closed saghul closed 1 year ago

saghul commented 1 year ago

localStorage would be implemented using a file inside TJS_HOME.

NOTE: These are not available in a worker context.

Gary-Hobson commented 1 year ago

Maybe use unqlite to implement localStorage unqlite is a nosql KV database, using it to implement localStorage will be simpler and more efficient

saghul commented 1 year ago

Fixed in https://github.com/saghul/txiki.js/pull/408 -- currently using SQLite internally.