Skip to content

pit-nightly: a nightly pit.world stats email - #39

Merged
sh1pt-actions-fleet[bot] merged 1 commit into
mainfrom
feat/pit-nightly
Nov 2, 2026
Merged

sh1pt-actions-fleet[bot] merged 1 commit into
mainfrom
feat/pit-nightly

Conversation

@sh1pt-actions-fleet

Copy link
Copy Markdown
Contributor

Anthony asked for a nightly report ("pretty one") on pit.world stats.

bin/pit-nightly follows the readm3-nightly pattern: --dry-run, --day, --to/PIT_REPORT_TO, snapshots under ~/.local/share/pit-nightly, and a FAILED email plus alert on error.

  • Source: pit.world's /api/admin/stats.json?day= (Admin stats endpoint for a nightly report (0.26.0) moshcoder/pit.world#128). pit.world runs as root on dev2, so it reads over HTTP with PIT_ADMIN_TOKEN from pit-world--prod.
  • Traffic: CrawlProof tracker rollups. Search pages are folded into one line, because their paths carry what people searched.
  • Sections: money (passes by invoice and x402, featured listings), summaries (page vs snippet, models, a 7-day bar chart), people, directory, traffic, and a 7-day table.
  • Counts only.

Dry-run against prod for Nov 2: 7 summaries, 6 votes, 19,157 listings, 126 visitors.

Cron after merge: 20 6 * * * on dev2, mailing anthony@ and preshy@.

🤖 Generated with Claude Code

Money (summary passes by CoinPay invoice and x402, featured listings),
summaries (page vs snippet, c0mpute models), accounts, newsletter, votes,
directory and CrawlProof traffic, with a 7-day strip. Reads pit.world's
/api/admin/stats.json (PIT_ADMIN_TOKEN from pit-world--prod); Resend and
CrawlProof from fleet-nightly--prod. Counts only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sh1pt-actions-fleet
sh1pt-actions-fleet Bot merged commit bb8b314 into main Nov 2, 2026
4 checks passed
@sh1pt-actions-fleet
sh1pt-actions-fleet Bot deleted the feat/pit-nightly branch November 2, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant