For a variety of reasons, there are times I want to be able to see/share student work on Scratch without publishing it on the Scratch website. Sometimes I want to check in on progress before students are ready to officially share out to the world. Other times students want to show off their finished projects to family and friends, but their guardians don’t want their work displayed publicly on the Scratch website.
forkphorus is a project created to embed Scratch 3 projects outside of Scratch. It is a modification of phosphorus, which does the same thing with earlier versions of Scratch. These sites are good for embedding unshared Scratch projects, but I wanted a way to customize the appearance of the page where the Scratch project displays with my own title and text.
To address these limitations, I created a website that uses the forkphorus project player but allows users to customize the way the page looks. Check out an example here. The title, caption, and other features of the page can be customized. There are two ways you can generate URLs: via a generator (basic) and via an API (advanced). I’ll explain both options in more detail.
Website generator (basic)
To share and customize a single project at a time, you can use this page. Paste the URL of the Scratch project into the box (even if the project is not shared).
Fill out the settings as you would like. Keep in mind that any information you put here will be visible to anyone you share the link with, so you should not include any personal information.
If you’d like to see what your webpage will look like, click “preview”.
Once you are ready to share the project, scroll down and copy the generated URL. Anyone you share this generated URL with will be able to see the Scratch project and whatever title/caption you specified.
Customize via API (advanced)
If you don’t want to use the generator (e.g. you have a spreadsheet of multiple Scratch project URLs you’d like to share), you can do this easily by customizing the URLs yourself. All of the customizations from the generator above can be set directly in the URL that you share out. You can add different parameters to the end of the URL to customize it. I’ll explain briefly below, but you can check out the full documentation as well.
The parameters are added to the end of the URL of the viewer page after the hash (
#). Each parameter is listed with the name of the parameter, and equal sign (
=), and the value of the parameter (e.g.
param1=value1). Multiple parameters are separated with an ampersand (
In the above URL, there are two parameters:
title. The value of project is
10128067 and the value of title is
%20 is used as a placeholder for the space character. If you visit the URL, you’ll see a page that has the Scratch project with ID
10128067 loaded on the page. The title will read “Scratch project”. If you change the value of the title parameter in the URL, the title on the page will also change.
At a minimum, you need to specify the Scratch project you’d like to embed. You can include the whole URL for the project page on the Scratch website or just the project ID (the numbers at the end of the project page’s URL). Both of these links will embed the same project:
Additional parameters can be added after
project=[id] by adding an ampersand (
&) followed by the
name=value format for the next parameter. For a full list of the parameters you can use, see this page.
Here is a sample customized URL with multiple parameters:
Some characters are not allowed in URLs and may confuse the browser if they’re there. For these characters, certain codes are used in their place. For example, a space is represented by the code
Fortunately, you don’t need to know all of these substitutions. Microsoft Excel and Google Sheets both have a built in formula called
ENCODEURL() to replace these characters automatically. Below is a sample formula that generates a Scratch viewer URL based on a project URL listed in cell A2:
To see this in action, check out this Google Sheet that uses this formula to build links from Scratch project URLs. To make your own copy, click “use template” in the top right corner.
While this tool makes sharing projects possible, it has limits. The biggest is that the Scratch Viewer website does not have a “see inside” feature. A partial workaround is to enable the download button (either by checking the box for that setting in the generator or manually adding
&showDownload=true to the end of your URL). Viewers can download the project file and open it on the Scratch website.
While this isn’t a perfect clone of sharing projects within the Scratch community, it is a good way to preview student work and share finished results with family members who may not want their children’s work publicly listed on the Scratch website.
Another limitation is that the viewer does not work with very old Scratch projects (projects that have not been updated since Scratch 1). To get around this, you can modify or remix an older project. This will convert the project to Scratch 3 and you can then share it with this web app.
forkphorus, which is the code library that embeds the projects, is still undergoing development. If you find any issues with the way embedded projects show up (or don’t show up), please report them to forkphorus’ developers on GitHub or Scratch . Be sure to include a link to the original Scratch project.