trovu / trovu

Search 1000+ websites in a command-line way, with curated and personal shortcuts, organized by namespaces, allowing multiple and typed arguments, with maximum privacy.
https://trovu.net
GNU Affero General Public License v3.0
43 stars 15 forks source link

[Suggestion for improvement] Implementation of a trovu API for search suggestions #450

Open Wikinaut opened 3 months ago

Wikinaut commented 3 months ago

Recently https://anonsys.net/display/bf69967c-1866-b453-203f-976270399410 reports about a way to add an API for search suggestions.

I think, this is valid method to add trovu's suggestions to browsers which can handle that.

m #Firefox #Browser für #Android könnt ihr eine eigene #Suchmaschine hinzufügen. Ich verwende die #Searx Instanz #Gruble von #Adminforge. Nun werden bei manuell hinzugefügten Suchmaschinen keine Suchvorschläge angezeigt, wenn ich etwas in die Adressleiste eintippe. Dazu müsst ihr eine zusätzliche URL für die Vorschläge einrichten.

Als URL habe ich eine von #DuckDuckGo in Verwendung ac.duckduckgo.com/ac/?q=%s&typ…

grafik



This repo is using Opire - what does it mean? 👇
💸Everyone can add rewards for this issue commenting /reward 100 (replace 100 with the amount)
💪 If someone starts working on this issue to earn the rewards, they can comment /try to let everyone know!
🙌 And when they open the PR, they can comment /claim #450 either in the PR description or in a PR's comment

👀 Also, everyone can tip any user commenting /tip 20 @Wikinaut (replace 20 with the amount, and @Wikinaut with the user to tip)

If you want to learn more, go to our documentation
georgjaehnig commented 3 months ago

If I understand correctly, this is the same as <Url type="application/x-suggestions+json" template="[suggestionURL]"/> in OpenSearch.

The problem with this is that Trovu currently is

  1. a static site, with no server-side code
  2. offering full-privacy: the entire processing of a query happens in the client.

With the suggestionURL, I can only provide a template URL, where the browser will send entered search terms to. The matching with the shortcuts then has to happen on the server.

So Trovu could not be a static site anymore. But even if I'd be ok with that, I can't see how I still could offer the current privacy.

Do you see a scenario where I could?