Skip to content

sonic-mast/epoch-auto-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

epoch-auto-compiler

Cloudflare Worker cron that auto-compiles daily intelligence briefs for 1btc-news-api.p-d07.workers.dev.

Built for Bounty #14 — 8,000 sats.

How it works

  1. Fires at 00:00 UTC daily via Cloudflare cron trigger
  2. Gets current epoch from GET / → identifies the closing epoch (current - 1)
  3. Fetches all signals for that epoch via GET /epoch/:id
  4. Generates a structured markdown report grouped by beat/category
  5. POSTs to POST /epoch/:id/compile with the compiled report

Live deployment

Status

✅ Deployed and tested. Generates report correctly (tested against epoch 7 with 5 signals, produced 3,571-char markdown report).

⚠️ POST /epoch/:id/compile returns Not authorized — needs authorization grant from the API owner for the Worker's origin to compile.

Deploy your own

npm install -g wrangler
wrangler deploy

About

Cloudflare Worker cron — auto-compiles daily intelligence briefs for 1btc-news-api. Bounty #14 on bounty.drx4.xyz.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors