Honor Cloud Notes Sync
unlistedby chenxian24
通过荣耀云(cloud.honor.com)将手机笔记同步到 Obsidian:扫码登录、缓存登录状态、手动同步。
obsidian-honor-cloud-notes
荣耀云笔记 → Obsidian 同步插件:把荣耀手机上同步到荣耀云(cloud.honor.com)的笔记,一键拉取到 Obsidian 仓库,转为 Markdown 保存。
An unofficial, read-only Obsidian plugin that syncs your notes in HONOR Cloud (荣耀云, cloud.honor.com) into your vault as Markdown — QR-code login, cached session, manual one-click sync. For learning & research purposes only.
English
Sync the notes you keep in HONOR Cloud (the notepad synced from HONOR phones) into any Obsidian vault as Markdown — with folder structure, frontmatter, and attachments (images / audio / PDF) downloaded locally. Useful for backing up your notes, migrating away from the HONOR ecosystem, or bringing phone notes into your knowledge base.
Features
- QR-code login — scan with your HONOR phone (Settings › HONOR ID › Account center › Scan). No account/password is ever typed into the plugin.
- Locally cached session — stored in the plugin's
data.json; re-login only when it expires. - Manual, one-way sync — triggered from the ribbon icon or command palette. Strictly read-only: the plugin never writes to, or deletes anything from, the cloud.
- Incremental — only fetches notes changed since last sync; follows renames.
- Format conversion — paragraphs, checklists, ordered/unordered lists, tables, images, web clippings, audio, bold/italic/highlight/strikethrough, links → Markdown; YAML frontmatter (created/modified time, source folder, favorite, pinned).
Install
Manual (no build needed): download the latest release, unzip, and put main.js, manifest.json, styles.css into <your vault>/.obsidian/plugins/honor-cloud-notes/, then enable the plugin in Settings › Community plugins.
BRAT: add chenxian24/obsidian-honor-cloud-notes in BRAT.
From source: npm install && npm run build.
Usage
- Settings › Honor Cloud Notes Sync → Login with QR code, scan and confirm on your phone.
- Click the cloud ribbon icon (or run the command "Sync Honor Cloud notes").
- Notes land in the "荣耀云笔记" folder (configurable); later syncs are incremental.
Desktop-only note
isDesktopOnly: true — the login chain requires Node's https stack for manual redirect and cookie control, which Obsidian mobile does not expose.
Privacy & network usage
- The plugin only connects to HONOR-owned domains (
cloud.honor.com,*.cloud.hihonor.com) and only when you trigger login or sync. No telemetry, no third-party services. - Session credentials are stored locally in the plugin's
data.jsonand are only ever sent to Honor's own endpoints. Do not share that file.
Disclaimer
This is an unofficial hobby project for personal learning, research and data backup. It is not affiliated with HONOR; "HONOR"/"荣耀" trademarks belong to Honor Device Co., Ltd. It works by calling the same web endpoints the cloud.honor.com Notepad web app uses in a browser — these are not public APIs and may change at any time, breaking the plugin. Use at your own risk; not for commercial use.
中文说明
为什么需要它
荣耀笔记(手机备忘录)只提供网页版和官方客户端查看云笔记,无法导出为通用格式。本插件让你能:
- 把荣耀云笔记定期备份/归档到 Obsidian,纳入你自己的知识库
- 用 Markdown 生态(搜索、链接、Git 版本管理、发布)处理手机上随手记的内容
- 迁移设备/退出荣耀生态时导出全部笔记
功能特性
- 📱 扫码登录:用荣耀手机「设置 › 荣耀账号 › 账号中心 › 扫一扫」扫码即可,无需向插件输入账号密码
- 🔐 登录态本地缓存:会话保存在插件数据(
data.json)中,重启 Obsidian 免重复登录;失效时状态栏提示 - ☁️ 手动同步:点击侧边栏图标或命令面板「同步荣耀云笔记」触发;只读拉取,不回写、不删除云端数据
- ⚡ 增量更新:仅拉取云端有变动的笔记;笔记改名会自动跟随
- 🖼️ 附件下载:图片、录音、PDF 等附件落到本地文件夹,正文引用自动指向本地文件
- 📝 格式转换:段落 / 待办清单 / 有序无序列表 / 表格 / 图片 / 网页剪藏 / 录音 / 加粗斜体高亮删除线 / 链接 → Markdown;每条笔记附 frontmatter(创建/修改时间、原文件夹、收藏、置顶)
- 🗂️ 文件夹结构保留:云端文件夹层级映射为本地文件夹
- 🖥️ 仅桌面版(登录链路需要 Node 网络栈做重定向与 Cookie 控制,移动端暂不支持)
安装
方式一:手动安装(无需 Node.js)
- 下载 最新 Release(Code › Download ZIP 或 Release 压缩包)
- 把
main.js、manifest.json、styles.css放入<你的仓库>/.obsidian/plugins/honor-cloud-notes/(文件夹自己新建) - 重启 Obsidian → 设置 › 第三方插件 → 启用 Honor Cloud Notes Sync
方式二:BRAT(推荐,便于更新)
- 安装 BRAT 插件
- BRAT 设置 → Add Repo → 填入
chenxian24/obsidian-honor-cloud-notes
方式三:源码构建
git clone https://github.com/chenxian24/obsidian-honor-cloud-notes.git
cd obsidian-honor-cloud-notes
npm install
npm run build # 产出 main.js
使用
- 设置 › 荣耀云笔记同步 → 扫码登录,手机扫码并在手机上点确认
- 点侧边栏云朵图标(或命令「同步荣耀云笔记」)
- 首次同步全量拉取到「荣耀云笔记」文件夹(可在设置中改),之后增量更新
| 命令 | 说明 |
|---|---|
| 同步荣耀云笔记 | 手动触发一次同步 |
| 扫码登录荣耀账号 | 登录 / 更换账号 |
| 退出荣耀账号登录 | 清除本地缓存的登录态 |
同步规则:云端删除的笔记不会删除本地文件(保守策略);正文为空的手写笔记回退导出摘要与附件;录音标记/AI 元数据等 JSON 类附件不导出。
隐私与网络行为
- 插件仅在你主动触发登录/同步时访问荣耀自有域名(
cloud.honor.com、*.cloud.hihonor.com),无任何遥测或第三方服务 - 登录凭据仅保存在本地
data.json,只发往荣耀官方端点;请勿把该文件分享给他人
工作原理(简述)
插件以浏览器用户身份使用荣耀云网页版(cloud.honor.com/portal/notepad)的同一组网页接口:扫码登录换取会话后,调用其只读接口获取文件夹、笔记列表、笔记详情(HTML 正文)与附件,转换为 Markdown 写入仓库。
插件所用接口的完整技术说明见 docs/api.md,便于贡献者在接口变更时排查与适配。
常见问题
- 提示登录态失效? 荣耀会话有有效期,重新扫码即可(数据不受影响)。
- 同步失败/接口报错? 非官方接口,荣耀服务端改版可能导致失效。开 Ctrl+Shift+I 查看控制台报错,欢迎提 Issue。
- 会上传/修改我的笔记吗? 不会。插件只调用只读接口,没有任何写入云端的调用;本地也默认不删除文件。
- 安全吗? 凭据只存在本仓库插件目录的
data.json,除荣耀官方域名外无任何网络请求。 - 支持 Obsidian 移动端吗? 暂不支持(
isDesktopOnly: true,登录链路需要 Node 网络栈)。
⚠️ 免责声明
- 本项目为个人学习与技术研究的非官方作品,与荣耀(Honor)公司无任何关联;"HONOR"“荣耀”及相关商标、产品、服务归荣耀公司所有。
- 项目仅以浏览器用户身份调用荣耀云网页版自身的网页接口,未使用任何官方 SDK、官方代码或泄露数据;接口非官方开放 API,荣耀随时可能变更导致功能失效。
- 仅供个人学习、研究、备份本人数据之用,请勿用于任何商业用途;请遵守荣耀用户协议与当地法律,不要用于批量抓取他人数据等用途。
- 使用本项目产生的任何后果(包括数据丢失、账号风险)由使用者自行承担,作者不作任何担保。
License
MIT © chenxian24
关键词:Obsidian 插件 · 荣耀云 · 荣耀笔记 · 备忘录同步 · Honor Cloud Notes · notepad sync · Markdown 导出 · 笔记备份 · Honor YOYO 记
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.