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

screenwire

v0.1.41

Published

Native screen recording for Node.js and Electron — macOS (ScreenCaptureKit)

Readme

screenwire

Native screen recording for Node.js and Electron — macOS and Windows.

  • macOS — ScreenCaptureKit (macOS 13+, Apple Silicon)
  • Windows — WASAPI loopback + GDI screen capture via NativeAOT C# bridge (Windows 10/11 x64)

Prebuilt binaries are included. No Xcode, no .NET SDK, no node-gyp required on the user's machine.

Requirements

  • Node.js 18 or newer
  • macOS 13.0+ on Apple Silicon or Windows 10/11 x64
  • Screen Recording permission granted in System Settings (macOS only — the OS will prompt on first run)

Installation

npm install screenwire

No native compilation happens during install. The prebuilt .node addon and all native dependencies are bundled with the package.

Usage

Async / await (recommended)

const recorder = require('screenwire')
const path = require('path')

const outputPath = path.join(require('os').homedir(), 'Desktop', 'recording.mp4')
const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms))

async function main() {
  await recorder.startAsync(outputPath)

  await sleep(5000)

  const status = await recorder.stopAsync()
  console.log(status) // "Saved recording to /Users/.../recording.mp4"
}

main()

Callback

const recorder = require('screenwire')
const path = require('path')

const outputPath = path.join(require('os').homedir(), 'Desktop', 'recording.mp4')

recorder.start(outputPath, (status) => {
  console.log('[status]', status)
})

setTimeout(() => {
  recorder.stop((status) => {
    console.log('[done]', status)
  })
}, 5000)

API

recorder.startAsync(outputPath) → Promise<string>

Starts recording to the given .mp4 file path. Resolves once recording is active.

recorder.stopAsync() → Promise<string>

Stops recording and finalizes the file. Resolves with the final status string once the file is saved.

recorder.start(outputPath, onStatus)

Callback version of startAsync. onStatus(message) is called with progress strings as recording proceeds.

recorder.stop(onStatus)

Callback version of stopAsync. onStatus(message) is called with the final status string.

recorder.isRecording()

Returns true if a recording is currently in progress.

Status strings

| String | Meaning | |---|---| | "Checking permissions..." | Verifying screen recording permission (macOS) | | "Preparing screen capture..." | Setting up the capture pipeline | | "Recording to /path/file.mp4" | Recording is active | | "Stopping recording..." | Stop called, finalizing the file | | "Saved recording to /path/file.mp4" | File successfully written |

Platform notes

macOS captures screen, system audio, and microphone using ScreenCaptureKit. The OS will show a permission prompt on first use — grant Screen Recording access to your terminal or app in System Settings → Privacy & Security.

Windows captures screen via GDI/ffmpeg and system audio via direct WASAPI loopback COM P/Invoke. Microphone is captured via NAudio if a device is present. All native DLLs and ffmpeg are bundled inside the package.

License

MIT — built and maintained by BreakingPoint