Obol
2026AI API cost tracker — unified spend dashboard for OpenAI, Anthropic, Google, OpenRouter.
Full-stack SaaS on Cloudflare's edge: SvelteKit on Pages, D1 (SQLite) for storage, a standalone cron worker for hourly usage syncs, budget alerts with email + Slack, and AES-256-GCM encryption for every API key at rest.
- Hourly KV-locked cron worker syncs usage incrementally across 4 providers — idempotent upserts prevent double-counting on concurrent deploys
- daily_rollups pre-aggregation: overview renders from 30 rows, not thousands of usage_records
- Budget alerts with timezone-aware period math, email + Slack, deduped via last_triggered_at — no double-fire within the same window
- AES-256-GCM encryption for all API keys and Slack webhooks before insert — ciphertext columns excluded from every list query
- Magic-link auth (SHA-256 hashed token, 15-min TTL) + KV sessions — zero passwords in the database
- Constant-time HMAC-SHA256 Lemon Squeezy webhook verification + test-mode guard to prevent silent $0 Pro upgrades