Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Sample Activities

This directory contains reference xPLA activities that demonstrate the standard. Each subdirectory is a self-contained activity with a manifest.json and a client-side script. Most also include a server-side script (server.js) that is compiled to WebAssembly (server.wasm).

For the full specification of the activity format, see the Activity API Reference.

Activities

Activity Description Sandbox
chat Real-time collaborative chat with log-backed message history Yes
collab-editor Collaborative text editor with Yjs synchronization and markdown rendering Yes
interactive-video YouTube video with embedded MCQ interactions at configured timestamps Yes
markdown Markdown content block with live editing and HTML rendering Yes
math Math problem with answer validation and per-user score tracking Yes
mcq Multiple choice question with configurable answers and grading Yes
python Python coding exercise with Pyodide-based in-browser execution Yes
quiz Minimal client-only quiz (no server sandbox) No
slideshow HTML slide presentation using Reveal.js Yes
video HTML5 video player with configurable URL Yes
youtube YouTube video player with configurable video ID Yes
zoom Zoom meeting integration with OAuth and meeting creation (uses HTTP capability) Yes

Building

Build all server-side WASM modules:

make samples

To build a single activity:

make -C samples/my-activity build

Creating a New Activity

An activity needs at minimum a manifest.json and a client.js. See the mcq activity for a straightforward example with server-side grading, or quiz for a minimal client-only activity.