30/7/26 see feedgate_readme.txt for licence, setup instructions, and terms of use. // ===================================================================== // FEEDGATE v7.8 - Personal RSS Aggregator & Webhook Engine // ===================================================================== // ===================================================================== // PART 1: CLOUDFLARE WORKER // Save as worker.js and deploy via the Cloudflare Workers dashboard. // // Bindings required (set in the Worker's Settings > Variables): // FEEDGATE_KV -- KV Namespace binding // WEBHOOK_SECRET -- Secret (authenticates incoming webhook posts) // ===================================================================== // ═══════════════════════════════════════════════════════════════════════════ // FEEDGATE WORKER v7.8 // ═══════════════════════════════════════════════════════════════════════════ // Changes in v7.8: // fixed new feed old item cap, webhook budget, increasted lock ttl // Changes in v7.6: // - scheduled() rewritten to process gates in a controllable order // (cron_order in KV), chunked to stay under the free-tier subrequest // cap, with a KV lock to prevent overlapping runs. // Changes in v7.5 // Adding a feed to an existing gate now adds only one old item. // Items from feeds with no
Controls which gates the scheduled cron run processes first. When the subrequest budget runs out mid-cycle, gates further down this list wait for the next run.