by qiujv
Preview private flomo memo links without changing your notes.
flomo Link Preview
Preview private flomo MEMO links in Obsidian Reading view and Live Preview without changing your Markdown. Requires Obsidian 1.11.4 or later and flomo PRO or MAX for the official MCP service. The interface is currently in Chinese.
Installation
In Obsidian, open Settings → Community plugins → Browse, search for flomo Link Preview, then install and enable it when it is available in the community directory.
For manual installation, download main.js, manifest.json, and styles.css from a GitHub release and place them in <vault>/.obsidian/plugins/flomo-link-preview/. Reload Obsidian, then enable the plugin under Community plugins.
Setup and usage
- A flomo PRO or MAX account is required for the official MCP service. In flomo, open Settings → MCP / API → MCP → Add other apps → Token connection and create a dedicated personal token. See the flomo token guide.
- In the plugin settings, create or select the token using Obsidian Secret Storage. The plugin calls only the
memo_batch_gettool, although the flomo connection may also grant write permissions. - Paste a flomo Copy MEMO link into a note. The preview appears in Reading view and Live Preview; use the original link to open the memo. Source mode shows the original Markdown.
The plugin stores cached memo content and tags in plaintext in its plugin data file, which may be backed up or synced with the vault. It sends memo IDs to https://flomoapp.com/mcp. Clear the cache in settings when switching accounts under the same secret name. You can revoke the token in flomo. The interface is currently in Chinese.
在 Obsidian 中粘贴 flomo「复制 MEMO 链接」,即可预览笔记正文,并通过原始链接跳转到 flomo。插件保留 Markdown 原文,不创建额外笔记文件,已缓存的内容在离线时仍可查看。
安装
Obsidian 社区插件目录
可在 Obsidian「设置 → 第三方插件 → 浏览」中搜索 flomo Link Preview;插件在社区目录可用后即可安装并启用。
手动安装
从 GitHub Release 下载 main.js、manifest.json 和 styles.css,也可按下方开发说明从源码构建。将三个文件放入保险库中的以下目录:
.obsidian/plugins/flomo-link-preview/
├── main.js
├── manifest.json
└── styles.css
重新加载 Obsidian,然后在「设置 → 第三方插件」中启用 flomo Link Preview。
授权与使用
- 使用 flomo PRO 或 MAX 账号登录 flomo 网页版,进入「设置 → MCP / API → MCP → 添加其他应用 → Token 连接」,为此插件创建专用个人 Token。参见 flomo 官方 Token 指南。
- 在 Obsidian 的插件设置中,通过密钥组件创建或选择该 Token。插件只保存密钥名称,实际值由 Obsidian Secret Storage 管理。
- 粘贴 flomo 的 MEMO 链接。阅读模式和 Live Preview 中会出现卡片;Live Preview 中光标位于链接所在行时,可编辑原始 Markdown。源码模式不显示卡片。
官方 MCP 连接可能具有写入权限;本插件仅调用 memo_batch_get 读取笔记。OAuth 尚未实现。不再使用时,可在 flomo 的 MCP 设置中注销专用 Token。
flomo-bridge 是另一个侧重将 flomo 笔记同步为 Obsidian 文件的项目,其文档介绍了从 flomo 网页请求中获取登录 Token 的方法。这个网页登录 Token 与本插件使用的官方 MCP 个人 Token 不是同一种凭证,不能作为本插件的配置方法。 flomo-bridge 的免费账号适用性未由本项目验证;本插件当前仍需要 flomo PRO 或 MAX。
当前卡片以纯文本显示正文中的 Markdown,暂不显示附件。
缓存和隐私
成功读取的正文及标签以明文保存在插件的 data.json 中,可能被备份或保险库同步。默认 24 小时后重新读取;请求失败时保留并显示过期缓存。设置中可清除缓存。切换密钥名称时自动清除;如果在同一个密钥名称下替换为另一个账号的 Token,请手动清除缓存。清除缓存不撤销 Token。
只会将识别出的 memo ID 发送至 https://flomoapp.com/mcp,不会发送完整 Obsidian 笔记。远端正文按纯文本显示,不执行 HTML。首次加载或缓存过期时需要网络和有效 Token。
开发
使用 Node.js 22 或更新版本:
npm ci
npm run check
npm test
npm run build
npm run check:release
构建后的 main.js 可用于上述手动安装。安装 just 后,可运行 just deploy 构建并复制插件文件到 ~/dev/notes 保险库;也可运行 just deploy /path/to/vault 指定其他保险库。首次运行会在缺少构建工具时自动执行 npm ci 安装依赖。此操作保留插件目录中的 data.json。复制后在 Obsidian 中重新加载插件或应用。
使用 just version patch、just version minor、just version major 或 just version 1.2.3 同步更新四个版本文件;命令不会创建提交、标签或 Release。
发布准备及尚需的手动验证见 RELEASE.md。
许可证
本项目采用 MIT License。
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.