tw93/MiaoYan

⛷ A quiet, distraction-free writing app to help you write great sentences.

Swift

8,670

1,665 commits

updated Oct 11, 2026

See the code

README

MiaoYan

A native Mac app for local Markdown notes

English · 中文 · 繁體 · 日本語 · 한국어 · Deutsch · Français

Twitter Follow Telegram GitHub Downloads GitHub Commit Activity GitHub Closed Issues macOS 12.0+

Features

  • Local-first: Notes are Markdown files in a folder you choose, with no data collection, and iCloud Drive or Nutstore can sync them across devices
  • Focused: Folders, notes, and editor in three columns, with dark mode and no plugin system to maintain
  • Native: Built with Swift 6, lighter than web wrappers, with 60fps scroll sync in split preview
  • Capable: Wikilinks, LaTeX, Mermaid, version history, auto-formatting, and PPT presentations built in

Installation

  1. Mac App Store (paid, automatic updates, includes the iPhone and iPad app):

    Download on the Mac App Store

  2. Homebrew:

    brew install --cask miaoyan
    
  3. GitHub Releases: download the latest DMG from GitHub Releases (macOS 12.0+)

Homebrew and GitHub Releases install this open-source app, which now receives fixes only. The App Store edition is developed separately and is where new features land.

Sync with Nutstore or Other Cloud Drives

MiaoYan does not sign in to WebDAV or cloud-drive accounts and only reads and writes the Markdown folder you choose. After installing, create a MiaoYan folder in iCloud Drive, the local folder synced by the Nutstore desktop client, or any other location, then open Preferences (⌘,) and set it as the storage path. iCloud Drive, Nutstore, Dropbox, or another cloud-drive client handles cross-device sync.

  • iPhone: Pick the same cloud-drive folder in the system Files app, and if a provider does not offer a writable folder there, use iCloud Drive or make the folder available offline in that provider app first
  • Folder check: MiaoYan verifies read and write access before switching folders and keeps the current storage path if the folder is unavailable, without reporting the problem as a MiaoYan sync failure

CLI

# Install
curl -fsSL https://raw.githubusercontent.com/tw93/MiaoYan/main/scripts/install.sh | bash

# Usage
miao open <title|path>    # Open note or folder
miao new <title> [text]   # Create new note
miao search <query>       # Search notes in terminal
miao list [folder]        # List top-level folders, or markdown in folder
miao cat <title|path>     # Print note content
miao update               # Update CLI

Split Editor & Preview Mode

Edit and preview sit side by side. Press ⌘\ to toggle split mode, or open Preferences, go to General, and set Editor Mode to Split Mode. Why not WYSIWYG like Typora? Pure Markdown editing is the whole point. Native WYSIWYG in Swift is heavy and fragile; split mode keeps writing focused while giving you instant, synchronized visual feedback.

Split Editor & Preview Mode

Documentation

Install the official skill with npx skills add tw93/MiaoYan/skills/miaoyan -g.

Support

  • The most direct way to support me is getting Mole for Mac, my paid Mac cleanup app
  • If MiaoYan helped you, give it a star, share it, or open an issue or PR
  • I have two cats, TangYuan and Coke. If MiaoYan brings you joy, you can feed them canned food 🥩
These lovely people already did 🐱

Acknowledgments

License

MIT License

editor
local-first
macos
markdown
markdown-editor
notes-app
swift

tw93/MiaoYan

⛷ A quiet, distraction-free writing app to help you write great sentences.

Swift

8,670

1,665 commits

updated Oct 11, 2026

See the code

README

MiaoYan

A native Mac app for local Markdown notes

English · 中文 · 繁體 · 日本語 · 한국어 · Deutsch · Français

Twitter Follow Telegram GitHub Downloads GitHub Commit Activity GitHub Closed Issues macOS 12.0+

Features

  • Local-first: Notes are Markdown files in a folder you choose, with no data collection, and iCloud Drive or Nutstore can sync them across devices
  • Focused: Folders, notes, and editor in three columns, with dark mode and no plugin system to maintain
  • Native: Built with Swift 6, lighter than web wrappers, with 60fps scroll sync in split preview
  • Capable: Wikilinks, LaTeX, Mermaid, version history, auto-formatting, and PPT presentations built in

Installation

  1. Mac App Store (paid, automatic updates, includes the iPhone and iPad app):

    Download on the Mac App Store

  2. Homebrew:

    brew install --cask miaoyan
    
  3. GitHub Releases: download the latest DMG from GitHub Releases (macOS 12.0+)

Homebrew and GitHub Releases install this open-source app, which now receives fixes only. The App Store edition is developed separately and is where new features land.

Sync with Nutstore or Other Cloud Drives

MiaoYan does not sign in to WebDAV or cloud-drive accounts and only reads and writes the Markdown folder you choose. After installing, create a MiaoYan folder in iCloud Drive, the local folder synced by the Nutstore desktop client, or any other location, then open Preferences (⌘,) and set it as the storage path. iCloud Drive, Nutstore, Dropbox, or another cloud-drive client handles cross-device sync.

  • iPhone: Pick the same cloud-drive folder in the system Files app, and if a provider does not offer a writable folder there, use iCloud Drive or make the folder available offline in that provider app first
  • Folder check: MiaoYan verifies read and write access before switching folders and keeps the current storage path if the folder is unavailable, without reporting the problem as a MiaoYan sync failure

CLI

# Install
curl -fsSL https://raw.githubusercontent.com/tw93/MiaoYan/main/scripts/install.sh | bash

# Usage
miao open <title|path>    # Open note or folder
miao new <title> [text]   # Create new note
miao search <query>       # Search notes in terminal
miao list [folder]        # List top-level folders, or markdown in folder
miao cat <title|path>     # Print note content
miao update               # Update CLI

Split Editor & Preview Mode

Edit and preview sit side by side. Press ⌘\ to toggle split mode, or open Preferences, go to General, and set Editor Mode to Split Mode. Why not WYSIWYG like Typora? Pure Markdown editing is the whole point. Native WYSIWYG in Swift is heavy and fragile; split mode keeps writing focused while giving you instant, synchronized visual feedback.

Split Editor & Preview Mode

Documentation

Install the official skill with npx skills add tw93/MiaoYan/skills/miaoyan -g.

Support

  • The most direct way to support me is getting Mole for Mac, my paid Mac cleanup app
  • If MiaoYan helped you, give it a star, share it, or open an issue or PR
  • I have two cats, TangYuan and Coke. If MiaoYan brings you joy, you can feed them canned food 🥩
These lovely people already did 🐱

Acknowledgments

License

MIT License

editor
local-first
macos
markdown
markdown-editor
notes-app
swift

Project health

Latest release

1.0.0 · Sep 17, 2022

Releases this year

0

Significant stargazers

(top 24 of 38)

小弟调调

9,435 followers · starred Aug 2022

Sridhar Ratnakumar

1,019 followers · starred Feb 2026

hahwul

3,047 followers · starred Apr 2026

Ryan Cao

141 followers · starred Jan 2026