Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!


Scratch embed

A Moodle filter plug-in to embed Scratch projects using the Scratch Java applet. It embeds community software projects hosted at,

NOTICE: this software is in no way endorsed by or affiliated with the official MIT Scratch project or team.


To install (on Moodle 2):

  1. Un-compress the Zip/Gzip archive, and copy the folder renamed 'scratchembed' to your moodle/filter/ directory.
  2. Log in to Moodle as admininstrator, go to Site Administration | Plugins | Filters | Manage Filters.
  3. Choose 'On' or 'Off but available' in the drop-down menu next to 'Scratch embed'.


The syntax to embed a project:

[Scratch] [/Scratch]


  • Tested in Moodle 1.9.7 and 2.0.2.
  • No javascript, no database access - very simple!
  • The ScratchApplet Java applet must be in the same domain as the Scratch project.
  • Filter syntax is case-insensitive.
  • The plug-in is internationalized in Moodle 1.9 and 2.
  • If there is demand I'll look at embedding locally hosted Scratch projects (.sb files).
  • Similarly, I may look at an alternative filter syntax.


Scratch embed plugin, Copyright © 2011 Nicholas Freear.

Scratch 1.4 Software, Copyright (c) 2009 Massachusetts Institute of Technology

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.