Would that be something the HN crowd would be interested in?
Would that be something the HN crowd would be interested in?
All of this is doable, of course. But it will be a tough sell.
That said, I'd say go for it. Worst case, nobody uses it and you just learn some of the difficulties of implementing. Hard to see that as a failure.
This really may be the 'just build it and see' sort of scenario.
I think that could absolutely kill it.
Imagine writing extensions in js or lua or whatever, and having those extensions have clear DOM-like access to the outline, have full access to their stdlib, have access to built in services like notifications, etc.
Imagine being able to programmatically access and manipulate the outline from wherever: webhook to add an outline node from IFTTT, twilio access your notes? etc. Yes you _could_ do that with Emacs, but IMHO it would take an incredible amount of work to not suck, partly because all the various pieces necessary feel like hacks on top of hacks.
Sort of how Atom and VSCode provide _much_ better interfaces (both code and UI) to your source code, and are starting to make honest inroads against the established players (like Emacs and Vim).
You can run Emacs headless, it has C extension support now, your Mac app could start it headless and communicate with it over a socket or as a network process. Multiple Emacs modes do this to make Emacs itself talk to other programs (e.g. mu4e <-> mu, gud <-> gdb), there's no reason you can't do it the other way around.