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

User extensions #177

Open
1 task
TroyKomodo opened this issue Jan 2, 2024 · 2 comments
Open
1 task

User extensions #177

TroyKomodo opened this issue Jan 2, 2024 · 2 comments
Labels
feature request New feature or request platform/website Issues related to the Platform Website

Comments

@TroyKomodo
Copy link
Member

Tell us about your Wish

Allow for an extension system which allows users to write custom extensions for the website.

Such as player extensions which add overlays to provide additional abilities, such as a voting system or sound board or whatever (similar to minecraft mods).
Or themes, where users can use theme packs (like mincraft resource packs) which can reskin the scuffle website.

For the extensions we would have some sort of Javascript SDK and then sandbox their script in a IFrame with some restrictive CSP enabled. The SDK would use the IFrame messaging protocol to communicate with the scuffle website and invoke commands / other shit to hook onto events that happen. (like getting the current player time etc).

For themes we would store them on the backend and they will be served via GQL when the user first loads the page.

We would also need to make some extension store or some visibility thing like a marketplace where users can pickout themes / submit new themes / tools or other features.

I think also all Javascript extensions that are added to channels will be opt-in. Meaning if you go to a page you can click the settings cog and authorize a extension to run and see what information the script gets about you. Also authors would be required to have the github source code opensouce and on a permissive compatible license.

Is your feature related to a bug

No response

Additional Info

This feature is not targeted for any release its more so a general idea/brainstorm we can think about and discuess.

Participation

  • I am willing to submit a pull request to implement this
@TroyKomodo TroyKomodo added the feature request New feature or request label Jan 2, 2024
@TroyKomodo TroyKomodo changed the title Extensions to the website User extensions Jan 2, 2024
@TroyKomodo TroyKomodo added the platform/website Issues related to the Platform Website label Jan 2, 2024
@TroyKomodo
Copy link
Member Author

TroyKomodo commented Jan 2, 2024

The idea came about while talking to @emoss08 on stream

@lennartkloock
Copy link
Member

Sounds like a good idea but a bit out of scope for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request platform/website Issues related to the Platform Website
Projects
None yet
Development

No branches or pull requests

2 participants