jarvis-clap
v1.0.0
Published
Double clap to activate JARVIS — plays a welcome sound and opens Terminal
Maintainers
Readme
jarvis-clap
Double clap to activate JARVIS — plays a welcome sound and opens Terminal. Just like Tony Stark.
Install
# Prerequisite
brew install sox
# Install JARVIS
npm install -g jarvis-clapUsage
# Run in foreground
jarvis
# Install as auto-start service (runs on login)
jarvis install
# Check status
jarvis status
# Remove the service
jarvis uninstallOptions
# Adjust clap sensitivity (0.0 = hair trigger, 1.0 = thunder only)
jarvis --threshold 0.5
# Use a custom sound file
jarvis --sound ~/my-sound.mp3How it works
JARVIS listens to your MacBook microphone via sox. When it detects two sharp sounds (claps) within 0.1–0.5 seconds of each other, it:
- Plays the welcome sound through your MacBook speakers
- Opens Terminal
Detection is paused for 10 seconds after each trigger to prevent the sound playback from re-triggering.
Requirements
- macOS (uses CoreAudio,
afplay, andosascript) - Node.js >= 16
- sox —
brew install sox
Troubleshooting
Not triggering? Lower the threshold: jarvis --threshold 0.2
Triggering on random noise? Raise it: jarvis --threshold 0.5
No sound playing? Check your output device in System Settings > Sound.
License
MIT
