ts-odd icon indicating copy to clipboard operation
ts-odd copied to clipboard

Implement a key -> value storage abstraction over JSON

Open jeffgca opened this issue 3 years ago • 1 comments

We should explore using something like lowdb ( or similar ) in examples or possible as an integrated utility.

@bgins what do you think?

jeffgca avatar Jul 06 '22 20:07 jeffgca

Great idea! I think we could start by prototyping it with existing the existing WNFS API. Then if it works out, we could think about integrating it.

One quick experiment we could try out is implementing a lowdb adapter: https://github.com/typicode/lowdb#writing-your-own-adapter. An AsyncAdapter wrapping a few WNFS methods (plus the usual webnative initialization) might be enough.

bgins avatar Jul 07 '22 18:07 bgins