Why QuickJS Recipe Wrapping Protects Both Buyers and Operators
Our four-file treg_hub/ bundle (recipe.json, run.js, check.json, README.md) enforces strict input schema validation, allowlisted gateway endpoints, a hard $2.00 (2,000,000 micro-USD) upper ceiling, and deterministic verdict enums (SIGNALS_FOUND, ZERO_NEW_SIGNALS, FAKE_200_BLOCKED, CAPTCHA_SKIPPED) so downstream automations branch cleanly without parsing prose.
Every scan produces canonical evidence URLs, a SHA-256 snapshot digest, and a deterministic 0-100 opportunity score while enforcing llm_tokens_used == 0 and outbound_spam_blocked == true.
Benchmark & Unit Economics Comparison
| Dimension | Reflex (reflex.fastmesh.dev) | Typical Incumbent / LLM Pipeline |
|---|---|---|
| Treg Hub recipe slug | zero-token-trend-predator-reflex | Custom ad-hoc curl wrappers |
| Marketplace seller commission | 0% (commission_pct = 0) | 15% - 30% legacy API marketplaces |
| Secret handling | Treg Vault (zero hardcoded keys) | Plaintext keys in shell scripts |
| Private trace redaction | trace_redacted = true enforced | Raw headers logged to telemetry |
| Hard max spend per call | <= $2.00 (2,000,000 micro-USD) | No per-call circuit breaker |
Prepaid non-expiring Creem packs: Scout $29 ($29.00 credits / 1,933 scans), Predator Pro $99 ($115.00 credits including $16 bonus / 7,666 scans), Studio Feed $299 ($375.00 credits including $76 bonus / 25,000 scans). Zero seat tax. Independent clean-room product; not affiliated with or endorsed by any third-party vendor.
Live Integration Examples (REST, MCP & Treg Hub)
1. HTTP REST API
treg secret add reflex_predator_api_key
treg tool add zero-token-trend-predator-reflex-api \
--base-url https://reflex.fastmesh.dev --header X-API-Key --secret reflex_predator_api_key
2. Streamable MCP JSON-RPC 2.0 (POST /mcp)
{
"jsonrpc": "2.0",
"id": 14,
"method": "tools/call",
"params": {
"name": "reflex_score_signal",
"arguments": {
"payload": {
"title": "Show HN: Zero-dependency OpenAPI changelog validator",
"url": "https://github.com/example/oas-watch",
"points": 115,
"competitor_price_usd": 149
}
}
}
}
3. Treg Hub 0%-Commission 1-Liner
treg call zero-token-trend-predator-reflex \
--data '{"action":"reflex_score_signal","payload":{"title":"Show HN: Zero-dependency OpenAPI changelog validator","url":"https://github.com/example/oas-watch","points":115,"competitor_price_usd":149}}'
Proof Card, Safety & Billing Guarantees
- 0-Token Deterministic Pipeline: Pure Python 3 standard library + SQLite WAL cursors. Zero external LLM inference calls.
- Strict $0 Guard:
billable_micros = 0whenever zero new signals match, a fake-200 shell or CAPTCHA wall is encountered, or HTTP 422 validation rejects malformed input. - Zero Auto-Outbound Spam: Zero auto-posting, zero auto-commenting, zero cold emailing. Proof Cards (
.html,.md,.json) land solely inreview_queue/withreview_status: "pending_human_review". - Zero CAPTCHA Bypass & Zero Trajectory Resale: Gated pages are silently skipped without retry or bypass; caller queries and custom watchlists are never resold.
Frequently Asked Questions
How does treg hub verify that empty scans bill strictly $0?
run.js checks upstream billable_micros, verdict, new_signals_count, and HTTP status before calling ctx.charge; if any $0 guard triggers, charged_micros remains 0.
What verdicts can run.js return for programmatic branching?
Verdicts include SIGNALS_FOUND, SIGNAL_SCORED, REVIEW_QUEUE_READY, PROOF_CARD_READY, EMIT_DRYRUN_VALID, ZERO_NEW_SIGNALS, FAKE_200_BLOCKED, CAPTCHA_SKIPPED, and VALIDATION_REJECTED.
Where is the API key stored when using treg call?
Inside your local Treg Vault under reflex_predator_api_key—never committed to recipe.json or run.js.