blugelabs / bluge

indexing library for Go
Apache License 2.0
1.9k stars 125 forks source link

Indexeddb store advice #72

Open gedw99 opened 3 years ago

gedw99 commented 3 years ago

I am wishing to make Bluge work inside a browser where all the golang code is compiled to wasm.

fortunately there is a great lib that gives the developer a file system backed by indexeddb here:

https://github.com/hack-pad/hackpadfs

uses

https://github.com/hack-pad/go-indexeddb

Can you advice about the things in Bluge that would require to be done.

I suspect the segment api repo would be where the work would be done with a different go tag for JS WASM , but perhaps I am wrong.

also let me know if this is something you would be interested in having in Bluge or if I need to maintain a forked repo etc

the gui I am using is gioui btw which I am really liking . It builds for web, desktop and mobile and can use bluge lobs although I have not fully tested it with bluge on mobile yet.

I am just wanting to get gioui and Bluge working on the Wasm build of gioui.

here is the code and examples:

https://github.com/gioui

gedw99 commented 3 years ago

@mschoch would you have time to comment on this proposal ?