Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

HTML Companion

Zero LiuZero Liu

Open HTML files in a tab instead of an external browser, with scripts, styles, and neighboring files intact.

  • Overview
  • Scorecard
  • Updates2
Screenshot 2026-08-17 at 12 18 13 PM

Open .html files inside Obsidian, in a normal tab.

Obsidian hides HTML files by default, and when you use "Show all file types" settings, clicking HTML files from the navbar kicks you out to external browsers instead of showing them in the built-in web view. This plugin makes HTML files appear in the file explorer and open right where you're working.

Handy if your vault collects HTML, reports, dashboards, charts, exported notes, mockups, or anything your AI assistant writes for you.

Install

Not in the community plugin list yet, so install it manually. In a terminal:

git clone https://github.com/zeroliu/obsidian-html-companion.git
cd obsidian-html-companion && npm install && npm run build
./scripts/install.sh /path/to/your/vault

Then restart Obsidian and turn on HTML Companion in Settings → Community plugins.

Prefer to do it by hand? Copy main.js, manifest.json, and styles.css into <vault>/.obsidian/plugins/html-companion/.

What you get

  • .html and .htm files show up in the file explorer with an HTML badge. No need to turn on "Detect all file extensions".
  • Clicking one opens it in a tab. Splits, tab history, and renames work like any other file.
  • Pages render fully: scripts, styles, images, fonts, and data fetching all work, including files kept in nearby folders.
  • The tab updates itself when the file changes, so a page your assistant rewrites refreshes while you watch.
  • Two buttons in the tab header: Reload, and Open in default app if you'd rather use your browser after all.
  • On phones and tablets, single-file pages work; ones that pull in separate CSS or JS need the desktop app.

Why this exists

Agents are unusually good at HTML, and Anthropic's Claude Code team makes the case for leaning into that in The unreasonable effectiveness of HTML: a plan, a report, or a review reads far better as a real page than as another wall of Markdown.

Ask Obsidian Copilot for one and it lands in your vault. And then it disappears. The file is right there, but Obsidian won't list it or open it, so you end up digging through Finder and switching to a browser to read something your notes just made.

This plugin closes that loop. The page your assistant wrote opens in a tab next to the note it came from.

Development

npm install
npm run dev     # watch build
npm test        # unit tests
npm run build   # typecheck + production bundle

License

MIT

HealthExcellent
ReviewRisks
About
Open .html and .htm files from the file explorer and view them in native web tabs. Render pages fully (scripts, styles, images, fonts, network fetches), auto-refresh on file changes, and provide Reload and Open in default app controls while keeping splits, tab history, and renames working normally.
HTMLFiles
Details
Current version
1.0.1
Last updated
3 months ago
Created
3 months ago
Updates
2 releases
Compatible with
Obsidian 1.1.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
Zero LiuZero Liuzeroliu
GitHubzeroliu
zeroliu
Xzerolxy
  1. Community
  2. Plugins
  3. HTML
  4. HTML Companion

Related plugins

Embed HTML

Adds support for embedding HTML files.

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

Advanced URI

Control everything with URI.

Claudian

Embeds Claude Code/Codex and other local Agents as AI collaborators in your vault.

Thino

Quickly capture memos and display them in the sidebar with a heatmap. (Closed source)

Local REST API with MCP

Unlock your automation needs by interacting with your notes over a secure REST API.

ChatGPT MD

A seamless integration of ChatGPT, OpenRouter.ai and local LLMs via Ollama into your notes.

Omnisearch

Intelligent search for your notes, PDFs, and OCR for images.

Quick Explorer

Perform file explorer operations (and see your current file path) from the title bar, using the mouse or keyboard.

Find orphaned files and broken links

Find files that are not linked anywhere and would otherwise be lost in your vault. In other words: files with no backlinks.