Skip to content

About

Miaomiao Notes — a cute, local-first Markdown notes app for macOS, synced through iCloud Drive. 喵喵笔记:一只喵喵的本地 Markdown 笔记应用,通过 iCloud Drive 同步。

Topics

Resources

Stars

422 stars

Watchers

16 watching

Forks

Repository files navigation

Miaomiao Notes

喵喵笔记 · Miaomiao Notes

一只喵喵的本地 Markdown 笔记应用
A cute, local-first Markdown notes app for macOS

Download macOS 12+ iCloud Drive AGPL-3.0-only

🇨🇳 中文 · 📊 Usage


喵喵笔记界面

Miaomiao Notes interface dark theme

Why another notes app?

Because your notes should be files, not someone else's database.

  • Three-column layout borrowed from Apple Notes: folders → notes → content
  • Every note is a plain .md file inside iCloud Drive, so it syncs across your Macs for free
  • No account, no server, no subscription — completely free, no sign-up
  • A deliberately small, warm UI — one carefully made theme instead of twenty mediocre ones

Features

Area What you get
Layout Folder column, note column, editor — native macOS chrome; position, size, zoom and fullscreen are remembered across relaunches
Editing CodeMirror 6, Markdown syntax highlighting, colored code blocks / inline code / list markers, one-click line wrapping for every code block in the preview, live preview (⌘E), five macOS body fonts (PingFang, Songti, Kaiti, Yuanti, Hiragino)
Formatting Hand-drawn Paragraph and Format menus: headings, paragraphs, quotes, ordered / bullet / task lists, tables, code and math blocks, rules, table of contents, YAML front matter, bold / italic / strikethrough / inline code / math / links / footnotes. Selection applies to lines, no selection applies to the current line, and every toggle can be undone in one step
Storage Plain .md files; iCloud Drive when available, otherwise ~/Documents
Sync macOS iCloud Drive, no extra service
Safety Atomic writes, .trash soft delete, iCloud conflict detection
Interface Chinese / English and light / dark, with two one-click icon buttons in the editor header; settings take effect instantly and save themselves
Updates Manual check in Settings, plus one silent check a day; a newer dmg downloads into Downloads and is sha256-verified before install

Requirements

  • macOS 12 or later (Apple Silicon or Intel)
  • iCloud Drive is optional — without it the library lives in ~/Documents/MiaomiaoNotes

Install

Download the latest build from notes.wordtk.com, open the dmg and drag the app into Applications.

The build uses a one-time self-signed identity, not an Apple Developer certificate and not notarised, so the first launch may need a right click → Open. The identity stays the same across releases, so macOS permission grants survive app updates.

Development

npm install
npm run dev            # Vite + Electron with hot reload
npm run start          # build once, then launch Electron
npm run sign:identity  # once per build machine: create/import the stable signing identity
npm run dist           # package arm64 + x64; falls back to ad-hoc when the identity is missing
npm run dist:release   # release build: fails instead of falling back to ad-hoc
npm run clean          # keep only the current version in release/

macOS builds are signed in after-pack: the stable self-signed identity is preferred, ad-hoc is only a fallback for machines without it. The private key lives outside the repository in ~/.config/miaomiao-notes-signing/; back it up, because losing it means a new code identity and one more round of permission grants.

The public origin lives in exactly one file: site/site.config.json (siteUrl). It is committed on purpose — a public origin is an identifier, not a secret — so a clone builds the real site and app with no setup. Everything that needs the domain reads that one value: canonical links, Open Graph URLs, the sitemap, robots.txt, and the origin baked into the app bundle for Check for updates.

Forks override it without touching files by setting SITE_URL in the environment (or in a local, git-ignored .env):

SITE_URL=https://your-site.example npm run dist
CONTACT_EMAIL=you@example.com   # optional: mail entry in the developer panel, hidden when unset

npm run dist refuses to build when no origin is known, so a release can never ship a dead update checker.

The check itself uses a 15s timeout plus one retry and pins the DNS result order to ipv4first: on slow dual-stack networks an AAAA record is often a blackhole — Chromium falls back to IPv4 via Happy Eyeballs while Node's fetch waits for the timeout, which reads as "the browser opens the site, the app cannot check". A failure now also says why (no site configured / network unreachable / server error) instead of one generic sentence.

When a newer version exists the app does not open a browser: it fetches the dmg from the same origin in parallel HTTP ranges, verifies the manifest's size and sha256, and only then moves it into the Downloads folder. The update card reports progress, and installing (mounting the dmg) is still the user's click.

Where notes live

~/Library/Mobile Documents/com~apple~CloudDocs/MiaomiaoNotes/   # iCloud available
~/Documents/MiaomiaoNotes/                                      # fallback

The path is resolved once on first launch and stored in Settings, so signing into iCloud later never moves your library. You can change it at any time under Settings → Storage, which switches the pointer without moving or deleting files.

iCloud conflicts

iCloud sync is eventually consistent. If the same note is edited on two Macs before syncing, iCloud creates a copy like 笔记 2.md. Miaomiao Notes:

  • detects those copies before and after each write
  • shows a warning banner in the editor
  • never merges automatically — silent merging loses data more often than it saves it

Privacy

  • The app sends one anonymous launch signal (a random device id) and nothing else
  • No IP, no user agent, no hardware details are stored
  • The toggle lives in Settings → Behaviour → Anonymous usage
  • The website has no analytics, no ads, no cookies and no third-party requests

Architecture

electron/       Main process: window, vault paths, file IO, native menu, IPC
src/            Renderer: three-column UI, CodeMirror editor, Markdown preview
src/styles/     Design tokens and theme (a new theme is one [data-theme] block)
build/          App icon sources (PNG + generated icns)
site/           Official site: Cloudflare Worker plus static assets

The renderer never touches the filesystem directly — everything goes through a narrow contextBridge surface with contextIsolation and sandbox enabled.

License

Dual-licensed:

  • Open source — AGPL-3.0-only. Free to use, modify and self-host. If you distribute a modified version, or expose it as a network service, the AGPL requires you to publish the corresponding source as well.
  • Commercial — if AGPL does not fit your product (for example, you want to ship a closed-source derivative), a commercial license is available. Contact hello@wordtk.com.

The name "喵喵笔记 / Miaomiao Notes" and the cat icon are not covered by the open-source grant.

About

Miaomiao Notes — a cute, local-first Markdown notes app for macOS, synced through iCloud Drive. 喵喵笔记:一只喵喵的本地 Markdown 笔记应用,通过 iCloud Drive 同步。

Topics

Resources

Stars

422 stars

Watchers

16 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages