d0uub74 downloadsOpen and edit HTML files inside Obsidian with a live preview tab, in-app DevTools, and a CORS-free fetch bridge -- local development pages can call any API with no restrictions.
Open .html / .htm files directly inside Obsidian. The plugin renders your page in a live preview tab with a built-in debugger, and — key feature — no API restrictions: local development pages can call any internet API without CORS errors.
.html / .htm file in your vault renders in a sandboxed iframe, exactly as it would in a browser.fetch() to any API works with no CORS errors, no proxy, no config. Cookies, headers, and methods (GET/POST/PUT/DELETE...) are forwarded.One of:
d0uub/obsidian-html-viewer) via Add a beta plugin.main.js, manifest.json, styles.css → copy into <vault>/.obsidian/plugins/html-dev-viewer/ → enable under Settings → Community plugins..html files aren't opening with the viewer, enable Settings → Files & Links → Detect all file extensions.Once accepted, it will appear in Community plugins → Browse as HTML Viewer.
.html or .htm file in the file explorer to open it in preview.fetch('https://any-api.example/api') from your local HTML just works.allow-scripts allow-same-origin allow-forms allow-modals allow-popups), so the page cannot touch the host Obsidian window except through the two explicit message channels: the fetch bridge and the DevTools toggle.cdn.jsdelivr.net; offline preview still works, only the DevTools panel needs network.npm install
npm run build # writes main.js
Uses esbuild via the build script in package.json.
minAppVersion: 0.15.0MIT — see LICENSE.