Repository navigation
feat(search): add Firecrawl search provider - #8814
Merged
diegosouzapw merged 3 commits intoJul 28, 2026
Merged
diegosouzapw merged 3 commits into
diegosouzapw merged 3 commits into
Conversation
Introduce the Firecrawl search provider to handle `POST /v1/search` requests via Firecrawl /v2/search API (sources: web|news)
allanvb
force-pushed
the
feat/firecrawl-search-provider
branch
from
July 27, 2026 23:57
ab9d1fe to
054a8f8
Compare
diegosouzapw
merged commit Jul 28, 2026
6a59c09
into
cheaper-inference:release/v3.8.49
5 checks passed
Merged
HouMinXi
pushed a commit
to HouMinXi/OmniRoute
that referenced
this pull request
Aug 2, 2026
* feat(search): add Firecrawl search provider Introduce the Firecrawl search provider to handle `POST /v1/search` requests via Firecrawl /v2/search API (sources: web|news) * chore(changelog): add changelog on firecrawl search provider support * fix(search): satisfy file-size freeze and APIKEY count --------- Co-authored-by: allanvb <allanvb@users.noreply.github.com>
muhamadgalihsaputra
pushed a commit
to niyatna/NiyatnaRoute
that referenced
this pull request
Sep 27, 2026
* feat(search): add Firecrawl search provider Introduce the Firecrawl search provider to handle `POST /v1/search` requests via Firecrawl /v2/search API (sources: web|news) * chore(changelog): add changelog on firecrawl search provider support * fix(search): satisfy file-size freeze and APIKEY count --------- Co-authored-by: allanvb <allanvb@users.noreply.github.com>
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.
Summary
Adds Firecrawl as a
/v1/searchprovider under the same provider id as web fetch:firecrawl.One connection, one API key, two surfaces:
POST /v1/web/fetch-> existing Firecrawl scrape/extract pathPOST /v1/search-> FirecrawlPOST /v2/searchwithsources: ["web"] | ["news"]Why
Firecrawl is commonly used for web search and extraction, but search support for Firecrawl was never implemented. Now this is possible by reusing already existing connections.
Implementation
firecrawlin the open-sse search registry (POST https://api.firecrawl.dev/v2/search, Bearer auth,web+news).open-sse/handlers/search/firecrawlSearch.tsfor request build + v2 response normalization (data.web/data.newsonly; legacy v1 envelopes ignored).open-sse/handlers/search.ts.firecrawlinv1SearchSchemaforPOST /v1/search.serviceKinds: ["webSearch", "webFetch"].FIRECRAWL_BASE_URLself-host root the same way fetch does.Validation
node --import tsx/esm --test tests/unit/firecrawl-search.test.ts tests/unit/search-route.test.ts tests/unit/search-registry.test.ts tests/unit/providers-page-utils.test.ts tests/integration/search-providers-catalog.test.ts— 101 passednpm run typecheck:corenpm run lintCoverage Notes
Change is mostly in open-sse search registry/handler plus small dashboard catalog/schema wiring under
src/.The focused tests cover registry shape, schema accept/reject, handleSearch request body (
sourcesweb|news), v2 bucket normalization, self-host base URL, route credential resolve onfirecrawl, catalog search+fetch presence, and dashboard category resolve. Full coverage reporting remains with CI.Reviewer Notes
No migration and no feature flag.
Intentional product choice: unified id
firecrawl, notfirecrawl-search. True dual runtime id; not a search-only split with credential fallback.Fetch pipeline is unchanged in behavior. Search reuses the same connection id and API key.
stryker.conf.jsonone-line add is unrelated to Firecrawl; it liststests/unit/isLocalStreamLifecycleError-abort-shape.test.ts(coverscircuitBreaker.ts, from #8699) so the mutation tap drift gate does not fail this PR.Manual check: add Firecrawl API key under id
firecrawl->POST /v1/searchwithprovider: "firecrawl"-> same key works forPOST /v1/web/fetch-> dashboard shows one Firecrawl card (search + fetch).