lucas208 downloadsPublish notes as short links and track who's viewed them.
Turn any Obsidian note into a shareable web page — publish it as a short link and see who's reading it, or export it as a standalone HTML file you can send to anyone.
Open a note, click the share icon in the status bar, and you get either:
https://your-domain.com/notes/ab3) that anyone can open in a browser — no Obsidian required — with page-view tracking.You can include the note's directly linked notes (and their links, one level deeper) so readers can click through a small wiki, not just one page.
$ ... $ and $$ ... $$)imgs block format)Click the share icon in the status bar and choose Export as ZIP (also available from the command palette). A .zip file is saved containing:
note-name/
├── index.html
├── style.css
└── images/
Unzip it and open index.html in any browser — everything (styles, images, math, etc.) is bundled, nothing needs a server.
Click the status bar share icon on any note to open the popover:
| Action | What it does |
|---|---|
| Copy link | Copies the published URL |
| Open link | Opens the published page in your browser |
| Re-publish | Re-uploads after edits (the link stays the same) — shown when the note has changed since it was last published |
| Export as ZIP | Saves a local copy |
| Stop sharing | Deletes the page from the cloud; the link stops working |
Once published, the popover also shows the page's view count, with an expandable detail view (visits trend, referrers, browsers, etc.).
Click the bar-chart icon in the left ribbon (or run "Open share stats page") to see every note you've ever published, its cumulative view count, and a link to open the note or its published page — even pages with zero views are listed.
Open Settings → Link Trace:
General
Export settings
Publish route — choose one cloud storage backend and fill in its credentials:
| Aliyun OSS | Tencent COS |
|---|---|
| Region, Bucket, Access Key ID/Secret, upload prefix, custom domain | Region, Bucket (with APPID), SecretId/SecretKey, upload prefix, custom domain |
Both require the bucket to allow public read access, and a custom domain configured so links open directly in the browser instead of triggering a download. A live preview of the resulting URL is shown as you fill these in.
Published pages embed a lightweight, cookieless view-count tracker via a self-hosted GoatCounter instance — it collects no personal data and sets no cookies. View counts surface in the share popover and the Share Stats page.
打开一篇笔记,点击状态栏的分享图标,你就能得到:
https://your-domain.com/notes/ab3),任何人用浏览器打开即可阅读,无需安装 Obsidian,并且能看到访问量。还可以把笔记直接链接到的其他笔记(以及再深一层的链接)一起打包,读者可以在小型「迷你 wiki」里点击跳转,而不只是一篇孤立的页面。
$ ... $ 与 $$ ... $$)imgs 代码块格式)点击状态栏的分享图标,选择 「导出为 ZIP」(命令面板中也能找到)。会生成一个 .zip 文件,内容如下:
笔记名/
├── index.html
├── style.css
└── images/
解压后用浏览器打开 index.html 即可 —— 样式、图片、公式等都已打包好,不需要任何服务器。
点击任意笔记状态栏的分享图标,打开面板:
| 操作 | 说明 |
|---|---|
| 复制链接 | 复制已发布的链接 |
| 打开链接 | 在浏览器中打开已发布页面 |
| 重新发布 | 笔记修改后重新上传(链接不变)—— 内容有变更时会提示 |
| 导出为 ZIP | 保存一份本地副本 |
| 停止分享 | 从云端删除页面,链接随即失效 |
发布后,面板还会显示该页面的访问量,点击可展开查看详细数据(访问趋势、来源等)。
点击左侧功能区的柱状图图标(或运行 「打开分享统计页」),可以看到你发布过的所有笔记及其累计访问量,并能一键打开笔记或对应的分享页面 —— 即使某个页面还没有访问量,也会被列出。
打开 设置 → Link Trace:
通用
导出设置
发布路线 —— 二选一,并填写对应凭证:
| 阿里云 OSS | 腾讯云 COS |
|---|---|
| Region、Bucket、Access Key ID/Secret、上传前缀、自定义域名 | Region、Bucket(含 APPID)、SecretId/SecretKey、上传前缀、自定义域名 |
两者都需要将存储桶设置为公共读,并配置自定义域名,否则打开链接会触发下载而不是在浏览器中打开。填写过程中会实时预览生成的链接效果。
已发布的页面会嵌入一个轻量、无 Cookie 的访问统计脚本,基于自建的 GoatCounter 实例 —— 不收集任何个人数据,不设置 Cookie。访问量会显示在分享面板和分享统计页中。
MIT