Closed eklem closed 2 years ago
Will be superceded by Dat SDK. The longer time it takes before I start, the biggeer chance it will be using the SDK and not Dat.js.
Check out the hypertrie example
Basing it on hypertrie will be good for later use cases too, having the possibility for multiwriter scenarios where you can have several people contributing to data for a search engine.
So, Hyperdrive v10 could be the base for this, storing the data that should be indexed. Creating a new JSON-file for i.e. every 1000 item / document. If you want to colaborate we could do some behind the scene mounting of each colaborator's Hyperdrive into the others Hyperdrive. This way you could easily connect and de-connect colaborative search engines. I.e. making a recipe search engine, you're invited to someone elses.
Stuff that could be interesting, and possible to grasp for users:
Syncronisation part
Need to wait for browser-version to land.
Hyperdrive to solve the file and folders synchronization. And dat-store to keep a backup seed going. Could be a wrapper around client, making sure the proper URL is used, etc.
Dat or hyper stuff is focusing too much on node.js-stuff, and the browser things seems to lag behind. Will drop that idea for now and look into making something simpler with Webtorrent.
https://docs.datproject.org/docs/browser-intro
Look into how
This way, people that starts search engines can get to a point where they think their search engine could be usable for others, and then go from there.
Share address could be [username].nowsearch.xyz/[enginename]. For the user with write access, the engine will also always be accessible through nowsearch.xyz/[enginename]