Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proof of concept: optional features for Invidious through optional shards #5075

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

syeopite
Copy link
Member

@syeopite syeopite commented Nov 10, 2024

This is just a proof of concept not really a serious proposal

This PR allows for Invidious to support optional features through optional extensions. These extensions are essentially just
glorified shards that are automatically imported (the only human interaction needed is to define it in shards.yml) during compile-time due to them having a set name and initialization structure.

This PR removes the Reddit comment functionality from Invidious directly and transfers it to this optional extension shard https://github.com/syeopite/extendious-reddit-comments here.

Only /api/v1/comments/:id?source=reddit has been migrated though. Kemal's middleware logic doesn't allow for editing the response from the route handler before it is sent to the client.

The way its middleware logic are ordered also doesn't give much flexibility for extensions...

@syeopite syeopite changed the title Proof of concept: optional feature for Invidious through optional shards Proof of concept: optional features for Invidious through optional shards Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant