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

swictation

v0.7.37

Published

Cross-platform voice-to-text dictation for Linux and macOS with GPU acceleration (NVIDIA CUDA/CoreML), Secretary Mode (60+ natural language commands), Context-Aware Meta-Learning, and pure Rust performance. Meta-package that automatically installs platfor

Downloads

917

Readme

Swictation

Voice-to-text dictation for Linux and macOS with GPU acceleration. Pure Rust daemon with VAD-triggered auto-transcription, sub-second latency, and complete privacy.

Supported platforms:

  • Linux x64 (Ubuntu 24.04+, GLIBC 2.39+)
  • macOS Apple Silicon (M1 or later), macOS 14 Sonoma+

Install

npm install -g swictation --foreground-scripts

The --foreground-scripts flag shows installation progress. Postinstall automatically:

  1. Detects your GPU and downloads optimized acceleration libraries
  2. Downloads and test-loads AI models (~30-60s on first install)
  3. Sets up the background service (systemd on Linux, launchd on macOS)
  4. Shows platform-specific setup instructions

Platform Requirements

Linux x64

  • Ubuntu 24.04+ (GLIBC 2.39+), Node.js 18+
  • Optional: NVIDIA GPU with 4GB+ VRAM for the 0.6B model, 6GB+ for the 1.1B model (CPU fallback available)

macOS Apple Silicon (M1 or later)

  • macOS 14 Sonoma or later, Node.js 18+
  • 16GB+ unified memory — a hard requirement. Postinstall refuses to install on Macs reporting less, because the CoreML models need the headroom.
  • Intel Macs are not supported
  • Accessibility permissions granted during setup

Commands

swictation doctor            # Check every install step, print a repair command per failure
swictation download-models   # Download AI models (alias: download-model)
swictation setup             # Run the install steps (config, models, services)
swictation start [--ui]      # Start the daemon (and optionally the tray UI)
swictation stop              # Stop the daemon
swictation status            # Show service, socket, and platform status
swictation toggle            # Toggle recording on/off
swictation help              # Full usage
swictation --version         # Show version

Postinstall runs download-models and setup for you; run them by hand if the install was interrupted.

download-models always fetches Silero VAD (629 KB) plus one or more STT models. Choose with --model= (a bare positional also works, e.g. download-model 1.1b-gpu) and add --force to re-download:

  • Linux: 0.6b (2.55 GB; aliases 0.6b-gpu, 0.6b-cpu, cpu-only), 1.1b (6.96 GB; alias 1.1b-gpu), or both (default, ~9.5 GB)
  • macOS: 1.1b-coreml (1.9 GB; alias coreml-native), 0.6b-coreml (2.67 GB), or both (default — VAD plus the CoreML 1.1B bundle)

When something is broken

Run swictation doctor first. It evaluates every install step against what is on disk, runs nothing and writes nothing, and prints a repair command under each failure — so it works on a half-installed machine and is safe to run mid-failure.

swictation doctor          # health table for every install step
swictation doctor --deep   # ...and verify contents by hash, not just size
swictation doctor --json   # machine-readable report (schemaVersion 1)

Exit codes: 0 nothing unhealthy, 1 at least one step unhealthy or blocked, 2 doctor itself failed to run.

Then repair only what it flagged, instead of reinstalling the package:

swictation setup --repair     # run only the steps that are not healthy
swictation setup --list       # list the install steps and their ids
swictation setup --<id>       # run one step, e.g. --services, --models, --gpu-libs

Step ids: platform, binaries, config-reset, gpu-libs, models, config-heal, services, integration, verify. Steps are idempotent and derive their state from disk, so re-running one is harmless; these flags are non-interactive and safe to script.

Model integrity

Model downloads are pinned to immutable upstream revisions and verified against per-file SHA-256 hashes shipped in models.manifest.json. A file only takes its final name after it passes, so a truncated transfer or a changed upstream fails the download rather than turning into an opaque runtime error later. Files that fail verification are re-fetched on the next run, and swictation doctor --deep re-verifies the installed tree on demand.

Where things live

| | Linux | macOS | |---|---|---| | Config | ~/.config/swictation/ | ~/Library/Application Support/swictation/ | | Data + models | ~/.local/share/swictation/ | ~/Library/Application Support/swictation/ | | Install log | ~/.local/share/swictation/install.log | ~/Library/Logs/swictation/install.log | | Daemon logs | journalctl --user -u swictation-daemon | ~/Library/Logs/swictation/daemon.log |

Uninstall

# 1. Stop the services FIRST — npm will not do it for you
swictation stop
systemctl --user disable swictation-daemon              # Linux
launchctl bootout gui/$(id -u)/com.swictation.daemon    # macOS

# 2. Remove the package
npm uninstall -g swictation

npm 7 and later do not run uninstall lifecycle scripts, so the bundled preuninstall.js cleanup never fires on modern npm — stop and disable the service yourself first, or the unit is left pointing at deleted binaries.

User data and models are preserved on uninstall (up to ~9.5GB of models on Linux). Delete them explicitly if you want them gone:

rm -rf ~/.config/swictation ~/.local/share/swictation                       # Linux
rm -rf ~/Library/Application\ Support/swictation ~/Library/Logs/swictation  # macOS

Documentation

Full documentation, configuration reference, and troubleshooting guides: https://github.com/robertelee78/swictation

  • macOS setup: https://github.com/robertelee78/swictation/blob/main/docs/macos-setup.md
  • Secretary Mode: https://github.com/robertelee78/swictation/blob/main/docs/secretary-mode.md
  • Window manager configs: https://github.com/robertelee78/swictation/blob/main/docs/window-manager-configs.md

Links

  • Source: https://github.com/robertelee78/swictation
  • Issues: https://github.com/robertelee78/swictation/issues

License

Apache-2.0