USER GUIDE
pagepulse Documentation
Everything you need to monitor webpage text, JSON endpoints, images, prices, and stock—and route clean alerts to the tools you already use.
No documentation sections match your search. Try another keyword such as JSONPath, Telegram, image, or quiet hours.
Quick start & templates
Open your workspace at /app and click Add watch. The first successful fetch establishes a baseline snapshot—subsequent checks compare against that baseline and only raise unread changes and notifications when a qualifying difference is detected.
Quick templates for new watches
When creating a new watch, four one-click presets at the top of the General tab pre-fill recommended settings:
| Template | Processor | Pre-filled defaults |
|---|---|---|
| Price & Restock | restock_diff | Tracks price changes, sets stock direction to Back in stock only, and sets a 10-minute interval. |
| Policy / Notice | text_json_diff | Scopes to main, article, trims whitespace, removes duplicate lines, and strips ignored lines. |
| API / JSON | text_json_diff | Adds a starter json:$.data JSONPath filter with added, replaced, and removed line alerts enabled. |
| Banner / Image | image_ssim_diff | Sets minimum changed area to 0.5% and color difference threshold to 15. |
Monitor types
Choose the processor that matches your target page. Switching a watch’s processor starts a fresh baseline for the new mode while preserving older snapshots until history retention trims them.
1. Webpage Text / HTML & JSON (text_json_diff)
- Extracts visible HTML text, or scopes content using CSS selectors or
json:JSONPath filters. - Valid JSON responses are automatically formatted with sorted object keys so harmless key-order or whitespace changes never trigger false alerts.
- Inspect changes in the detail view with line-by-line diffs, changes-only view, or raw snapshot preview and download.
2. Image Changes (image_ssim_diff)
- In HTTP mode, monitors direct image URLs (PNG, JPEG, WebP, or the first frame of a GIF, up to 4 MiB and 4096 × 4096 px).
- In Browser mode, captures and compares the 1280 × 960 page viewport screenshot.
- Tune Pixel color difference threshold (0–255) and Minimum changed pixels (%) to ignore subtle compression noise.
- In the watch detail view, pagepulse renders a third Visual diff panel highlighting changed pixels in crimson over a dimmed baseline, along with the exact changed pixel count and percentage.
3. Price & Stock Detection (restock_diff)
- Automatically extracts price, currency, and availability from Product/Offer JSON-LD, OpenGraph, and microdata.
- For pages with multiple offers or custom markup, open Advanced: manual product selectors to provide Price CSS selector and/or Stock CSS selector. Setting either manual selector disables automatic inference, so supply both to track both fields.
- Configure Below/Above price limits, Price change threshold (%), and Stock change direction (All stock changes, Back in stock only, Out of stock only, or Off).
- Expand inline Price History directly from the watch list or full detail page to inspect per-currency charts, averages, min/max, and stock state markers.
CSS & JSONPath selectors
In Filters & Triggers, add one selector per line in Content selectors to focus a watch, and use Remove elements to strip ads, cookie banners, or timestamps before diffing.
CSS selectors (HTML pages)
main .announcements
article .deadline-banner
#product-pricing
In Product mode, Remove elements runs first, then Content selectors limits the HTML passed to the product extractor. Leave both blank if the page’s JSON-LD metadata lives outside the main container.
JSONPath selectors (JSON APIs)
Prefix any selector line with json: to extract specific fields from JSON responses. Matched results are canonicalized with sorted keys before comparison and also work in Preview filtered text.
| Expression | Meaning |
|---|---|
json:$.status | Top-level property status |
json:$.store.items[*].price | All price values across an array |
json:$.releases[0].tag_name | First array element (supports negative indices like [-1]) |
json:$..sku | Recursive descent: every sku field at any depth |
json:$.meta['unit.currency'] | Bracketed key for field names containing dots or spaces |
Filters & conditions
Text filters & triggers
- Notify on: independently enable or disable Added, Replaced, and Removed lines.
- Normalization: trim whitespace, ignore extra whitespace, remove duplicate lines, sort alphabetically, or only trigger when unique lines appear in all history.
- Patterns: configure Keyword triggers (wait for text), Ignore text, Block change detection while text matches, Keep lines containing, and Extract text. Plain text matches case-insensitively; wrap Rust regex patterns in
/slashes/(e.g./price:\s*\$(\d+)/).
ALL / ANY condition rules
Under Conditions, combine rules with Match ALL or Match ANY:
Page text after filters— contains, not contains, starts/ends with, length min/max, or regex match.Extracted number— numeric comparisons (==,!=,>,>=,<,<=) against numbers parsed from the filtered text or product snapshot.Word count— numeric comparisons on total word count.Text change distance/Text similarity ratio (0–1)— Levenshtein edit distance or similarity against the previous snapshot so minor typo fixes stay quiet.
Use Verify conditions to test every rule against the latest saved snapshot without refetching the target URL.
Visual selector (Include / Exclude)
For browser-rendered watches, open the Visual Filter Selector tab after a check completes to pick CSS selectors directly on a live screenshot—no remote HTML or scripts ever run inside the editor.
- Include mode (purple solid outline): click an element to set Content selectors; hold
Shiftand click to append additional selectors. - Exclude mode (crimson dashed outline): switch Selection mode to Exclude (Remove elements) and click noisy banners, sidebars, or timestamps to append them directly to Remove elements.
- Use the accessible element dropdown and Add selected element button for full keyboard navigation.
Browser rendering & steps
HTTP mode emulates Chrome 147 TLS and HTTP/2 headers for fast static fetches, but does not execute JavaScript. For dynamic single-page apps, switch Request → Fetch method to Browser rendering (plan-dependent).
Interactive Browser steps editor
Open the Browser steps tab and press Play to start an isolated 1280 × 960 Chromium session using your current draft settings. Preview runs never modify watch history or trigger alerts.
- Supports up to 50 steps across 23 actions: click (standard, optional, text, coordinates), fill/clear inputs, press keys, toggle checkboxes, select dropdowns by label or value, scroll, wait (up to 120s), navigate, run JavaScript, remove elements, and reveal children.
- Use the screenshot target picker to click interactive controls directly (decorative icons automatically resolve to their underlying button or native dropdown).
- Test individual actions with Run step or replay the entire sequence from a clean session with Run from start.
Scheduling, backoff & proxies
- Global vs. custom interval: new watches inherit the global interval and weekly schedule from Settings, or you can define custom weeks/days/hours/minutes/seconds per watch (subject to your plan’s minimum interval).
- Weekly active windows: restrict scheduled checks to specific days and hours using any IANA timezone (e.g.
America/New_York,Europe/London,Asia/Shanghai), with full overnight and daylight-saving support. - Automatic failure backoff: if a watch fails consecutively (2 or more failures in a row), scheduled retries back off exponentially (up to 32× the base interval, capped at 6 hours) to avoid wasting resources on broken pages. Clicking Check now always runs immediately.
- Proxy regions: choose Default proxy or an enabled Tor exit country under Request → Proxy region. Country-pinned Tor requests fail closed if that exit country is unavailable and never silently fall back.
Notification channels & templates
Configure default channels once in Settings, or override them per watch in the Notifications tab. Every delivery is persisted in a durable outbox with automatic retries and sanitized delivery receipts on the Changes page.
Supported channels
- Native transports: Email (async SMTP), Telegram (bot URL or workspace-linked shared bot), Discord webhooks, Slack webhooks, and generic HTTP/JSON webhooks.
- Apprise integrations: additional services such as Feishu route through the configured Apprise API gateway.
Template variables
Customize notification titles and bodies in Text, Markdown, or HTML format using single-pass placeholders (page content containing braces is never re-expanded):
| Variable | Value |
|---|---|
{{title}} / {{watch_title}} | Display title of the watch |
{{url}} / {{watch_url}} | Monitored URL |
{{diff}} | Unified added (+) and removed (-) lines |
{{diff_added}} / {{diff_removed}} | Only added or only removed lines |
{{ai_summary}} | AI change summary (when enabled) |
{{current_snapshot}} / {{previous_snapshot}} | Latest and previous snapshot content (bounded to 16,000 chars) |
{{timestamp}} / {{watch_uuid}} | Unix timestamp and watch identifier |
Use Preview and Send test right inside Settings or the watch editor to verify formatting and channel credentials.
AI extraction & change summaries
Configure an OpenAI-compatible chat-completions endpoint, model name, API key, and timeout in Settings → AI price & stock detection (HTTPS for cloud providers, or http://127.0.0.1 for local models like Ollama). Your API key stays on the server and never enters the isolated fetch executor.
- Price & stock fallback: enable on the Restock & Price Detection tab. Runs only when structured metadata (JSON-LD, OpenGraph, microdata) yields neither price nor stock.
- AI change summaries: enable Include AI change summary on the Notifications tab. When a qualifying change occurs, pagepulse generates a 1–3 sentence plain-text summary outside the database lock and inserts it via
{{ai_summary}}(or prependsAI Summary: …automatically if your template omits the placeholder). If the LLM provider is slow or unavailable, your regular alert still delivers immediately.
Quiet hours
In Settings → Notification defaults, enable Notification quiet hours and set a start hour (0–23), end hour (0–23), and IANA timezone. Overnight windows such as 23 → 7 are supported.
During quiet hours, non-test notifications are not dropped or marked failed—they remain safely queued in the durable outbox and deliver automatically once the quiet window ends. Manual test sends always deliver immediately.
Change RSS feed
Subscribe to detected changes from any RSS reader or automation workflow (such as n8n, Zapier, or Feedly):
- Open Settings → Change RSS feed and click Generate RSS token.
- Copy your personal feed URL:
https://your-host/rss?token=YOUR_TOKEN. - Optionally append
&tag=pricing,&watch_id=WATCH_ID, or&limit=50to filter items.
Tokens are verified in constant time and can be rotated or disabled at any time in Settings.
Public REST API & OpenAPI 3.0
Create scoped API keys in Settings → Public API keys to automate pagepulse from scripts, n8n, Zapier, or the Chrome Extension. Import the machine-readable schema directly from /openapi.json.
Authenticate requests with either Authorization: Bearer pp_live_… or X-API-Key: pp_live_…. Keys are stored hashed (SHA-256) and support fine-grained scopes: watches:read, watches:write, and events:read.
| Endpoint | Scope | Description |
|---|---|---|
GET /api/v1/me | watches:read | Verify token, inspect plan limits and active watch usage |
GET /api/v1/watches | watches:read | List watches (supports ?url=, ?tag=, ?q=, ?limit=, ?offset=) |
POST /api/v1/watches | watches:write | Create a watch (minimum body: {"url":"https://…"}) and queue first check |
GET / PATCH / DELETE /api/v1/watches/:id | watches:read / write | Read details, partially update selectors/interval/paused state, or delete |
POST /api/v1/watches/:id/check | watches:write | Trigger an immediate manual check |
GET /api/v1/watches/:id/history | watches:read | Fetch snapshots and latest_diff unified text diff |
GET /api/v1/events | events:read | Poll enriched change events (?since=, ?watch_id=, ?tag=) |
POST /api/v1/selectors/test | watches:read | Fetch a page server-side and verify CSS/JSONPath selectors before saving |
# Create a product watch via curl
curl -X POST https://your-host/api/v1/watches \
-H "Authorization: Bearer pp_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://shop.example.com/item/1",
"title": "Headphones",
"processor": "restock_diff",
"tags": ["deals"],
"restock": { "price_selector": "[itemprop=\"price\"]" }
}'
Chrome Extension
The Manifest V3 extension lets you monitor any page in one click and visually pick elements directly on live webpages without leaving your tab.
- Open Settings → Public API keys and click Connect Chrome extension.
- Click the PagePulse icon in Chrome’s toolbar within 2 minutes to pair automatically (zero copy-paste).
- Visit any product or announcement page, click the extension icon, and choose Watch Page or Select Elements.
- Inside the visual picker, use
↑/↓to adjust parent/child selection, click Test to verify selectors on the server (with automatic SPA Browser rendering hints), then click Save & Monitor.
n8n & Zapier workflows
Option 1: Real-time push (Webhook → n8n / Zapier)
- In n8n, add a Webhook trigger node (method
POST) — or in Zapier, create a Zap with Webhooks by Zapier → Catch Hook. - Paste the webhook URL into pagepulse Settings → Webhook, optionally set a signing secret, and click Send test notification.
- Each change delivers JSON containing
event_id,watch_id,title,url, andmessage(with HMAC-SHA256 signature inX-Pagepulse-Signature-256).
Option 2: Zero-server polling (RSS Feed → Zapier / n8n)
Use RSS Feed Read Trigger (n8n) or RSS by Zapier → New Item in Feed pointed at https://your-host/rss?token=YOUR_TOKEN&tag=deals.
Option 3: Programmatic actions (HTTP Request → Public REST API)
In n8n’s HTTP Request node, set Authentication to Header Auth (Authorization: Bearer pp_live_…) and call POST /api/v1/watches to dynamically register URLs from Airtable, Notion, or Google Sheets, or call GET /api/v1/watches/{{ $json.watch_id }}/history after a webhook trigger to fetch the exact diff.
Tags, import & export
- Tags & bulk actions: organize watches with comma-separated tags, filter by status or tag, and run bulk Check now, Pause, Resume, Mark read, or Delete actions.
- Import: go to Import & export to paste up to 1,000 URLs (one per line) or upload a JSON configuration export. Duplicate URLs are skipped automatically and validation is atomic.
- Export: download all watch configurations (URLs, tags, requests, filters, browser steps, and notifications) as JSON. Snapshots and global settings are excluded.
Plans & billing
Signed-in users can view active watch quotas, minimum check intervals, and browser capabilities under Plans & billing.
- Upgrades: take effect immediately with prorated settlement via Paddle.
- Downgrades & cancellations: never delete your watches or history. Watches beyond your active plan limits are marked Plan limited until you pause other watches or upgrade; check intervals clamp safely to your active plan minimum.