/fastcrw:crw-watchfrom fastCRW
Detect what changed between two page snapshots with fastCRW's stateless diff REST API. Useful for tracking content changes, monitoring pages, or building cron-based alerts.
Ships in fastCRW. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
crw stores nothing between calls. The caller owns the snapshots:
1. Scrape now → store snapshot (markdown / json)
2. Scrape later → call /v1/change-tracking/diff with current + previous
3. On status=changed → alert / act
4. Repeat on a cron
Two modes, composable:
| Mode | Wire string | What it produces |
|---|---|---|
| Git-style text diff | "gitDiff" (alias: "git-diff") | Unified-diff text + parse-diff AST in diff.text / diff.json |
| Per-field JSON diff | "json" | Path-keyed map {"$.field": {"previous":…,"current":…}} in diff.json; requires schema |
Default (omit modes): ["gitDiff"]. Combine both: "modes": ["gitDiff", "json"].
Single page diff (REST):
curl -X POST "$CRW_API_URL/v1/change-tracking/diff" \
-H "Authorization: Bearer $CRW_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"current": {
"markdown": "# Pricing\nPro plan: $49/mo"
},
"previous": {
"markdown": "# Pricing\nPro plan: $39/mo",
"contentHash": "<hash from prior result>"
},
"modes": ["gitDiff"]
}'
Response shape:
{
"success": true,
"data": {
"status": "changed",
"firstObservation": false,
"contentHash": "<new hash>",
"snapshot": { "markdown": "...", "contentHash": "..." },
"diff": {
"text": "@@ -1,2 +1,2 @@\n # Pricing\n-Pro plan: $39/mo\n+Pro plan: $49/mo",
"json": { "files": [...] }
}
}
}
Batch diff (discriminated by presence of batch key):
curl -X POST "$CRW_API_URL/v1/change-tracking/diff" \
-H "Authorization: Bearer $CRW_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"batch": [
{ "url": "https://example.com/pricing", "current": {"markdown": "..."}, "previous": {"markdown": "..."} },
{ "url": "https://example.com/about", "current": {"markdown": "..."} }
],
"modes": ["gitDiff"]
}'
Shared modes/schema/prompt/contentType at the top level are defaults;
each batch item can override them individually.
Inline during a scrape — pass changeTracking as a format on /v1/scrape:
curl -X POST "$CRW_API_URL/v1/scrape" \
-H "Authorization: Bearer $CRW_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/pricing",
"formats": ["markdown", "changeTracking"],
"changeTracking": {
"modes": ["gitDiff"],
"previous": { "markdown": "...", "contentHash": "..." }
}
}'
Single mode: { current, previous?, modes, schema?, prompt?, contentType?, tag?, goal?, judgeEnabled? }
Batch mode: { batch: [...items], modes, schema?, ... } where each item is
{ url?, current, previous?, modes?, schema?, ... }.
| Field | Type | Notes |
|---|---|---|
current.markdown | string | Current page content (gitDiff / mixed) |
current.json | object | Current extracted JSON (json / mixed) |
previous.markdown | string | Prior snapshot for gitDiff |
previous.contentHash | string | Persist from prior result's snapshot.contentHash |
modes | string[] | ["gitDiff"] (default), ["json"], or both |
schema | JSON Schema | Required for json mode; defines tracked fields |
prompt | string | Natural-language extraction prompt (alternative to schema) |
contentType | string | If binary/non-text, triggers byte-hash comparison only |
tag | string | Opaque caller ID echoed back on the result |
goal | string | Natural-language filter for meaningful changes (AI judge, M2) |
judgeEnabled | bool | Enable AI judgment (M2 feature; accepted but not yet applied) |
goal field (AI judge)goal is a natural-language filter for what counts as a meaningful change, fed
to an LLM judge. It is accepted by the server now but applied in a future
milestone (M2). Guidance for when it lands:
"Alert when the listed price changes; ignore copy rewrites and nav updates" beats "detect important changes"."Only flag changes to the Features table, not the hero section".{meaningful, confidence, reason, meaningfulChanges[]} in
the result's judgment field.#!/usr/bin/env bash
# cron-check.sh — run every hour via cron or a scheduler
SNAPSHOT_FILE=".crw/snapshot.json"
CURRENT=$(crw scrape "https://example.com/pricing" --format markdown)
if [ -f "$SNAPSHOT_FILE" ]; then
PREV_MARKDOWN=$(jq -r '.markdown' "$SNAPSHOT_FILE")
PREV_HASH=$(jq -r '.contentHash' "$SNAPSHOT_FILE")
RESULT=$(curl -s -X POST "$CRW_API_URL/v1/change-tracking/diff" \
-H "Authorization: Bearer $CRW_API_KEY" \
-H "Content-Type: application/json" \
-d "{\"current\":{\"markdown\":$(jq -Rsc . <<<"$CURRENT")},\"previous\":{\"markdown\":$(jq -Rsc . <<<"$PREV_MARKDOWN"),\"contentHash\":\"$PREV_HASH\"},\"modes\":[\"gitDiff\"]}")
STATUS=$(echo "$RESULT" | jq -r '.data.status')
if [ "$STATUS" = "changed" ]; then
echo "CHANGED: $(echo "$RESULT" | jq -r '.data.diff.text')"
# → send alert, write to DB, trigger webhook, etc.
fi
echo "$RESULT" | jq '.data.snapshot' > "$SNAPSHOT_FILE"
else
# First observation — store the snapshot
curl -s -X POST "$CRW_API_URL/v1/change-tracking/diff" \
-H "Authorization: Bearer $CRW_API_KEY" \
-H "Content-Type: application/json" \
-d "{\"current\":{\"markdown\":$(jq -Rsc . <<<"$CURRENT")},\"modes\":[\"gitDiff\"]}" \
| jq '.data.snapshot' > "$SNAPSHOT_FILE"
fi
snapshot from each result as the next call's previous. The
snapshot field in the response contains the normalized content and
contentHash — store it, don't recompute it.firstObservation: true means no previous was supplied. The server sets
status: "changed" and returns snapshot but produces no diff. Store it as
your baseline.json mode needs current.json (+ optionally a schema). Without structured
input it produces no diff — use gitDiff mode for plain markdown.modes/schema as defaults keeps the body compact.previous; crw computes and returns. Nothing
is stored server-side. Your snapshots, your infra, your retention policy.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub fastcrw/crw --plugin fastcrw13 skills in this plugin
/crwScrape, crawl, map, search, parse, and extract web data with fastCRW — the
open-source, self-hostable Firecrawl alternative (single Rust binary, ~14 MB
RAM, Firecrawl-compatible /v1 + /v2 API). Use whenever the user needs page
content, site-wide extraction, URL discovery, web search, PDF parsing,
structured JSON from pages, or change tracking. Also use when the user
mentions Firecrawl, Tavily, Crawl4AI, or "scrape/crawl/map/fetch/get the
page/read this site/search the web" — crw is a drop-in for the Firecrawl SDKs.
/crw-best-practicesReference skill for building production-ready crw integrations. Covers verb
selection, call surfaces (CLI/MCP/REST), post-filtering strategies, context-window
hygiene, Hybrid RAG patterns, common pitfalls, and crw-specific operational
considerations (search backend limits, renderer pool, proxy rotation). Load this when
writing application code that embeds crw, designing a multi-step agent workflow,
or debugging an integration that isn't behaving as expected.
/crw-crawlCrawl an entire website or section and extract content from every page.
Use when you need content from many pages under a common URL prefix:
"crawl the whole site", "get all docs pages", "scrape every blog post",
"download the full docs for RAG", "extract all pages under /api". Async
BFS — starts a job and polls for results. Step 4 of the crw workflow ladder.
/crw-dynamic-searchProgrammatic web search and scrape with context isolation. Use for any research
task where you need to search the web, filter results, and extract specific
information — without flooding your context window with raw HTML and boilerplate.
This is the single biggest token-saver in the crw skill set. Triggered by "search
for", "look up", "find", "research", "what's the latest on", or any query that
requires current web information. Also use when asked to "search and filter", "find
the important parts", or any task where you suspect the raw output will be large
(multi-page scrapes, news aggregation, competitive research).
/crw-extractExtract a typed JSON object from one or more web pages against a JSON Schema
with fastCRW. Use when you need structured data — "get the price and stock
status", "extract all job listings as JSON", "pull structured fields from this
page". Step 6 of the crw workflow ladder.
/crw-mapDiscover all URLs on a website without fetching content — fast, low-cost
URL inventory via sitemap.xml + link extraction BFS. Use when you need to
know which pages exist before deciding what to scrape or crawl: "list all
pages", "find URLs on this site", "discover links", "what pages does this
site have", "map the site". Step 3 of the crw workflow ladder.
Other plugins' skills for the same job