Prerequisites
Before building Scratch, ensure you have the following installed:Required Tools
Node.js 18+
Download and install from nodejs.org or use a version manager like nvm:
Platform-Specific Requirements
Clone the Repository
Install Dependencies
Install Node.js dependencies:The first build will also download and compile Rust dependencies, which may take several minutes.
Development Build
Run in Development Mode
Start the app with hot-reload enabled:- Starts the Vite dev server for the frontend
- Compiles the Rust backend
- Launches the app in development mode
- Enables hot-reload for both frontend and backend changes
Frontend Only (Optional)
To develop the frontend UI without the Tauri backend:Production Build
Build Release Binary
Platform-Specific Builds
Development Commands
Frontend Commands
Tauri Commands
Troubleshooting
Build Fails on macOS
Issue:xcode-select: error: tool 'xcodebuild' requires Xcode
Solution: Install Xcode Command Line Tools:
Build Fails on Windows
Issue: WebView2 not found Solution: Install WebView2 Runtime from MicrosoftBuild Fails on Linux
Issue: Missing development libraries Solution: Install required system dependencies (see Platform-Specific Requirements above)Rust Compilation Errors
Issue: Outdated Rust toolchain Solution: Update Rust:Node Module Issues
Issue: Dependency conflicts or corrupted modules Solution: Clean install:Next Steps
Architecture
Learn about Scratch’s technical architecture
Contributing
Read the contributing guidelines