feat(docs): Firecrawl before/after analysis with photo proofs + optional integration docs #871
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
docs/firecrawl/.Docs Added
docs/firecrawl/before-and-after.md— detailed analysis with logs and inline references to screenshotsBefore vs. After Highlights
How It Works (Code Map)
src/components/FirecrawlToggle.tsxpersistslocalStorage.useFirecrawl.src/lib/hooks/useChat.tsxincludes the flag in request body; API routes loguseFirecrawland env availability ofFIRECRAWL_API_KEY.src/lib/search/metaSearchAgent.tscalls Firecrawl for top SearXNG URLs; on success, passes markdown to the retriever; on failure, falls back to raw links.src/lib/utils/documents.tstries Firecrawl first per‑link; otherwise falls back and annotates logs ("no data, falling back …").src/lib/firecrawl.tswraps@mendable/firecrawl-js.Env requirement: set
FIRECRAWL_API_KEY(kept out of VCS). The UI toggle ensures it’s opt‑in per user/session.Performance & Trade‑offs
Testing
FIRECRAWL_API_KEYin.env.local, enable the UI toggle, and query examples above.useFirecrawl flag: false env: trueuseFirecrawl flag: true env: trueandenriching SearXNG URLs with Firecrawl, followed byscraping ...lines and potentialno data, falling backlines.Screenshots (inline)
docs/firecrawl/referenced above.docs/firecrawl/referenced above.Checklist
docs/firecrawl/.Notes for Maintainers