Skip to content

feat: add optional You.com search provider#9

Open
mouse-value-add wants to merge 2 commits into
paperfoot:masterfrom
mouse-value-add:feat/youcom-search-integration
Open

feat: add optional You.com search provider#9
mouse-value-add wants to merge 2 commits into
paperfoot:masterfrom
mouse-value-add:feat/youcom-search-integration

Conversation

@mouse-value-add

@mouse-value-add mouse-value-add commented Jul 25, 2026

Copy link
Copy Markdown

This adds You.com as an optional search provider for the existing provider registry.

Why this fits here

  • Search CLI already routes multiple web providers through a shared provider trait, so You.com drops in as one more backend without changing default behavior.
  • The new provider is opt-in through YOUCOM_API_KEY or SEARCH_KEYS_YOUCOM and only participates when configured.

What changed

  • Added a youcom provider backed by GET https://ydc-index.io/v1/search with X-API-Key auth.
  • Wired it into the general, news, and deep provider sets.
  • Added config support, CLI/help text, README examples, and a small parser test for the You.com response shape.

Setup

  • Set YOUCOM_API_KEY or SEARCH_KEYS_YOUCOM.
  • If the key is unset, the provider stays disabled and nothing else changes.

Usage

search -p youcom "latest MCP search provider patterns"
search -m news -p youcom "AI agent search APIs"

Validation

  • cargo test
  • cargo clippy --all-targets --all-features -- -D warnings

Fallback/error handling

  • Missing key returns the existing auth-missing error.
  • Non-2xx responses surface a provider error.
  • 429s are treated as rate limits.

Tracking

Branch

Validation Update

  • cargo fmt --check
  • cargo test
  • cargo clippy --all-targets --all-features -- -D warnings

@mouse-value-add
mouse-value-add force-pushed the feat/youcom-search-integration branch from 5d1f68c to 0f7feb6 Compare July 25, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant