# simple plugins strictly for ap inbox, passed ApObject always # or... complex PluginService.registerHook(id: string, data?: PluginData) PluginService.registerPlugin(id: string, hook: string, returns: boolean) plugins should expect everything to be null, like inbox processors if returns, local var changes by output of plugin hook locations: - ApInboxService, data ApObject - NoteService.create - UserService.register - NotificationService.create - somewhere to include some for router - boot & start plugins go in... src/plugins plugin structure looks like... [name]/plugin.json index.js/ts sidenotes: - can those `@` things (i know, professional) get used for something like this? other more advanced ts features?
simple
plugins strictly for ap inbox, passed ApObject always
or... complex
PluginService.registerHook(id: string, data?: PluginData)
PluginService.registerPlugin(id: string, hook: string, returns: boolean)
plugins should expect everything to be null, like inbox processors
if returns, local var changes by output of plugin
hook locations:
plugins go in...
src/plugins
plugin structure looks like...
[name]/plugin.json
index.js/ts
sidenotes:
@things (i know, professional) get used for something like this? other more advanced ts features?