Your SQL-based example was Sqlite, so I assume you want something light which will run on the user’s local system. On that note, MongoDB is a great and powerful NoSQL database, but probably overkill – the name “Mongo” comes from the word “humongous,” and its intended use-case is more like the use-cases for MySQL or Postgres than Sqlite.
IndexedDB or Redis are very light-weight – i.e., the installed packages are very small, the APIs are going to be simpler to work with, and won’t take much of the client’s CPU or RAM to use. I would try glancing through the documentation for both and making a trivial database. Add, change, and delete some database entries, and search inside it. See which one you like working with better.