Skip to content
This repository was archived by the owner on Nov 3, 2025. It is now read-only.
This repository was archived by the owner on Nov 3, 2025. It is now read-only.

PluginService #36

@ihateblueb

Description

@ihateblueb

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions