btrask / stronglink

A searchable, syncable, content-addressable notetaking system
Other
1.04k stars 39 forks source link

Plugin support for hash algorithms and HTML preview generators #25

Open btrask opened 9 years ago

btrask commented 9 years ago

Two separate plugin systems, per the title.

Creating a plugin should require very little code, with the absolute minimum amount of copy and paste between each plugin.

For hashers, this also ties into #15 because the plugin should be able to return a single buffer and StrongLink itself should handle the encoding and truncation.

Preview generators should be able to run in separate processes for sandboxing security. On the other hand, they shouldn't require separate processes (in general) because platforms like iOS don't support it.

We should probably have a generic plugin that lets the user call arbitrary scripts.