Skip to content

[firecrawl-ui] Expose v2 scrape options and migrate structured extraction into Scrape#91

Merged
obeone merged 7 commits into
mainfrom
feat/scrape-v2-options
Jul 5, 2026
Merged

[firecrawl-ui] Expose v2 scrape options and migrate structured extraction into Scrape#91
obeone merged 7 commits into
mainfrom
feat/scrape-v2-options

Conversation

@obeone

@obeone obeone commented Jul 5, 2026

Copy link
Copy Markdown
Owner

What

Brings the Scrape page up to the Firecrawl v2 API surface and folds structured extraction into it, deprecating the standalone Extract view.

Scrape form + adapter

  • New page options: minAge, lockdown, redactPII, zeroDataRetention, plus a comma-separated languages field folded into the location payload alongside country.
  • New scrape option: onlyCleanContent (beta, extra LLM pass to strip residual boilerplate).
  • Cloud-only options are flagged with a * and a footnote noting they may be ignored on self-hosted instances.
  • Adapter (toScrapeRequest) passes all of the above through to /v2/scrape.

Structured extraction on Scrape

  • The JSON output format now takes a prompt and/or a JSON schema instead of the old opaque extractor-options blob. This is the supported replacement for /v2/extract.

Extract view

  • Adds a deprecation banner pointing users to Scrape + the JSON format.

UI polish

  • Per-action rows wrap on narrow panes; Add/Remove buttons restyled as secondary affordances so they stop competing with the primary Scrape button.

Verification

  • npx prettier --check clean
  • npx eslint clean
  • npm run build succeeds (126 modules, no errors)

No automated tests in this project (npm test is a no-op).

obeone added 2 commits July 5, 2026 17:47
Surface the new v2 scrape options in the Scrape form and adapter:
onlyCleanContent, minAge, lockdown, redactPII, zeroDataRetention and a
comma-separated languages field folded into the location payload. Cloud
only options are flagged with a "*" and a footnote clarifying they may be
ignored on self-hosted instances.

Rework the JSON output format into a prompt and/or JSON schema pair so
structured extraction lives on the Scrape page, replacing the deprecated
extractor-options blob. Also tidy the per-action row so it wraps on
narrow panes and its buttons read as secondary affordances.
Warn that /v2/extract is deprecated and route users to the Scrape page
with the JSON output format as the supported replacement for structured
data extraction.
obeone added 5 commits July 5, 2026 18:12
Add marked to parse markdown and dompurify to sanitize the resulting
HTML before it is injected into the Scrape preview pane.
The Scrape Preview tab now renders the scraped markdown as formatted
HTML instead of showing the raw source. The markdown is parsed with
marked and sanitized with DOMPurify before reaching v-html to prevent
XSS from untrusted page content. The Markdown tab still shows the raw
source, and non-markdown results fall back to the previous raw dump.
Mark scrape/format options that only work on the official Firecrawl cloud API with a * and a footnote, mirroring the Scrape page. Rename the Pages response tab to History since it holds the crawl history.
Rework the About page into the aurora/glass language: gradient hero with Visit Firecrawl and GitHub CTAs, an icon capability grid, and a Powered by Firecrawl section linking to firecrawl.dev, the API docs and the repo. Opt the page out of the app-main flex stretch so tall content scrolls instead of being clipped.
@obeone obeone marked this pull request as ready for review July 5, 2026 22:20
@obeone obeone merged commit dca16a8 into main Jul 5, 2026
1 check passed
@obeone obeone deleted the feat/scrape-v2-options branch July 5, 2026 22:37
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