Hot reload Obsidian plugins on mobile and desktop by watching for file changes. This plugin includes a built-in server and client to bridge the gap between your desktop development environment and mobile testing devices.
- Instant Hot Reload: Automatically reloads plugins when
main.js,manifest.json,styles.css, ordata.jsonchange. - Cross-Device Sync: Develop on desktop and see changes instantly on your phone or tablet.
- Three Operation Modes:
- Standalone: Watches local files for changes (ideal for desktop-only dev).
- Server: (Desktop only) Watches local files and serves updates to mobile clients.
- Client: (Mobile/Desktop) Connects to a server to download and apply plugin updates.
- Automatic Detection: Automatically identifies plugins to watch if they contain a
.gitfolder or a.hotreloadfile. - Data Sync: Optionally synchronize
data.jsonto keep plugin settings in sync across devices.
- Install the plugin via the Obsidian community plugin browser or manually.
- Enable the plugin in Settings → Community plugins.
- Desktop Development: Set mode to Server in the plugin settings.
- Mobile Testing: Set mode to Client and enter your desktop's IP address and the configured port (default: 8080).
By default, the plugin automatically watches any plugin in your vault that:
- Contains a
.gitdirectory. - OR contains an empty file named
.hotreload.
You can also manually specify plugins to watch in the settings tab.
- Mode: Choose between Standalone, Server, or Client.
- Polling Interval: How often to check for changes (default: 2000ms).
- Auto-Detect: Automatically watch plugins with development markers.
- Sync Data Files: Enable to synchronize
data.jsonchanges. - Server Port: The port the server listens on (default: 8080).
- Remote URL: The address of the server (e.g.,
http://192.168.1.5:8080).
- Check for plugin changes: Manually trigger a check across all watched plugins.
- Clone the repository.
- Run
npm installto install dependencies. - Run
npm run devto start the build in watch mode.
- Copy
main.js,manifest.json, andstyles.css(if present) to your vault's plugin folder:<Vault>/.obsidian/plugins/mobile-hot-reload/.
This plugin incorporates logic and ideas from obsidian-hot-reload by PJ Eby, licensed under the ISC License.
Created by Justice Vellacott