ExApi - a library for creating and managing apis and their implementations

s/implmentations/implementations/ :slight_smile:

A question, is it suitable for a plugin system like, say, Firestorm forum or so? Where they could setup an ‘api’ with a set of hookpoints, and they call those hooks to have plugins do things like run some code or add something to the display or so? And if so, what would that look like? Say for these use-cases:

  1. Rendering a post so it calls the hook for that, one of the hooks wants to add a thumbs-up button to the bottom of the post, and another hook wants to take that post and change github links to contain inline content from the github link (so it needs to take the existing template and return a mutated version while all other hooks have their own chances to do the same).
  2. Hooking into when a post is saved so it can sanitize words or throw an error and another wants to take a post when it is saved so it can scan it for indexing purposes (it needs to take the post content and probably should return a mutated version of it that).

Things like that…

1 Like