Embeddable customer-feedback platform (NPS/CSAT/text surveys) with AI insight extraction. The engineering showcase is a dual-bundle frontend: a <30KB Preact widget that runs inside arbitrary third-party host sites via closed Shadow DOM, paired with a React 19 dashboard streaming live updates over SSE.
Featured
- Sub-30KB embeddable widget — Preact + Vite IIFE library mode, closed Shadow DOM isolation, CI hard-fails over the 30KB gzipped budget
- Two-trust-domain security model — HMAC-signed embed tokens (replay-protected via Redis nonces, timingSafeEqual) for untrusted host sites; Clerk bearer auth for the dashboard
- Three distinct AI integration patterns — async BullMQ batch (theme/sentiment), on-demand sync (question improvement), and scheduled two-stage anomaly detection (z-score pre-filter → LLM)
- Live dashboard over SSE — per-org Redis pub/sub channels, 25s heartbeats, auto-reconnect with polling fallback
- Multi-tenant isolation — orgId always derived from token, never request body; per-org Redis channels
- Stripe usage-based billing — Redis INCR metering, hourly flush to Stripe, idempotent webhooks



