CRUSH.md
Environment Setup:
bun install # Install dependencies
mkdir -p src-tauri/resources/models
curl -o src-tauri/resources/models/silero_vad_v4.onnx https://blob.handy.computer/silero_vad_v4.onnx
Development:
bun run tauri dev # Full app development
CMAKE_POLICY_VERSION_MINIMUM=3.5 bun run tauri dev # macOS with cmake fix
bun run dev # Frontend only (Vite)
bun run build # Build frontend
bun run tauri build # Production build
Type Check & Build:
bunx tsc --noEmit # Type checking
bun run build # Build and validate
Rust (Backend):
anyhow::Error for error handling with descriptive messagesArc<Mutex<T>> for shared state in managersdebug!, info!, eprintln! for errors/* ─────────── */TypeScript/React (Frontend):
useCallback hooks for stable function referencesdisabled = falseImports:
import type { Settings }Error Handling:
? operator with anyhow context messagesComponent Patterns: