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

@superbased/winrt-speech

v0.1.0

Published

Offline on-device speech recognition for Windows, powered by WinRT SpeechRecognizer. Native addon consumed by the `superbased` npm package.

Readme

@superbased/winrt-speech

Offline on-device speech recognition for Windows via Windows.Media.SpeechRecognition. Published as an optional dependency of the superbased npm package; not intended as a standalone consumer surface.

Requirements

  • Windows 10 1903+ or Windows 11 (x64 or arm64)
  • Node.js 20+ (prebuilts published for the N-API versions actually in use)
  • At least one Windows speech data pack installed (Settings → Time & Language → Speech → Add a language)
  • "Online speech recognition" toggle enabled in Settings → Privacy & Security → Speech

Install

npm install @superbased/winrt-speech

Prebuilts are published ahead of time so npm install never falls through to node-gyp rebuild on consumer boxes.

API

import {
  isSupported,
  listSupportedLocales,
  requestPermission,
  transcribeFile,
} from '@superbased/winrt-speech';

isSupported();                    // boolean
listSupportedLocales();           // ['en-US', 'en-GB', ...]
await requestPermission();        // 'authorized' | 'denied' | 'notDetermined'

// File-based transcription — v0.1 ships the binding + permission probe;
// full AudioGraph + FileInputNode plumbing lands in a follow-up. Use
// engine=sherpa on Windows until that patch ships.
const { text, confidence, locale } = await transcribeFile({
  audioPath: 'C:\\path\\to\\audio.wav',
  locale: 'en-US',
  contextualStrings: ['SuperBased'],
});

Why this package exists (vs @nodert-win11/*)

The Phase 4d spike tried @nodert-win11/windows.media.speechrecognition and aborted because:

  • Prebuilts target Node 16-18; Node 22's NODE_MODULE_VERSION=127 is newer.
  • Falling through to node-gyp rebuild requires Windows SDK + MSBuild, which fails on ~95% of uncustomised dev boxes.
  • Upstream binding.gyp doesn't emit /AI <WindowsUnionMetadataDir>, so the C++/WinRT compiler can't locate WinMD metadata.

@superbased/winrt-speech addresses all three: N-API prebuilds published ahead of time, our own binding.gyp with AdditionalUsingDirectories set to $(WindowsSdkDir)UnionMetadata\$(TargetPlatformVersion), release cadence controlled by us.

Error shape

try {
  await transcribeFile({ audioPath: '...' });
} catch (err) {
  // err.code is one of:
  //   'unauthorized'        — run requestPermission(), or toggle in Settings
  //   'recognition_failed'  — Windows.Media.SpeechRecognition rejected the session
  //   'winrt_error'         — generic HRESULT failure from the WinRT layer
  // err.winrtStatus may contain the raw SpeechRecognitionResultStatus int.
}

Building from source

npm install
npm run build

Requires Visual Studio 2022 Build Tools (or Visual Studio with "Desktop development with C++" + "Windows 10/11 SDK"). binding.gyp passes /std:c++17, /await, /EHsc, /permissive-, /Zc:__cplusplus, and includes the Windows SDK UnionMetadata path.

License

MIT. Authored by Gaja AI Private Limited.