How to integrate ipfs-desktop with self hosted ipfs-search?

Since ipfs-search shut down (and the API is likely to shut down too at some point.) I’ve been wondering how to self host ipfs-search locally and integrate it with ipfs-desktop. From what little I know about ipfs-desktop I figure I would need to add it as a pinning service to be able to have the results show up on ipfs-desktop.

There’s also very little information on self hosted ipfs-search out there. They say they have great docs but they’re pretty bare bones… The guides don’t provide much detail on how to use ipfs-search or how to integrate a self-hosted instance of it.