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

meetcap-main

v0.4.0

Published

Main-process half of meetcap: detect native meeting clients (Zoom / Teams / Tencent / Lark) + set up loopback recording, save & media-access IPC. Electron.

Readme

meetcap-main

The main-process half of meetcap: detect native meeting clients (Zoom / Teams / Tencent / Lark) and set up loopback recording — in any Electron app. Pair it with meetcap-renderer and meetcap-core.

Import this in the Electron main process only — it reaches for desktopCapturer, ps-list, and the macOS loopback flags.

Install

npm install meetcap-main meetcap-core

Usage

// main.ts — run initRecorderMain() BEFORE app.whenReady()
import { initRecorderMain, startDetector } from 'meetcap-main'

initRecorderMain() // macOS loopback flags + recording IPC (open/write/close) + media-access

app.whenReady().then(() => {
  createWindow()
  const detector = startDetector({ require: 'either' }) // broadcasts meeting-detected / -ended
  // …later: detector.stop()
})

Detection and recording setup are independent — call only what you need.

Detection modes — startDetector({ require })

| mode | proves "in a meeting" by | notes | |---|---|---| | 'either' (default) | a meeting window or a meetingProcess | robust — a minimized/hidden window doesn't read as "ended" | | 'process' | only a meetingProcess | window ignored | | 'window' | only a window title | precise but fragile | | 'window+process' | both, same rule | strictest |

Custom rules

import { presets, startDetector } from 'meetcap-main'

startDetector({
  rules: [
    ...presets,
    {
      id: 'mymeet',
      app: 'MyMeet',
      window: [/MyMeet 通话/],          // window-title matchers (string = substring, or RegExp/fn)
      process: [/mymeet/i],             // corroborating process names
      meetingProcess: [/mymeet-call/i], // process that exists ONLY during a call (robust signal)
    },
  ],
})

Put the meeting-scoped helper (Zoom's CptHost / aomhost) in meetingProcess, never the always-on app process (zoom.us) — otherwise merely opening the app reads as a meeting.

Recording

initRecorderMain() registers the streaming recording IPC consumed by meetcap-renderer — audio streams to disk chunk-by-chunk (flat memory, crash-safe partial file), tracked by a sidecar manifest for segments / resume. Saved to ~/Downloads/meetcap/ by default (initRecorderMain({ saveDir }) to change).

See the recording lifecycle guide for the full picture.

License

MIT