HxGuang80 downloadsLive HTML preview with local HTTP server and auto-reload, like VSCode Live Preview.
A live HTML preview plugin for Obsidian, inspired by VSCode's Live Preview. It starts a local HTTP server, serves your HTML files with auto-reload on save, and provides an embedded preview panel inside Obsidian — plus the ability to open in your system browser.
.html files from their parent directory, so relative paths, CSS, JS, fonts, and images all work correctly.Search "Live Preview" in Settings → Community plugins → Browse, then install and enable.
main.js, manifest.json, and styles.css from the latest release.<vault>/.obsidian/plugins/live-preview/.Cmd/Ctrl + R).HxWGuang/obsidian-live-preview..html or .htm file in your vault — the preview starts automatically in the right sidebar.Cmd/Ctrl + P):| Setting | Default | Description |
|---|---|---|
| Port | 5500 |
Starting port for the local HTTP server. Auto-increments if busy. |
| Debounce delay | 300 ms |
Delay after a file change before the preview refreshes. |
127.0.0.1 (localhost only) — no external network access..html, .css, .js, images, fonts, etc.).../../../) are blocked at the server level.sandbox attributes for isolation.# Clone the repository
git clone https://github.com/HxWGuang/obsidian-live-preview.git
cd obsidian-live-preview
# Install dependencies
npm install
# Build
npm run build
# Copy to your vault for testing
cp main.js manifest.json styles.css /path/to/vault/.obsidian/plugins/obsidian-live-preview/