Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

chore: remove stale docs and setup script, merge Windows troubleshooting

Gabriel Steina8bbba922977
diff --git a/CLEANUP_INSTRUCTIONS.md b/CLEANUP_INSTRUCTIONS.md
deleted file mode 100644
index e939b92e7..000000000
--- a/CLEANUP_INSTRUCTIONS.md
+++ /dev/null
@@ -1,306 +0,0 @@
-# OpenWhispr Complete Cleanup Instructions
-
-## The Problem
-
-If you've installed both the **production DMG** and tried to run **development mode**, they share the same data directories, which can cause conflicts:
-
-- Same database files
-- Same settings/localStorage
-- Same `.env` configuration
-- Same Whisper models cache
-- Same system preferences
-
-This can lead to issues like:
-- Microphone not working in dev but working in production
-- Settings not persisting correctly
-- Database conflicts
-- Mixed configurations
-
-## Quick Solution: Use the Cleanup Script
-
-### Step 1: Run the automated cleanup script
-
-```bash
-cd /path/to/open-whispr
-bash scripts/complete-uninstall.sh
-```
-
-This script will:
-- Stop all OpenWhispr processes
-- Remove the production app
-- Delete all application data
-- Clear caches and logs
-- Optionally remove Whisper models
-- Clean up temp files
-
-### Step 2: Start fresh
-
-**For Production:**
-```bash
-# Download fresh DMG from releases
-# Install and run normally
-```
-
-**For Development:**
-```bash
-# Make sure you have ARM64 Node.js
-node -p "process.arch" # Should output: arm64
-
-# Clean install
-rm -rf node_modules package-lock.json
-npm install
-
-# Run dev
-npm run dev
-```
-
----
-
-## Manual Cleanup (if script doesn't work)
-
-### 1. Stop all OpenWhispr processes
-
-```bash
-# Kill production app
-pkill -f "OpenWhispr"
-
-# Kill dev processes
-pkill -f "open-whispr"
-pkill -f "electron"
-```
-
-### 2. Remove the Application
-
-```bash
-rm -rf /Applications/OpenWhispr.app
-```
-
-### 3. Remove Application Data
-
-**Application Support** (contains databases, settings, logs):
-```bash
-rm -rf "$HOME/Library/Application Support/OpenWhispr"
-rm -rf "$HOME/Library/Application Support/open-whispr"
-```
-
-**Preferences** (system-level settings):
-```bash
-rm -rf "$HOME/Library/Preferences/com.openwhispr.app.plist"
-rm -rf "$HOME/Library/Preferences/com.electron.openwhispr.plist"
-```
-
-**Caches**:
-```bash
-rm -rf "$HOME/Library/Caches/OpenWhispr"
-rm -rf "$HOME/Library/Caches/open-whispr"
-```
-
-**Logs**:
-```bash
-rm -rf "$HOME/Library/Logs/OpenWhispr"
-rm -rf "$HOME/Library/Logs/open-whispr"
-```
-
-**Saved Application State**:
-```bash
-rm -rf "$HOME/Library/Saved Application State/com.openwhispr.app.savedState"
-```
-
-### 4. Remove Whisper Models (optional, ~2-3GB)
-
-```bash
-rm -rf "$HOME/.cache/whisper"
-rm -rf "$HOME/.cache/huggingface"
-```
-
-### 5. Remove Temp Files
-
-```bash
-find /tmp -name "whisper_audio_*" -delete
-find /tmp -name "openwhispr_*" -delete
-```
-
-### 6. Clean Development Environment
-
-If you're setting up for development:
-
-```bash
-cd /path/to/open-whispr
-
-# Remove dev database and env file
-rm -f .env
-rm -rf node_modules
-rm -f package-lock.json
-
-# Clear npm cache
-npm cache clean --force
-```
-
-### 7. Reset macOS System Permissions (Optional)
-
-The cleanup script **cannot** remove macOS system permissions. These persist even after uninstalling.
-
-**This is usually fine** - permissions will automatically apply to a fresh install.
-
-**To completely reset permissions** (rarely needed):
-
-```bash
-# Reset microphone permission
-tccutil reset Microphone com.openwhispr.app
-
-# Reset accessibility permission
-tccutil reset Accessibility com.openwhispr.app
-
-# For dev mode (Terminal)
-tccutil reset Microphone com.apple.Terminal
-tccutil reset Accessibility com.apple.Terminal
-```
-
-After running these commands, macOS will prompt for permissions again when you run the app.
-
-**When to reset permissions:**
-- Microphone not working after reinstall
-- "Permission denied" errors even though you granted access
-- Troubleshooting strange permission issues
-
-**Note:** You cannot manually remove apps from System Settings → Privacy lists. They only disappear when the app is uninstalled, but the permission record persists in the TCC database.
-
----
-
-## Complete Fresh Start for Development
-
-After cleanup, follow these steps for a clean dev environment:
-
-### 1. Verify ARM64 Node.js (Apple Silicon Macs)
-
-```bash
-# Check architecture
-node -p "process.arch" # Must show: arm64
-
-# If it shows x64, install ARM64 Node:
-# Option A: Using nvm (recommended)
-curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
-nvm install --lts
-nvm use --lts
-
-# Option B: Download from nodejs.org
-# Get macOS ARM64 installer from https://nodejs.org/
-```
-
-### 2. Clean Install Dependencies
-
-```bash
-cd /path/to/open-whispr
-
-# Remove everything
-rm -rf node_modules package-lock.json
-
-# Fresh install
-npm install
-
-# Verify better-sqlite3 architecture
-file node_modules/better-sqlite3/build/Release/better_sqlite3.node
-# Should show: Mach-O 64-bit bundle arm64
-```
-
-### 3. Setup Environment
-
-```bash
-# Create fresh .env file
-touch .env
-
-# Add your API keys
-echo "OPENAI_API_KEY=your_key_here" >> .env
-```
-
-### 4. Run Development Mode
-
-```bash
-npm run dev
-```
-
----
-
-## Troubleshooting
-
-### Issue: "better-sqlite3 architecture mismatch"
-
-**Solution:**
-```bash
-# Your Node is running in x64 mode via Rosetta
-# Follow "Verify ARM64 Node.js" section above
-```
-
-### Issue: "Microphone prints 'you' instead of transcription"
-
-**Solution:**
-```bash
-# Corrupted database or settings - run cleanup script
-bash scripts/complete-uninstall.sh
-
-# Then reinstall/re-run
-```
-
-### Issue: "Database initialization failed"
-
-**Solution:**
-```bash
-# Remove database files specifically
-rm -rf "$HOME/Library/Application Support/OpenWhispr"
-rm -rf "$HOME/Library/Application Support/open-whispr"
-
-# Rebuild dependencies
-npm run postinstall
-```
-
-### Issue: Production DMG works but dev doesn't
-
-**Cause:** They're sharing data directories but using different configurations.
-
-**Solution:**
-1. Run complete cleanup script
-2. Choose either production OR development (don't mix)
-3. If developing, uninstall production app first
-
----
-
-## Data Locations Reference
-
-All OpenWhispr data is stored in these locations:
-
-| Type | Location |
-|------|----------|
-| **Databases** | `~/Library/Application Support/OpenWhispr/transcriptions.db` |
-| **Dev Database** | `~/Library/Application Support/OpenWhispr/transcriptions-dev.db` |
-| **Settings** | Browser localStorage (in Electron's userData) |
-| **API Keys** | `.env` file in project root (dev) |
-| **Logs** | `~/Library/Application Support/OpenWhispr/logs/` |
-| **Debug Logs** | `~/Library/Logs/OpenWhispr/` |
-| **Whisper Models** | `~/.cache/whisper/` |
-| **Preferences** | `~/Library/Preferences/com.openwhispr.app.plist` |
-| **Caches** | `~/Library/Caches/OpenWhispr/` |
-| **Temp Audio** | `/tmp/whisper_audio_*.wav` |
-
----
-
-## Prevention Tips
-
-1. **Don't mix production and development** - Choose one or the other
-2. **Use separate branches** - Keep production DMG uninstalled when developing
-3. **Check Node architecture** - Always verify `node -p "process.arch"` shows `arm64`
-4. **Clean installs** - When switching modes, run cleanup script first
-5. **Backup data** - Export important transcriptions before cleanup
-
----
-
-## Getting Help
-
-If cleanup doesn't solve your issue:
-
-1. Check the architecture: `node -p "process.arch"`
-2. Check Node version: `node -v`
-3. Check Electron version: `npm list electron`
-4. Run with debug mode: `npm run dev -- --debug`
-5. Check logs in: `~/Library/Application Support/OpenWhispr/logs/`
-
-Report issues with this information at: [GitHub Issues](https://github.com/your-repo/open-whispr/issues)
diff --git a/NEON_AUTH_SETUP.md b/NEON_AUTH_SETUP.md
deleted file mode 100644
index 1de600ff1..000000000
--- a/NEON_AUTH_SETUP.md
+++ /dev/null
@@ -1,26 +0,0 @@
-# Neon Auth Setup Guide
-
-OpenWhispr supports optional authentication using Neon Auth (managed, Better Auth-based). When enabled, users can sync settings across devices and access account features.
-
-## 1. Create a Neon Project and Enable Neon Auth
-1. In the Neon console, create or open your project.
-2. Enable Neon Auth for the project.
-3. Copy the **Auth URL** for your project.
-
-## 2. Configure Environment Variables
-Add the Neon Auth URL to your `.env` file:
-
-```
-VITE_NEON_AUTH_URL=https://ep-<branch-id>.neonauth.<region>.aws.neon.tech/neondb/auth
-```
-
-## 3. Run the App
-If `VITE_NEON_AUTH_URL` is set, the app will show the Neon Auth sign-in UI during onboarding.
-
-## Optional: Run Without Auth
-If you don't want authentication, leave `VITE_NEON_AUTH_URL` unset. The app will continue to work without account features.
-
-## Troubleshooting
-- Ensure the Auth URL is copied exactly from the Neon console.
-- If sign-in fails in Electron, verify that your app origin is allowed by Neon Auth.
-- OAuth providers will only appear if configured in the Neon console.
diff --git a/README.md b/README.md
index fc713dd14..674bf1676 100644
--- a/README.md
+++ b/README.md
@@ -515,7 +515,6 @@ Automatically detect and transcribe meetings with Google Calendar integration:
open-whispr/
├── main.js # Electron main process & IPC handlers
├── preload.js # Electron preload script & API bridge
-├── setup.js # First-time setup script
├── package.json # Dependencies and scripts
├── env.example # Environment variables template
├── CHANGELOG.md # Project changelog
@@ -591,7 +590,6 @@ open-whispr/
- `npm run dev` - Start development with hot reload
- `npm run start` - Start production build
-- `npm run setup` - First-time setup (creates .env file)
- `npm run build:renderer` - Build the React app only
- `npm run download:whisper-cpp` - Download whisper.cpp for the current platform
- `npm run download:whisper-cpp:all` - Download whisper.cpp for all platforms
@@ -667,7 +665,7 @@ Note: build/pack/dist scripts automatically download whisper.cpp, llama-server,
### Environment Variables
-Create a `.env` file in the root directory (or use `npm run setup`):
+Create a `.env` file in the root directory (see [.env.example](.env.example) for the template):
```env
# OpenAI API Configuration (optional - only needed for cloud processing)
diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md
index d2f8d417c..1d5ecdc2f 100644
--- a/TROUBLESHOOTING.md
+++ b/TROUBLESHOOTING.md
@@ -67,8 +67,8 @@
**Fix:**
1. Reinstall dependencies: `rm -rf node_modules && npm ci`
-2. Run `npm run setup` to verify FFmpeg
-3. If using packaged app, try reinstalling
+2. If using packaged app, try reinstalling
+3. **Windows:** check that antivirus / Windows Defender hasn't quarantined the bundled FFmpeg binary
### whisper.cpp Issues
@@ -127,9 +127,33 @@ OpenWhispr tries clipboard methods in order: `wl-copy` (most reliable) → rende
### Windows-Specific Issues
-See [WINDOWS_TROUBLESHOOTING.md](WINDOWS_TROUBLESHOOTING.md) for:
-- Window visibility issues
-- FFmpeg permission problems
+**No window appears (process running in Task Manager but invisible):**
+1. Check the system tray (click the `^` caret) for the OpenWhispr icon
+2. Run with debug logging: `OpenWhispr.exe --log-level=debug`
+3. Try disabling GPU acceleration: `OpenWhispr.exe --disable-gpu`
+
+**Antivirus / Windows Defender blocking binaries:**
+
+whisper.cpp and FFmpeg may be quarantined silently. Add OpenWhispr to exclusions: Settings → Virus & threat protection → Exclusions.
+
+**Permission errors:**
+
+Right-click OpenWhispr → Run as administrator (or set permanently in Properties → Compatibility).
+
+**Firewall blocking cloud mode:**
+
+Allow OpenWhispr through Windows Firewall when using cloud transcription providers.
+
+**Complete reset (after uninstalling):**
+
+```batch
+rd /s /q "%APPDATA%\OpenWhispr"
+rd /s /q "%LOCALAPPDATA%\OpenWhispr"
+```
+
+Then reinstall.
+
+**Logs location:** `%APPDATA%\OpenWhispr\logs\`
## Enable Debug Mode
diff --git a/WINDOWS_TROUBLESHOOTING.md b/WINDOWS_TROUBLESHOOTING.md
deleted file mode 100644
index 34c3b36a6..000000000
--- a/WINDOWS_TROUBLESHOOTING.md
+++ /dev/null
@@ -1,92 +0,0 @@
-# Windows Troubleshooting
-
-## Quick Fixes
-
-### No Window Appears
-
-**Symptoms:** OpenWhispr runs in Task Manager but no window shows
-
-**Solutions:**
-1. Check system tray (click ^ caret) for OpenWhispr icon
-2. Run with debug: `OpenWhispr.exe --log-level=debug`
-3. Try disabling GPU: `OpenWhispr.exe --disable-gpu`
-
-### No Transcriptions
-
-**Symptoms:** Recording works but no text appears
-
-**Solutions:**
-1. Check microphone permissions: Settings → Privacy → Microphone
-2. Verify mic is selected: Sound settings → Input
-3. Test recording in Windows Voice Recorder first
-
-### whisper.cpp Not Working
-
-**Symptoms:** Local transcription fails
-
-**Solutions:**
-1. whisper.cpp is bundled with the app - try reinstalling
-2. If running from source, run `npm run download:whisper-cpp` and confirm `resources\\bin\\whisper-cpp-win32-x64.exe` exists
-3. Check antivirus isn't blocking the whisper-cpp executable
-4. Clear model cache: delete `%USERPROFILE%\.cache\openwhispr\whisper-models`
-5. Try cloud mode as fallback
-
-### FFmpeg Issues
-
-**Symptoms:** Transcription fails silently
-
-**Solutions:**
-1. Reinstall OpenWhispr (FFmpeg is bundled)
-2. Check antivirus isn't quarantining FFmpeg
-3. Install system FFmpeg and add to PATH if needed
-
-## Debug Mode
-
-```batch
-# Run with debug logging
-OpenWhispr.exe --log-level=debug
-
-# Or set in .env file at %APPDATA%\OpenWhispr\.env
-OPENWHISPR_LOG_LEVEL=debug
-```
-
-Logs saved to: `%APPDATA%\OpenWhispr\logs\`
-
-## Common Errors
-
-| Error | Meaning | Fix |
-|-------|---------|-----|
-| Audio buffer empty | Mic not capturing | Check permissions, try different mic |
-| whisper.cpp not found | Binary not accessible | Reinstall app, check antivirus |
-| FFmpeg not found | Can't find FFmpeg | Reinstall app, check antivirus |
-| Model download failed | Can't download GGML model | Check internet; try cloud mode |
-
-## Windows-Specific Tips
-
-### Windows Defender
-Add OpenWhispr to exclusions if blocked:
-Settings → Virus & threat protection → Exclusions
-
-### Firewall (Cloud Mode)
-Allow OpenWhispr through firewall for cloud transcription
-
-### Permission Errors
-Right-click → Run as administrator (or set in Properties → Compatibility)
-
-## Complete Reset
-
-```batch
-# Uninstall OpenWhispr first, then:
-rd /s /q "%APPDATA%\OpenWhispr"
-rd /s /q "%LOCALAPPDATA%\OpenWhispr"
-```
-
-Then reinstall.
-
-## Getting Help
-
-Report issues at https://github.com/OpenWhispr/openwhispr/issues with:
-- Windows version (`winver`)
-- OpenWhispr version
-- Debug log contents
-- Steps to reproduce
diff --git a/package.json b/package.json
index 129cf7ac4..76f9d5927 100644
--- a/package.json
+++ b/package.json
@@ -41,7 +41,6 @@
"build:linux:deb": "npm run build:renderer && electron-builder --linux deb",
"build:linux:rpm": "npm run build:renderer && electron-builder --linux rpm",
"build:linux:tar": "npm run build:renderer && electron-builder --linux tar.gz",
- "setup": "node setup.js",
"prepack": "npm run compile:native && npm run download:whisper-cpp && npm run download:llama-server && npm run download:sherpa-onnx && npm run download:qdrant",
"pack": "npm run build:renderer && cross-env CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --dir",
"predist": "npm run compile:native && npm run download:whisper-cpp && npm run download:llama-server && npm run download:sherpa-onnx && npm run download:qdrant",
diff --git a/setup.js b/setup.js
deleted file mode 100644
index fc6100d57..000000000
--- a/setup.js
+++ /dev/null
@@ -1,48 +0,0 @@
-const fs = require("fs");
-
-console.log("Setting up OpenWhispr...");
-
-const envTemplate = `# OpenAI API Configuration
-# Get your API key from: https://platform.openai.com/api-keys
-OPENAI_API_KEY=your_openai_api_key_here
-
-# Optional: Customize the Whisper model
-# Available models: whisper-1 (default), whisper-1-large, whisper-1-large-v2
-WHISPER_MODEL=whisper-1
-
-# Optional: Set language for better transcription accuracy
-# Leave empty for auto-detection, or use language codes like 'en', 'es', 'fr', etc.
-LANGUAGE=
-
-# Optional: Debug mode (set to 'true' to enable verbose logging)
-DEBUG=false`;
-
-if (!fs.existsSync(".env")) {
- fs.writeFileSync(".env", envTemplate);
- console.log("✅ Created .env file template");
-} else {
- console.log("⚠️ .env file already exists");
-}
-
-console.log(`
-🎉 Setup complete!
-
-Next steps:
-1. Add your OpenAI API key to the .env file
-2. Install dependencies: npm install
-3. Run the app: npm start
-
-Features:
-- Global hotkey: Customizable (default: backtick \`) - set your own in Control Panel
-- Draggable dictation panel: Click and drag to position anywhere on screen
-- ESC to close the app
-- Automatic text pasting at cursor location
-- FFmpeg bundled (no separate installation needed)
-
-Note: Make sure you have the necessary system permissions for:
-- Microphone access
-- Accessibility permissions (for text pasting)
-
-For local Whisper processing, OpenWhispr uses whisper.cpp (bundled with the app).
-Models are downloaded automatically on first use.
-`);