r/Supernote_dev • • Apr 12 '26

Missing Entrypoints for Plugin Code?

Disclaimer: I haven't gotten to actually play with the code yet, but from reading the docs it seems like Plugins have three main ways of running their logic/UI:

  • Button in sidebar
  • Button after lasso
  • Button after text selection (docs only)

I was wondering if I'm missing something because notably absent are hooks that allow a plugin to run whenever the user interacts with the page naturally. So building plugins like

  • scribble to erase
  • auto snap shapes
  • any other gestures

doesn't seem to be possible. If that is true, what is the reason for this omission? I could see a privacy problem if users don't have to trigger plugin execution manually, but I feel like that could be solved with an explicit permission dialog (like when a browser extension needs access to all of the pages you visit).

I'm excited to build some plugins, but I feel like some more hooks/entrypoints would give us soo much more freedom!

6 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/Dunn-sn Official Apr 14 '26

Thank you for your feedback. As calebc42-official mentioned, in addition to button-based entry points, we currently also support the pen-up event listener. Support for touch-related event listeners is also under development, and we will keep everyone updated once it is ready.

If you have any more ideas for other event listeners or plugin entry points, please feel free to let us know.