Repository navigation
feat(plugins): create internal plugin api - #369
Draft
olivermrose wants to merge 22 commits into
Draft
olivermrose wants to merge 22 commits into
olivermrose wants to merge 22 commits into
Conversation
olivermrose
force-pushed
the
feat/internal-plugins
branch
from
December 5, 2026 16:52
50dd565 to
9835790
Compare
This comment has been minimized.
This comment has been minimized.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is Phase 1 of #202. I'm going to be incrementally adding to the plugin API as needed for internals until I feel it's ready for public usage. For now, 7TV, BTTV, and FFZ have been moved to plugins as I've been wanting to do for a while for decoupling purposes. Eventually, Phase 2 will include #113.
I opted for a class-based design instead of functional for organizational/structural purposes. As seen in 7TV, complex plugins could require/may want to split up their code into many helpers, and it's easier to reason with classes instead of shoving function declarations inside each other. Why not support both? Less maintenance overhead, less "this-or-that" for authors.
A monorepo has consequently been set up for the plugin api, native plugins, and other future packages that consumers may depend on. A full explanation of the api will be finalized once it goes public since things are going change between now and then.