Integration guide

Compress Firecrawl results before they hit your LLM.

Firecrawl is useful because it turns pages into model-ready content. The problem is that model-ready content can still be huge. SuperCompress runs between Firecrawl and the model, keeping query-relevant evidence while removing scraped noise.

Where it fits

StepWithout compressionWith SuperCompress
ScrapeFirecrawl returns markdown for full pages or crawls.Same Firecrawl result.
Prompt assemblyEntire scrape dump enters the prompt.Context is compressed around the current query.
Model callLLM pays attention to boilerplate, nav, repeated sections, and irrelevant page chunks.LLM sees less input, with the answer-critical evidence prioritized.

Hosted API example

curl -X POST https://supercompress.dev/compress \
  -H "X-API-Key: sc_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "query": "What pricing limits matter for a startup using this tool?",
    "context": "PASTE_FIRECRAWL_MARKDOWN_HERE"
  }'

Python pipeline sketch

from firecrawl import FirecrawlApp
from supercompress import Compressor

firecrawl = FirecrawlApp(api_key="fc-...")
page = firecrawl.scrape_url("https://example.com/pricing", formats=["markdown"])

query = "What pricing limits matter for a startup using this tool?"
compressed = Compressor().compress(page["markdown"], query)

# Send compressed.compressed_text to OpenAI, Claude, Gemini, or your agent.
print(compressed.stats)

Best first use cases

FAQ

Why compress Firecrawl output?

Scraped pages often include navigation, repeated boilerplate, unrelated sections, and long markdown blocks. Compressing around the user query reduces token waste before the LLM call.

Does this replace Firecrawl?

No. Firecrawl extracts page content. SuperCompress runs after extraction and before inference to reduce the context sent to the model.

Try it today

Compress your first scrape result.

Get a free hosted API key, paste a Firecrawl markdown result into the demo, and measure what drops before the model call.

Get a free API keyTry the demo