npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

tester-telemetry

v1.0.1

Published

Real-time multi-device tester telemetry, rage/dead click detection, and live co-testing intervention powered by Supabase.

Readme

⚡ Tester Telemetry & Live Co-Testing Engine

License: MIT TypeScript Supabase Realtime Bundle Size

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/sdk
import { 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 dev

Open 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 localStorage across 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.