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

qa-recorder

v1.0.2

Published

One-click QA recording for web apps — screen video + network activity, all in the browser.

Readme

qa-recorder

npm version license TypeScript test

One-click QA recording for web apps — screen video + network activity, all in the browser.

한국어


Why qa-recorder?

Reproducing bugs in web applications is hard. When a QA engineer clicks a button and an error appears, the developer needs two things to debug it: what was on screen and what network requests were made. A screenshot and a text description are rarely enough.

qa-recorder runs silently in the background from the moment the page loads. When something goes wrong, your QA team clicks one floating button — and three files are saved instantly:

  • A screen recording of the session
  • A HAR network log of the last 100 requests
  • A standalone HTML viewer (Chrome DevTools-style UI, no server needed)

No backend required. No browser extension. Just add one script tag.


Features

| | Feature | Description | |---|---|---| | 🎥 | Screen recording | Continuous capture via MediaStream (RecordRTC). Starts automatically on page load. | | 🌐 | Network capture | Intercepts fetch and XHR. Circular buffer, up to 100 entries in HAR 1.2 format. | | 🔍 | HAR viewer | Self-contained HTML file with a Chrome DevTools-style network inspector. | | 🔒 | Header masking | Authorization, Cookie, and custom headers are automatically redacted. | | 📦 | Local save | Downloads .webm + .har + .html directly — no backend needed. | | ☁️ | Remote upload | Optionally POST files to your own server. Shows a share-link copy button on success. | | 🧩 | Shadow DOM UI | Floating button and modals are fully isolated from the host page's styles. |


Installation

npm install qa-recorder
# or
pnpm add qa-recorder

Or drop it in via <script> tag (UMD build, no bundler required):

<script src="https://unpkg.com/qa-recorder/dist/qa-recorder.umd.js"></script>

Quick Start

ESM / npm

import { QARecorder } from 'qa-recorder';

const recorder = new QARecorder();
await recorder.init();
// A red floating button appears in the bottom-right corner.
// Click it → confirm → three files download automatically.

Script tag

<script>
  window.__QA_RECORDER_CONFIG__ = {
    maxRequests: 100,
    maskHeaders: ['Authorization', 'Cookie'],
  };
</script>
<script src="https://unpkg.com/qa-recorder/dist/qa-recorder.umd.js"></script>

Save Modes

Local (default)

When no endpoint is configured, three files are downloaded to the user's device:

| File | Contents | |---|---| | qa-recording-{timestamp}.webm | Screen recording video | | qa-network-{timestamp}.har | Network log (HAR 1.2) | | qa-network-{timestamp}.html | Standalone HAR viewer (open in browser) |

Remote upload

Set an endpoint to POST files to your server instead. On success, if the server returns a url field, a share-link copy button is shown automatically.

const recorder = new QARecorder({
  endpoint: 'https://your-server.com/upload',
});
await recorder.init();

Expected server response (optional):

{ "url": "https://your-server.com/share/abc123" }

The files are sent as multipart/form-data:

POST /upload
  video  →  qa-recording-{timestamp}.webm
  har    →  qa-network-{timestamp}.har

Configuration

All options can be set via window.__QA_RECORDER_CONFIG__ or passed as constructor arguments. Constructor arguments take precedence.

window.__QA_RECORDER_CONFIG__ = {
  endpoint: '',           // Remote upload URL. Leave empty for local save (default).
  maxRequests: 100,       // Max network entries in the circular buffer (default: 100).
  maskHeaders: [          // Headers to redact before saving (default shown).
    'Authorization',
    'Cookie',
    'Set-Cookie',
  ],
};

| Option | Type | Default | Description | |---|---|---|---| | endpoint | string | '' | Remote upload URL. Empty = local download. | | maxRequests | number | 100 | Max network entries to keep. | | maskHeaders | string[] | ['Authorization', 'Cookie', 'Set-Cookie'] | Headers to redact. |


How It Works

Page load
  ├─ NetworkCapture.start()   → patches window.fetch + XHR (circular buffer)
  ├─ ScreenRecorder.start()   → requests getDisplayMedia, starts recording
  └─ FloatingButton.mount()   → injects button via Shadow DOM

User clicks the floating button
  └─ ConfirmModal             → "Save current session?"
  └─ [Confirm]
      ├─ ScreenRecorder.stop()
      ├─ NetworkCapture.snapshot()  → HAR 1.2 JSON
      ├─ MaskingFilter.apply()      → redact sensitive headers
      │
      ├─ [endpoint set]
      │   ├─ ProgressBar.show()     → "업로드 중..."
      │   ├─ RemoteDelivery.send()  → POST multipart/form-data
      │   ├─ ProgressBar.hide()
      │   └─ SharePanel.show(url)   → copy-link button (if server returns url)
      │
      └─ [no endpoint]
          └─ LocalStorage.save()    → downloads .webm + .har + .html

HAR Viewer

The .html file downloaded with each local save is a fully self-contained network inspector — no server, no extension, no internet connection needed.

  • Request and response headers, body, status code
  • Response time (ms) for each entry
  • Masked headers shown as [MASKED]

Browser Support

| Browser | Support | |---|---| | Chrome 72+ | ✅ Full support | | Edge 79+ | ✅ Full support | | Firefox 66+ | ⚠️ Screen share permission prompt required | | Safari | ❌ MediaRecorder not fully supported |

Screen capture requires HTTPS in production. localhost works over HTTP.


Development

pnpm install

pnpm -F qa-recorder test      # run 72 tests (Vitest + jsdom)
pnpm -F qa-recorder build     # build ESM + UMD to dist/
pnpm -F qa-recorder dev       # watch mode

License

MIT