Add lightweight stats and ARR endpoints #30

Merged
backmeupplz merged 1 commit from gen-kaneo-15-lightweight-stats-arr into master 2026-05-13 18:14:18 +00:00
backmeupplz commented 2026-05-13 18:00:10 +00:00 (Migrated from github.com)

Summary

  • add /summary and /stats/:project so borodutch.com can fetch lightweight initial stats and lazy project details
  • add /arr backed by Stripe paid subscription invoice lines, with zeroed configured: false data when Stripe is not configured
  • document endpoint shapes and STRIPE_SECRET_KEY config

Validation

  • source ~/.nvm/nvm.sh && nvm use 16.17.0 && ./node_modules/.bin/tsc --skipLibCheck
  • git diff --check
  • Missing Stripe config smoke: arr() returns configured=false, currency=usd, and 12 chart points

Response Size Evidence

  • Current public /stats: 1,150,844 bytes
  • Projected /summary shape from current public stats: 935 bytes
  • Current public /count: 51,008 bytes

Manual QA: not required for this API-only PR before deploy; browser/network verification belongs with the borodutch.com consumer PR after both are deployed.

## Summary - add `/summary` and `/stats/:project` so borodutch.com can fetch lightweight initial stats and lazy project details - add `/arr` backed by Stripe paid subscription invoice lines, with zeroed `configured: false` data when Stripe is not configured - document endpoint shapes and `STRIPE_SECRET_KEY` config ## Validation - `source ~/.nvm/nvm.sh && nvm use 16.17.0 && ./node_modules/.bin/tsc --skipLibCheck` - `git diff --check` - Missing Stripe config smoke: `arr()` returns `configured=false`, `currency=usd`, and 12 chart points ## Response Size Evidence - Current public `/stats`: 1,150,844 bytes - Projected `/summary` shape from current public stats: 935 bytes - Current public `/count`: 51,008 bytes Manual QA: not required for this API-only PR before deploy; browser/network verification belongs with the borodutch.com consumer PR after both are deployed.
Sign in to join this conversation.
No description provided.