If your application is in Electron or has access to Web APIs you can use the Web Share API to share text to the native Share Cards interface and then to Notes (or any app that can Share Cards)
You can find a demo here:
https://codepen.io/ThatGuySam/pen/NWaevbg
Topic:
UI Frameworks
SubTopic:
AppKit
Tags: