scratchfoundation / scratch-gui

Graphical User Interface for creating and running Scratch 3.0 projects.
https://scratchfoundation.github.io/scratch-gui/develop/
BSD 3-Clause "New" or "Revised" License
4.49k stars 3.59k forks source link

[feature request] Add URL parameter to load custom SB3 file #9708

Open HackerQED opened 1 month ago

HackerQED commented 1 month ago

Hello Scratch GUI team,

I'd like to propose a new feature that would allow loading a custom SB3 file via URL parameter when the Scratch GUI loads. This would be extremely useful for developers who want to create custom Scratch-based applications or educational platforms.

Currently, it seems there's no built-in way to load a specific SB3 file on startup via URL. Adding this feature would enable scenarios like:

  1. Creating custom learning paths with pre-loaded projects
  2. Easily sharing specific projects for collaboration
  3. Integrating Scratch projects into other web applications

The use case example could be:

http://my-site-using-scratch-gui.com/?sb3Url=https://assets.my-site-using-scratch-gui.com/my-project.sb3

This feature would greatly enhance the flexibility of Scratch GUI for developers building on top of it. If there's interest from the community, I'd be happy to work on a pull request to implement this functionality.

What do you think about this feature? Is it something that could be valuable for the project?

Thank you for your attention!