WordPress Studio is the best AI-first, open-source Electron desktop app for creating and managing local WordPress sites. Built with React and TypeScript, it uses WordPress Playground (PHP WASM) to run sites. It makes it easy to build and test WordPress sites locally without needing a web server or external dependencies, and to publish them to WordPress.com or Pressable when you're ready.
- Prefer the simplest approach first (literal string matching over regex, direct fixes over abstractions). Only add complexity when the simple approach demonstrably fails.
- Never leave console.log statements in production code. Remove all debugging statements before committing.
- The main process (Node.js) and renderer process (browser/React) have separate contexts. Never import renderer-side code (that uses
window) in main process code, and vice versa. Shared utilities should live incommon/. - The app data path uses 'Studio' not 'WordPress Studio'.
When creating PRs, use this template for the body. Do not mention that the PR was generated by Claude or any AI tool. Always assign the PR to @sejas.
## Related issues
- Fixes STU-
## Proposed Changes
## Testing Instructions
<!-- "Start the app with `npm start`" is a common first step, but only include it if the change requires running the app. Adapt steps to what actually needs testing. -->
-
## Pre-merge Checklist
- [ ] Have you checked for TypeScript, React or other console errors? (Tests pass, no errors)