Add Moodle Playground demo (blueprint + README badge) - #766
Open
erseco wants to merge 1 commit into
Open
Conversation
Add a one-click browser demo via Moodle Playground: - blueprint.json provisions Moodle with mod_questionnaire and a sample course feedback survey ready to preview. - README.md documents the demo with a badge pointing at the upstream path so it works as soon as this is merged. Intentionally no GitHub Action / PR preview workflow, to keep the contribution small and non-invasive for maintainers.
erseco
force-pushed
the
feature/moodle-playground-preview
branch
from
July 20, 2026 09:27
8ff6f6b to
cf5083e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
About this PR — Moodle Playground
Moodle Playground (source) runs a full Moodle site entirely in the browser (PHP + SQLite via WebAssembly). A
blueprint.jsondescribes how to provision plugins, users, courses and sample content so anyone can try a plugin with one click — no Docker, no local Moodle.Update (simplification)
An earlier version of this PR also added a GitHub Action (
.github/workflows/pr-playground-preview.yml) that automatically attached a Playground preview link to every same-repo pull request.After reflecting on feedback from similar contributions, I have removed the workflow. Requiring
pull-requests: writeand running extra CI on every PR is more than many plugin repositories need, and it can feel invasive when the main goal is simply “try this plugin online.”This PR now only adds:
blueprint.json— installsmod_questionnaire, creates a “Questionnaire Demo” course with a sample “Course feedback survey” (Yes/No, multiple-choice and text-box questions), and lands on its preview.README.md— short “Try in Moodle Playground” section with a badge pointing at this repository’sMOODLE_500_STABLE/blueprint.jsonso it works as soon as this is merged. Existing README content is otherwise unchanged.No automated PR previews, no new permissions, no releases clutter.
Try it (preview of the README button)
This is the same button that will appear in the README. Until this PR is merged, the README badge correctly targets the future upstream path (so it works right after merge). The button below points at the live blueprint on my fork branch so you can try the demo today:
After merge, the README badge will resolve to:
https://moodle-playground.com/?blueprint-url=https://raw.githubusercontent.com/PoetOS/moodle-mod_questionnaire/refs/heads/MOODLE_500_STABLE/blueprint.jsonTest plan
.github/workflows/.Happy to adjust the README wording or the demo content if you prefer something even smaller.