logoalt Hacker News

Show HN: Stash – Sync Markdown Files with Apple Notes via CLI

64 pointsby shukalast Tuesday at 4:57 PM20 commentsview on HN

Comments

shukalast Tuesday at 4:57 PM

I've used Apple Notes for years because it syncs fast and stays out of the way. But when I'm writing in the terminal, there's always been friction getting Markdown into Apple Notes.

Existing tools were either bloated or read-only. So I built Stash: push a Markdown file to Apple Notes, pull changes back. It uses YAML frontmatter to track which note belongs to which file.

Built with Bash, AppleScript, and Pandoc. No databases, no daemons, no config files. Install via Homebrew. Happy to take suggestions and answer questions about the quirks I ran into along the way.

show 4 replies
rcarmoyesterday at 7:53 AM

Nice idea, although I fear it will break due to AppleScript. I might take some time to investigate doing it all as a Swift CLI.

mcdowlast Tuesday at 6:44 PM

This is awesome! I’ve been looking for a way to batch export my notes out of Apple notes, will this work for that purpose?

I totally agree with you that most notes apps miss the mark. I’m working on one now which I hope satisfies the same requirements as Apple notes(dead simple, iCloud sync, free) but has some things I want (improved search, first class markdown support).

I’ve been using it as my daily driver for a while, but it’s not quite ready for other users yet. I wrote a bit about it in my year in review[1] under the section “Not Another Notes App!”.

1. https://emmettmcdow.com/posts/2025-in-review

show 1 reply
kboucklast Tuesday at 6:40 PM

on my iphone the readme ascii art title gets truncated to just "STASI" :-)

been looking for something like this! will definitely check it out.

preezerlast Tuesday at 9:36 PM

Maybe consider a name change. There is another very popular app with the same name which does some other stuff...

giancarlostorolast Tuesday at 7:35 PM

How is this different to Obsidian which has a nice UI, supports importing Apple Notes and iCloud Sync works and is free.

show 3 replies
ferfumarmalast Tuesday at 6:31 PM

I think the name is not unique enough

show 1 reply
dc_giantlast Tuesday at 6:52 PM

Awesome will try this for sure!

stogotlast Tuesday at 6:25 PM

I will have to try this.

Question: is there a way to make this automatic on state changes? I had an issue recently where a child accidentally overwrote my huge Apple notes and I couldn’t undo the change, or restore my history

I lost a lot of work