Viggo Meesters47 downloadsOpen .html and .htm files in Obsidian as a sandboxed rendered preview or syntax-highlighted source.
HTML Page Viewer is a read-only Obsidian plugin for opening .html and .htm files as rendered pages inside Obsidian. It is built for local reports, exported dashboards, documentation pages, prototypes, and generated visual artifacts that you want to inspect without leaving the vault.
.html and .htm files in a dedicated Obsidian view.HTML files can execute powerful browser behavior if a viewer permits it. HTML Page Viewer uses a conservative default:
allow-scripts to the iframe sandbox.allow-same-origin, allow-forms, allow-popups, or allow-top-navigation.Rendered HTML may still request external resources, such as images, stylesheets, fonts, or scripts, when the HTML document itself references them. This is normal browser behavior for rendered HTML pages and is separate from plugin code making network requests.
HTML reports and exported pages are often generated artifacts. HTML Page Viewer intentionally does not write to disk, so it cannot reformat, truncate, or corrupt your files.
HTML Page Viewer is ready for submission to the Obsidian Community plugin directory. Once accepted, it can be installed from Settings -> Community plugins -> Browse inside Obsidian.
Until the community directory submission is accepted:
main.js, manifest.json, and styles.css from the latest release..obsidian/plugins/html-page-viewer/.For beta testing, install the plugin with BRAT using this repository URL:
https://github.com/viggomeesters/obsidian-html-page-viewer
Open any .html or .htm file in your vault. Obsidian will open it with HTML Page Viewer.
Use the toolbar to:
Scripts are intentionally per-tab. Opening a new HTML file starts with scripts off again.
npm install
npm run build
npx tsc --noEmit
npm test
For local development, copy or symlink this repository into .obsidian/plugins/html-page-viewer/ inside an Obsidian vault.
Obsidian installs community plugin files from GitHub releases. For each release:
manifest.json, package.json, and versions.json.npm install, npm run build, npx tsc --noEmit, and npm test.manifest.json.version.main.js, manifest.json, and styles.css as release assets.The repository includes a GitHub Actions release workflow with artifact attestation support. If GitHub Actions is disabled for the owner account, manual releases are still usable for Obsidian, but the Community automated review may show a recommendation about missing artifact attestations.
The repository is prepared for Obsidian Community plugin submission. The remaining submission step must be completed by the repository owner in the Obsidian Community site because it requires signing in, linking GitHub, and confirming the developer policies/support commitment.
Submit this repository URL:
https://github.com/viggomeesters/obsidian-html-page-viewer
Steps:
The current release is ready for review:
README.md, LICENSE, and manifest.json existmanifest.json.version is 0.1.10.1.1 existsmain.js, manifest.json, and styles.cssversions.json maps supported Obsidian versionsOfficial references:
HTML Page Viewer was built independently, but it was informed by the existing Obsidian HTML viewer ecosystem, including the MIT-licensed JiaLinZhang24/obsidian-html-viewer. No source code from that project is included in this repository.