feat: add fastCRW web search provider#439
Open
us wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds fastCRW as a web search provider, alongside the existing Tavily / SerpApi / SearXNG / Ollama / Firecrawl options. Because Deep Research consumes the active web-search provider generically, this also makes fastCRW available for Deep Research with no extra wiring.
fastCRW is a SearXNG-based, Firecrawl-compatible search API. It can be used two ways:
https://api.fastcrw.com) with an API key from fastcrw.com.http://localhost:3000) for unlimited, private search (no key required unless your instance enables auth).Why a new provider instead of the existing Firecrawl entry
The Firecrawl entry is
configKind: "none"(anonymous, no config). fastCRW needs a Bearer API key for the cloud and a configurable Base URL for self-hosting. Folding it into Firecrawl would change Firecrawl's behavior, so a sibling provider is cleaner and keeps existing providers untouched.Changes (purely additive)
stores/wiki-store.ts—"fastcrw"added to theSearchProviderunion;fastCrwUrl?added toSearchProviderOverride.lib/web-search.ts—fastcrwSearch+ normalizer + dispatch case +hasConfiguredSearchProvider/guard branches.components/settings/sections/web-search-section.tsx— provider entry with a newkey+urlconfig kind (renders both an API-key and a Base-URL input).i18n/en.json+i18n/zh.json— hint + error strings (parity preserved).lib/web-search.test.ts— 17 tests mirroring the Firecrawl suite.Notes
POST {baseUrl}/v1/search; results are read from either the cloud's flatdataarray or the self-hosted engine'sdata.results(both shapes handled).Authorizationheader.Verification (local)
npm run typecheck·npx vitest run(1541 passed, incl. i18n parity) ·npm run build— all green.