面向 Windows 与 Android 的本地优先、TextPack-First Markdown 笔记管理应用
A Local-First, TextPack-First Markdown Note-Taking App for Windows & Android
🇨🇳 中文说明 | 🇬🇧 English Guide | 📦 下载 / Releases
Aster Notes 是一款面向 Windows 与 Android 的本地优先、TextPack-First Markdown 笔记管理应用,基于 Tauri v2 + Rust 与原生前端构建。
相比传统将正文与图片附件分散存放的 Markdown 工具,Aster Notes 以自包含的单文件 .textpack(TextBundle v2 ZIP 容器)作为核心格式——单文件封装正文、图片与元数据。配合 Syncthing 等本地同步工具,无需配置图床即可在电脑与手机间实现零裂图、高可靠的跨端同步。
致谢与来源声明:本项目基于开源项目 sonicacd/tumblingcatmd 进行深度二次开发,本项目以 GPL-3.0 发布,上游原有部分保留 Apache-2.0 声明。
- 双端一致的本地仓库(Vault):Windows 端采用 Rust 原生文件系统与后台监听;Android 端基于 SAF(Storage Access Framework)实现持久化目录授权与原生目录树扫描,重启自动恢复上次打开的文档。
- 独立文档标题与自动保存:文档名称与正文
# 一级标题分离,实时双向同步文件名;编辑后 800ms 自动静默落盘,支持多页签栏、自定义右键菜单与浅色 / 深色 / 护眼三主题。 - 防断链跨文档内链与历史导航:为每篇
.textpack在info.json中写入永久noteId,通过aster://note/<id>实现跨笔记直跳,重命名或移动文件夹永不断链;工具栏内置前进 / 后退导航(Alt+←/Alt+→)。 - 仓库内
.trash回收站:软删除的笔记与文件夹统一移入仓库根目录.trash并记录原相对路径,支持跨端原位恢复、同名自动避让、单条彻底删除与一键清空。
- 毫秒级全局全文搜索(
Ctrl+K):前端基于IndexedDB维护增量索引,解析.textpack时仅读取info.json与text.md(完全跳过assets/图片),同时兼容检索.textpack与外部.md正文,支持多关键词分词、片段高亮与#标签检索。 - 纯净元数据管理:置顶(侧栏顶部可折叠「已置顶」分组)与多标签均写入
info.json,不向正文插入 YAML Frontmatter;侧栏支持按名称(A-Z / Z-A)与修改时间(最新 / 最早)四态排序。 - 孤儿图片自动清理:保存
.textpack时自动剔除已从正文删除的冗余图片,防止体积膨胀;当前会话保留内存撤回缓冲,按Ctrl+Z不裂图。 - Obsidian 平滑迁移工具:支持单篇、按文件夹或全仓库批量将旧
.md转为.textpack,兼容标准 Markdown 图片、Obsidian![[图片.png]]及同级附件/目录查找;保留原外部图片不删,旧.md安全移入.trash。
- Syncthing 外部修改热重载与冲突保护:基于内容双哈希指纹精准识别外部同步变更;本地无未保存改动时静默原位刷新并保留滚动位置,存在本地编辑时暂停自动保存并弹出冲突保护条(支持加载外部版本、覆盖保存或另存冲突副本)。
- 正文图片全屏灯箱:点击图片全屏预览,支持光标中心滚轮缩放、拖拽平移、旋转 90°、
1:1原始像素查看、多图切换、一键复制,以及 Android 双指捏合缩放。 - 收集箱速记(
Ctrl+Shift+N):随时唤起轻量速记窗(支持文字与直接Ctrl+V贴图,Ctrl+Enter秒存),自动带时间戳追加至仓库根目录收集箱.textpack;手机端提供右下角⚡单手速记按钮。 - 快捷媒体上传、附件直开与高保真导出:工具栏内置插入图片(打包进
.textpack)与上传附件(存入同级附件/目录)按钮;点击 PDF、DOCX、XLSX、ZIP 等本地附件链接(兼容![[文件.pdf]])直接调用系统默认程序打开;支持所见即所得 / 源码 / 阅读三视图、大文档流畅模式、全文长图导出与带图高保真 PDF。
前往 GitHub Releases 获取最新预编译版本:
- Windows:单文件便携版
.exe(Windows 10/11 x64,双击即用,无需安装)。 - Android:已签名正式版
.apk(Android 10+ arm64-v8a / aarch64)。
| 快捷键 | 功能 |
|---|---|
Ctrl + K |
全局全文搜索与快速跳转 |
Ctrl + Shift + N |
打开收集箱速记(弹窗内 Ctrl + Enter 写入) |
Ctrl + N |
在当前仓库新建 .textpack 笔记 |
Ctrl + S / Ctrl + Shift + S |
手动保存 / 另存为 |
Ctrl + F / Ctrl + G |
当前文档查找替换 / 跳转到行 |
Alt + ← / Alt + → |
浏览历史后退 / 前进 |
Ctrl + 1 / 2 / 3 |
切换所见即所得 / 源码 / 阅读模式 |
- 在电脑与手机的 Syncthing 中共享同一个本地笔记目录。
- 在 Windows 与 Android 版 Aster Notes 左侧栏点击
📂选择该目录即可。 - 仓库内
.trash隐藏目录默认随仓库同步,方便跨端找回误删笔记;如不希望同步回收站,在仓库根目录.stignore中添加一行.trash即可。
- Node.js 18+
- Rust(stable 工具链)与 Visual Studio C++ Build Tools(Windows)
- Android SDK / NDK 与
aarch64-linux-androidRust 目标(仅构建 Android APK 时需要)
# 安装依赖并启动桌面端开发调试
npm install
npm run dev
# 打包 Windows 便携单文件 EXE(输出位于 src-tauri/target/release/AsterNotes.exe)
npm run dist:win
# 打包 Android Release APK(aarch64)
rustup target add aarch64-linux-android
npm run dist:androidAndroid 正式版签名私钥(
*.keystore)与配置(keystore.properties)已加入.gitignore,请自行使用keytool与apksigner在本地生成并完成签名,切勿将私钥提交至公开仓库。
本项目以 GPL-3.0 发布,上游原有部分保留 Apache-2.0 声明。
Aster Notes is a local-first, TextPack-first Markdown note-taking application for Windows and Android, built with Tauri v2, Rust, and vanilla web technologies.
Rather than scattering Markdown files and image folders across your filesystem, Aster Notes uses the self-contained .textpack format (TextBundle v2 ZIP container) as its primary note format—bundling text, images, and metadata into a single file. Paired with local sync tools like Syncthing, it enables reliable cross-device synchronization between desktop and mobile with zero image hosting and zero broken images.
Acknowledgements: Aster Notes is deeply evolved from the open-source project sonicacd/tumblingcatmd and retains full compliance with the root
LICENSE.
- Native Dual-Platform Storage: Powered by native Rust filesystem APIs with background watching on Windows, and Android SAF (Storage Access Framework) with persistent folder permissions on mobile. Automatically restores your last opened note on launch.
- Decoupled Titles & Auto-Save: Inline document titles stay in two-way sync with filenames without interfering with
# H1body headings; 800ms silent auto-save; multi-tab bar; custom context menus; and Light / Dark / Eye-Care themes. - Link-Rot-Proof Internal Links & History: Assigns a permanent
noteIdin each.textpack'sinfo.jsonforaster://note/<id>cross-note links that survive renames and folder moves, paired with toolbar Back / Forward navigation (Alt+←/Alt+→). - In-Vault
.trashRecycle Bin: Soft-deleted notes and folders are moved to a hidden.trashdirectory at the vault root with original relative paths recorded—supporting cross-device restore, conflict avoidance, single-item permanent delete, and empty trash.
- Millisecond Global Search (
Ctrl+K): Client-side incremental indexing backed byIndexedDB. Reads onlyinfo.jsonandtext.mdinside.textpackfiles (skippingassets/images) while indexing legacy.mdfiles as well. Supports multi-term queries, highlighted snippets, and#tagfiltering. - Zero-Clutter Metadata: Note pinning (collapsible Pinned group at the top of the sidebar) and multi-tag management are stored in
info.json—no YAML frontmatter in your Markdown. Includes 4-way sidebar sorting by name (A–Z / Z–A) and modified time. - Automatic Orphan Image Cleanup: Prunes unreferenced images from
assets/on save to keep files lean, while keeping an in-memory session buffer soCtrl+Zundo never breaks images. - Smooth Obsidian Migration: Convert a single
.mdnote, a folder, or an entire vault to.textpack. Resolves standard Markdown images, Obsidian![[image.png]]links, and sibling attachment folders (attachments/,附件/). Preserves original images and moves converted.mdfiles safely into.trash.
- Syncthing Hot-Reload & Conflict Protection: Uses dual-hash content fingerprinting to detect external disk changes. Silently refreshes in place (preserving scroll position) when clean, or pauses auto-save with a conflict protection bar when local edits exist (reload external, overwrite, or save conflict copy).
- Full-Screen Image Lightbox: Click any image for full-screen preview with cursor-centered wheel zoom, click-and-drag panning, 90° rotation,
1:1actual pixels, gallery switching, clipboard copy, and Android pinch-to-zoom. - Quick Capture Inbox (
Ctrl+Shift+N): Summon a lightweight capture modal from anywhere (supports text andCtrl+Vscreenshot pasting;Ctrl+Enterto save) to append timestamped entries to收集箱.textpackat the vault root. Mobile includes a floating⚡button. - Toolbar Media Upload, Native Attachments & Export: Dedicated toolbar buttons for inserting images (bundled in
.textpack) and uploading attachments (saved to sibling附件/folder). Click local PDF, DOCX, XLSX, ZIP links (including![[file.pdf]]) to open them in the system default app. Includes WYSIWYG / Source / Reader modes, large-document mode, full-page image export, and high-fidelity PDF export.
Download prebuilt binaries from GitHub Releases:
- Windows: Portable single-file
.exe(Windows 10/11 x64, no installer required). - Android: Signed release
.apk(Android 10+ arm64-v8a / aarch64).
| Shortcut | Action |
|---|---|
Ctrl + K |
Global full-text search & quick switcher |
Ctrl + Shift + N |
Quick Capture Inbox (Ctrl + Enter inside modal to save) |
Ctrl + N |
Create a new .textpack note in the current vault |
Ctrl + S / Ctrl + Shift + S |
Save / Save As |
Ctrl + F / Ctrl + G |
Find & Replace / Go to Line |
Alt + ← / Alt + → |
Navigate Back / Forward in history |
Ctrl + 1 / 2 / 3 |
Switch between WYSIWYG / Source / Reader modes |
- Share your local notes folder between desktop and mobile via Syncthing.
- Open the same folder in both Windows and Android Aster Notes via
📂in the sidebar. - The hidden
.trashdirectory syncs by default for cross-device recovery; add.trashto a.stignorefile at your vault root if you prefer to keep trash local.
- Node.js 18+
- Rust (stable toolchain) & Visual Studio C++ Build Tools (Windows)
- Android SDK / NDK &
aarch64-linux-androidRust target (for Android builds only)
# Install dependencies & run desktop dev mode
npm install
npm run dev
# Build portable Windows EXE (output: src-tauri/target/release/AsterNotes.exe)
npm run dist:win
# Build Android Release APK (aarch64)
rustup target add aarch64-linux-android
npm run dist:androidAndroid signing keystores (
*.keystore) andkeystore.propertiesare excluded by.gitignore. Generate and sign locally withkeytoolandapksigner, and never commit private keys to a public repository.
This project is licensed under the GPL-3.0 license, while the original upstream portions retain their Apache-2.0 license notice.