newer (?) versions of zoekt https://github.com/sourcegraph/zoekt support format=json. This would enable a simple R client for code.bioconductor.org that operated independent of the html structure.
I don't think the user interface needs to change, other than indicating that json is a supported format.