Enter some words, then close your browser and re-open it again. Navigate to this page.
How it works:
- queryable.js is fetched from the server in <script src="/queryable.js"></script> like normal
- The database is stored in the browser, inside a variable provided by most browsers: localStorage
- When queryable.open(db_name); is called, if a matching db_name key is found in
localStorage, queryable loads from it.
- When db.save() is called, it updates the key in localStorage
- Multiple DBs can be on the same page with different db_name