tester-telemetry
v1.0.1
Published
Real-time multi-device tester telemetry, rage/dead click detection, and live co-testing intervention powered by Supabase.
Maintainers
Readme
⚡ Tester Telemetry & Live Co-Testing Engine
Real-time multi-device tester telemetry, attention reclamation, rage/dead click detection, and instant two-way co-testing intervention powered by Supabase.
🌟 Why This Exists (The Paradigm Shift)
Traditional tools like Google Analytics or PostHog provide post-mortem aggregate charts hours or days later. Traditional session recorders like Hotjar or FullStory are heavy (100KB+), expensive, and purely passive.
Tester Telemetry is designed for synchronous beta rounds, user testing sessions, and QA field trials:
- Real-Time Device HUD (
Ctrl+Shift+A): Live telemetry stream of all connected mobile, tablet, and desktop testers. - Tab-Away Attention Reclaimer: When a tester wanders off to YouTube or Twitter for > 4 seconds, the tab title flashes
(1) 👋 Hey, you can check me now!and synthesizes a dual-tone audio chime using the Web Audio API. - Rage & Dead Click Detection: Catches frustrated users (3+ clicks in 500ms on the same point) or clicks on dead non-interactive elements in real time.
- Direct-to-Device Intervention: Product leads and admins can send targeted in-app prompt cards directly to a specific tester's screen to unblock them live.
- 100% Data Ownership: Runs on your own Supabase instance. Zero vendor lock-in, zero monthly seat tax.
🚀 Quick Start (60 Seconds)
1. Database Setup (Supabase)
Run the migration script in your Supabase SQL Editor:
CREATE TABLE IF NOT EXISTS public.tester_sessions (
session_id TEXT PRIMARY KEY,
device_type TEXT NOT NULL DEFAULT 'desktop',
os TEXT NOT NULL DEFAULT 'Unknown',
browser TEXT NOT NULL DEFAULT 'Unknown',
last_updated TIMESTAMPTZ NOT NULL DEFAULT NOW(),
telemetry JSONB NOT NULL DEFAULT '{}'::jsonb,
admin_message JSONB DEFAULT NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
ALTER TABLE public.tester_sessions ENABLE ROW LEVEL SECURITY;
CREATE POLICY "Allow anonymous read" ON public.tester_sessions FOR SELECT USING (true);
CREATE POLICY "Allow anonymous insert" ON public.tester_sessions FOR INSERT WITH CHECK (true);
CREATE POLICY "Allow anonymous update" ON public.tester_sessions FOR UPDATE USING (true) WITH CHECK (true);
CREATE POLICY "Allow anonymous delete" ON public.tester_sessions FOR DELETE USING (true);
ALTER PUBLICATION supabase_realtime ADD TABLE public.tester_sessions;2. Installation
Via NPM (React / Next.js / Vue / Vite)
npm install @tester-telemetry/sdkimport { initTesterTelemetry } from '@tester-telemetry/sdk';
initTesterTelemetry({
supabaseUrl: 'https://your-project.supabase.co',
supabaseAnonKey: 'your-anon-key',
syncIntervalMs: 3000,
enableAdminOverlay: true, // Opens on Ctrl+Shift+A
});Via CDN (Vanilla HTML / Webflow / Shopify)
<script
src="https://cdn.jsdelivr.net/npm/@tester-telemetry/sdk/dist/index.min.js"
data-supabase-url="https://your-project.supabase.co"
data-supabase-key="your-anon-key">
</script>🎮 Development & Interactive Playground
Run the included playground sandbox:
# Clone the repository
git clone https://github.com/your-org/tester-telemetry.git
cd tester-telemetry
# Install dependencies
npm install
# Start development server
npm run devOpen http://localhost:3000:
- Press Ctrl + Shift + A to launch the Admin Telemetry HUD.
- Click the "Dead Click" card or spam-click the "Rage Click" button.
- Open another tab (e.g., YouTube) for 4 seconds to experience the Tab-Away Audio Chime & Title Flash.
- Open a second browser tab to simulate multiple concurrent devices and send direct messages between them.
🏗️ Architecture & Features
┌────────────────────────────────────────────────────────┐
│ Browser Client SDK │
│ │
│ ┌──────────────────┐ ┌──────────────────┐ ┌───────┐ │
│ │ Hardware Detector│ │ Click Stream & │ │ Web │ │
│ │ (OS/Device/DPR) │ │ Rage/Dead Clicks │ │ Audio │ │
│ └────────┬─────────┘ └────────┬─────────┘ └───┬───┘ │
│ │ │ │ │
│ ┌────────▼─────────────────────▼────────┐ │ │
│ │ Throttled Sync (every 3 seconds) │ │ │
│ └──────────────────┬────────────────────┘ │ │
└─────────────────────┼────────────────────────────┼─────┘
│ HTTPS / WSS │
▼ │
┌───────────────────────────────────────────┐ │
│ Supabase Backend │ │
│ │ │
│ - PostgreSQL `tester_sessions` table │ │
│ - Row-Level Security (RLS) │ │
│ - Realtime Publications (Pub/Sub) │ │
└─────────────────────┬─────────────────────┘ │
│ Admin Broadcast │
▼ │
┌───────────────────────────────────────────┐ │
│ Admin Overlay (Ctrl+Shift+A) │ │
│ │ │
│ - Live multi-device switcher │ │
│ - Telemetry graphs & click streams │ │
│ - Direct Message Composer ───────────────┼──────┘
└───────────────────────────────────────────┘1. Collector Engine
- Persistent Anonymous Session: Maintained in
localStorageacross page reloads. - Hardware Specs: Detects device category (
mobile,tablet,desktop), OS, browser, viewport dimensions, screen resolution, and pixel ratio. - Time Clock: Tracks total session duration, active reading time, background/away time, and tab switches.
- Rage Click Engine: Triggers when 3+ clicks land within a 35px radius in under 500ms.
- Dead Click Engine: Analyzes clicked DOM elements and ancestors up to 4 layers deep for interactive semantics (roles, event handlers, cursor styling).
- Scroll Depth: Calculates maximum vertical depth achieved (0% to 100%).
2. Attention Reclaimer
- Synthesizes a melodic dual-tone chime (587.33 Hz D5 → 880.00 Hz A5) via native Web Audio API with zero external audio assets.
- Alternates browser tab title between
(1) 👋 Hey, you can check me now!and original document title.
3. Live Intervention & Admin HUD
- Top Switcher Bar: Live pills for each tester session with active status indicators (
Active now,X min ago). - Direct Messaging: Admin can type a message to any connected tester; the target device immediately sounds a triple-chime and renders a floating prompt card.
- Session Pruning: Individual removal (
✕) and "Clear Devices" to flush inactive records.
📈 Scaling to 100,000+ Concurrent Testers
| Scale Tier | Architecture Recommendation |
| :--- | :--- |
| 1 – 1,000 Testers | Standard Supabase free tier. Client throttled upserts directly to tester_sessions every 3s. |
| 1,000 – 25,000 Testers | Supabase Pro. Telemetry streamed over Supabase Realtime Broadcast Channels (in-memory Elixir/Phoenix cluster — zero PostgreSQL disk write load). |
| 25,000+ Testers | Ingest buffer through Cloudflare Workers / Supabase Edge Functions with Redis batching before persisting to PostgreSQL. |
📄 License
MIT © 2026. Built for open-source co-testing and telemetry worldwide.
