first pass analytics redo

This commit is contained in:
George Powell committed 2026-09-22 12:15:56 -04:00
1 parent b656fd04c0
commit 45ffa39f2a
69 files changed
+6400 -1138

No files matched your search

+16
View File
@@ -1,11 +1,27 @@
DATABASE_URL=example.db
# Local-only admin bypass for testing /admin/stats without the real admin
# account. NEVER enable in production (it is also force-disabled when
# NODE_ENV=production).
# DEV_ADMIN_ALL=true
# Cron job secret for protected endpoints (e.g. send-daily-verse)
CRON_SECRET=your-cron-secret-here
# Discord webhook URL for posting the daily verse
DISCORD_DAILY_WEBHOOK=https://discord.com/api/webhooks/your-webhook-url
# Discord admin webhook for the daily statistics digest (optional; digest is skipped if unset)
DISCORD_ADMIN_WEBHOOK=https://discord.com/api/webhooks/your-admin-webhook-url
# Statistics thresholds (optional; these override the built-in defaults)
# STATS_CORE_PLAYS_PER_WEEK=4
# STATS_CHURN_DAYS=30
# STATS_D1_TARGET=20
# STATS_RETURN7_TARGET=25
# STATS_FIRST_TRY_MIN=15
# STATS_FIRST_TRY_MAX=35
PUBLIC_SITE_URL=https://bibdle.com
# nodemailer