Skip to content
Pocket Homelab
Install

Pocket Search

Pocket Search as the web search behind the Web screen, Spotlight and the quick action instead of SearXNG: results with your own site rules, bangs that jump straight to a site, and the full results page one tap away.

iPhoneMac
On this page

Pocket Search is a free, open-source (MIT), self-hosted private web search: a bundled SearXNG asks dozens of engines at once from your server, and you decide which sites come first, sink or never show up. Bangs jump straight to a site, and your Pocket apps are searched beside the web on its own results page. Pocket Homelab uses it wherever it would use SearXNG: the Web screen, Spotlight, the Home search bar and the Search the web quick action. You pick which of the two in Settings.

What you get

  • Web screen: results from Pocket Search with your site rules already applied (hidden sites left out, favourite sites first), an Answer card when an engine has one, related searches as chips, and Open all results in Pocket Search for the full page with pictures, news, your apps and AI answers.
  • Bangs: a search like !w aurora or !yt sourdough goes straight to that site (or to a Pocket Search page such as its pictures) in the in-app browser instead of listing results.
  • History: a search you submit is kept in Pocket Search’s history; the searches made while you type are not.
  • Home block Search the web, the Search the web quick action (⇧⌘G on the Mac) and Spotlight’s live WEB section all use Pocket Search once it is the web search app.

Set up

  1. In Pocket Search, open Settings → API & shortcuts and create a token. Copy it: it starts with psr_ and is shown once.
  2. In Pocket Homelab: Settings → Services → Web search. Under Web search app choose Pocket Search; the fields below follow the choice, and the SearXNG address is kept for when you switch back.
  3. Paste the base URL and the token, then Test connection. It runs a one-word search; a refused token says “The token was refused. Make one in Pocket Search → Settings → API & shortcuts.”
These keys sit in the Web search group with SEARXNG_URL. Without a token, web search stays hidden.
KeyFieldRequiredSecretWhere to get it
WEB_SEARCH_BACKENDWeb search appOptional—pocket (Pocket Search) or searxng (a SearXNG instance). Empty means Pocket Search when it has an address, else SearXNG.
SEARCH_URLPocket Search URLRequired—Base address of your Pocket Search server. Web search, Spotlight and the quick action use it when Pocket Search is the web search app.
SEARCH_API_KEYPocket Search API tokenRequiredSecretA token from Pocket Search → Settings → API & shortcuts (starts with psr_). Stored in the Keychain.
These keys sit in the Web search group with SEARXNG_URL. Without a token, web search stays hidden.

On iPhone

The Web screen before a search: the field Search the web… at the top with the keyboard up, and Search the web: Results come from your Pocket Search, with your site rules. Bangs like !w or !yt jump straight to a site.The Web screen before a search: the field Search the web… at the top with the keyboard up, and Search the web: Results come from your Pocket Search, with your site rules. Bangs like !w or !yt jump straight to a site.
The Web screen, ready to type.

The Web screen opens with the search field ready. It says where the results come from: “Results come from your Pocket Search, with your site rules. Bangs like !w or !yt jump straight to a site.” It searches 350 ms after you stop typing, or at once on Return.

Results for restic backup schedule: an Answer card about how restic deduplicates, related searches as chips, then 10 results led by Restic backup schedule · Atlas runbook on docs.atlas.home and a wiki.example.org guideResults for restic backup schedule: an Answer card about how restic deduplicates, related searches as chips, then 10 results led by Restic backup schedule · Atlas runbook on docs.atlas.home and a wiki.example.org guide
Results with an answer, related searches and your favourite sites first.

Each result has its title, the site and a few lines; tap it to open the page in the in-app browser, or hold it for Copy link and Share. A tap on a related search runs it. Under the results, Open all results in Pocket Search opens Pocket Search’s own page for the same search; Open Pocket Search in the toolbar opens its start page.

On Mac

A search in Web: the results in a column, the Answer card and Related searches beside them.A search in Web: the results in a column, the Answer card and Related searches beside them.
A search in Web: the results in a column, the Answer card and Related searches beside them.

Web sits in the sidebar under Workspace (⌃⌘9). Before your first search it shows one large Search the web field with the same note about your Pocket Search and an Open Pocket Search link. Once you search, the field moves into a bar with the result count and Open in Pocket Search, the results fill a readable column, and the Answer card and Related searches sit beside them. Clicking a result opens it in your default browser; right-click for Open in Default Browser, Share and Copy link.

Actions

None beyond searching and opening results. Site rules, bangs, engines and history are managed in Pocket Search’s own settings.

Works with

  • Spotlight: from two characters on, the live WEB section lists “Search the web for ‘…’” and the top results.
  • Home: the Search the web block opens the Web screen.
  • Pocket Core: supplies the address and the device token.

Tips & troubleshooting

  • The Web screen is missing: Pocket Search needs both the address and the token; with either empty, web search stays hidden rather than showing an error.
  • A site you hid still shows up: the rules live in Pocket Search (Sites); a change there applies to the next search.
  • Switching back to SearXNG is the Web search app choice in the same form; nothing on either server changes.