Skip to content
← Public packages

@hypercubed/web-search

Unified web search - Brave via BraveSearch secret (api.search.brave.com), then DDG Instant, then Wikipedia. Normalized {provider, results} shape.

  • Productivity
  • search
  • web-search
  • brave
  • brave-search
  • duckduckgo
  • wikipedia
  • productivity
Version
1.0.5
License
MIT
Published
August 31, 2026
Pinned commit
f55cd92
Rating
No ratings yet
Forks
1
Adaptation effort
—

README

web-search

Intent

Unified web search for any Kody agent. Tries Brave Search first, then free Worker-safe fallbacks. Normalized {provider, results: {title, url, snippet}[]} shape.

Setup (required for Brave)

  1. Create secret BraveSearch at /account/secrets/new — paste your BSA... key from https://api.search.brave.com/app/keys (scope: User).
  2. In the secret, add Allowed sites: api.search.brave.com
  3. Add Allowed packages: web-search (select @hypercubed/web-search or your fork) — required even for self-authored packages when editing the secret.
  4. Placeholder is {{secret:BraveSearch}} (singular, per docs/use/secrets-and-values.md), not {{secrets...}}.

Without the secret/host allowlist, the package falls back to DuckDuckGo Instant (curated) then Wikipedia (both Worker-safe but weaker than Brave).

Usage

import { search } from '@hypercubed/web-search'
const { provider, results } = await search('Block Goose AI agent', 5)

Prose: "Use my web-search package to search for 'X'"

Fallback order

OrderProviderCostQuality
1Brave SearchFree 2k/moBest (full index)
2DuckDuckGo InstantFreeCurated only
3WikipediaFreeEncyclopedia only
Report this listing

Log in to report this listing.