Ask ChatGPT, Claude or Gemini for a game, simulation or calculator as one HTML file, and paste it into the Custom Code block. It runs inside your SCORM package, offline, in any LMS, and unlocks Continue when the learner is done.
Here is your game as a single HTML file:
<!doctype html><div class="bins">…<script> …<!doctype html><style> .bin { border: 2px dashed; }</style><div class="bins">…</div><script> function drop(item, bin) { if (sorted === 6) parent.postMessage({ type: "complete" }, "*"); }</script>A simulation of your own software. A calculator for your own pricing. A game that fits your topic instead of a generic quiz. Until now that meant a developer, a hand-made SCORM wrapper, or an iframe to a page someone has to host and keep online.
AI assistants changed the first part: anyone can now describe an interaction and get working HTML in a minute. What was missing was a safe place to put it, inside the course, that works in any LMS.
Paste the HTML, or upload a ZIP project. It runs in a sandbox inside the course, ships inside the SCORM package, and works offline in Moodle, Canvas, Cornerstone, SuccessFactors or whatever your learners use. Vibe coding for instructional designers, without the hosting, the wrapper or the risk.
If you can describe it, an AI can build it, and the Custom Code block runs it. Some of what authors make:
Sorting, matching, ordering and categorising, with your own artwork and rules. Recycling bins, risk ratings, steps of a procedure.
A mock-up of the screen people really use: click through a CRM, fill in a form, find the setting. Safe practice before the real system.
Loan and ROI calculators, dosage checks, carbon footprints, pricing tools. Learners change the numbers and see the result move.
A machine to take apart, a floor plan to inspect, a body system to explore: click a part, learn about it.
Sliders that redraw a chart, a budget that balances, a market that reacts. Data the learner plays with instead of reads.
Catch-the-right-answer, whack-a-myth, swipe-to-sort, a memory grid: short games that make recall fun.
Typing tests, reaction drills, speed rounds on product codes or safety signs, with a personal best.
Spot-the-difference, a phishing inbox to triage, a code playground, a 3D model on a canvas. If you can describe it, an AI can build it.

The activity fits the page width, resizes itself to its content, and sits between your other blocks like any of them. With completion required, Next stays locked until the game is finished.


Paste one into ChatGPT, Claude or Gemini, then paste the answer into a Custom Code block. Each ends with the same requirements, so the result works offline and counts toward completion.
Make a drag-and-drop game for warehouse staff: sort 8 items into Recycle, Compost and Landfill bins. Shake the bin on a wrong drop, show a score, and a short explanation after each item. Requirements: one single HTML file with all CSS and JavaScript inline. No external libraries, CDNs, fonts or images from the internet (it must work offline). Make it keyboard-accessible and readable on a phone. When the learner has finished, call window.parent.postMessage({ type: "complete" }, "*").Swap the topic and bins for any categorising task.
Recreate a simplified "New customer" form from a CRM. Guide the learner through 5 steps with hints, check each field, and show a summary at the end. Requirements: one single HTML file with all CSS and JavaScript inline. No external libraries, CDNs, fonts or images from the internet (it must work offline). Make it keyboard-accessible and readable on a phone. When the learner has finished, call window.parent.postMessage({ type: "complete" }, "*").Describe the real screen, or paste a description of it.
Build an interactive calculator that shows how a 1% fee changes the value of a pension over 30 years, with two sliders and a line chart drawn on a canvas. Explain the result in one sentence. Requirements: one single HTML file with all CSS and JavaScript inline. No external libraries, CDNs, fonts or images from the internet (it must work offline). Make it keyboard-accessible and readable on a phone. When the learner has finished, call window.parent.postMessage({ type: "complete" }, "*").Calculators make abstract numbers concrete.
Make a 60-second drill on road signs: show a sign drawn with SVG, offer 3 answers, keep score, and show the learner's best score. Let them switch the timer off before starting. Requirements: one single HTML file with all CSS and JavaScript inline. No external libraries, CDNs, fonts or images from the internet (it must work offline). Make it keyboard-accessible and readable on a phone. When the learner has finished, call window.parent.postMessage({ type: "complete" }, "*").Short, replayable, and finishes with completion.
When one file is not enough, upload a ZIP of up to 100 MB with index.html at its root and everything it uses: scripts, styles, images, audio, video, data files. HTML5 exports from other tools, Twine stories, p5.js sketches and canvas games all run.
AI-written code, a colleague's project, a snippet from a forum: the Custom Code block treats all of it the same way.
The code runs in an isolated frame. It cannot read or change the course, the LMS page or anything else on screen.
No requests to other sites, no pop-ups, no navigating away. Whatever a learner types stays inside the activity.
It cannot reach the SCORM, xAPI or cmi5 connection, scores or learner details. It can only say "done".
No server to run, no link to break, nothing for IT to approve. The activity is part of the package.
Review links from trial accounts show a notice in place of custom code, so nobody can use a free account to host a fake page.
Give the frame a title for screen readers, and ask the AI for keyboard support and readable contrast. The prompts here do.
| SCORMBuilder Custom Code | Embed a hosted page (iframe) | Wrap HTML in SCORM by hand | |
|---|---|---|---|
| Where the code lives | Inside the course package | On a web server you keep running | In its own SCORM package |
| Works offline and behind firewalls | Yes | No | Yes |
| Unlocks Continue when done | Yes, one line of code | No | Only if you write the SCORM calls |
| Sits between other lesson content | Yes, it is a block | Yes | No, it is a separate course |
| Protects the LMS from the code | Sandboxed, no internet | Depends on the host | No, it runs with full access |
| Skills needed | Paste what the AI gives you | Hosting and a domain | SCORM manifests and JavaScript |
Using Articulate Rise 360? Its Code block does something similar and needs an Articulate 360 AI licence. SCORMBuilder includes the Custom Code block in its single plan, and can import your Rise courses.
No. Describe the activity to an AI assistant such as ChatGPT, Claude or Gemini, ask for one HTML file, and paste what it gives you into the Custom Code block. The editor shows it running straight away, so you can ask the AI for changes and paste again until it is right.
Any assistant that writes HTML: ChatGPT, Claude, Gemini, Copilot and others. Ask for a single HTML file with the CSS and JavaScript inside it, no external libraries, and the completion line shown in the editor. The prompts on this page already include all of that.
Switch on Require completion and add one line where the activity ends: window.parent.postMessage({ type: 'complete' }, '*'). Until the code sends it, the Continue or Next button stays locked; when it does, the learner moves on. The editor shows "Completion received" so you can test it.
Not today. The Custom Code block reports completion, which unlocks the course and counts toward finishing it. For scored questions, use the 32 interactive blocks and six game blocks, which report every answer to your LMS.
Yes. The code travels inside the SCORM, xAPI or cmi5 package as one self-contained document, so nothing is hosted anywhere and nothing is downloaded at run time. It plays in Moodle, Canvas, Cornerstone, SAP SuccessFactors, Docebo, TalentLMS and any other LMS that runs SCORM, and from a package opened on a desktop.
The code runs in a locked sandbox. It cannot read or change the course, the LMS page or the SCORM data, cannot see cookies or the learner's details, cannot open pop-ups or navigate away, and has no internet access at all, so it cannot send what a learner types anywhere. It can only draw inside its own box and say "done".
Yes. Upload a ZIP of up to 100 MB with index.html at its root, plus its scripts, styles, images, audio and data files. HTML5 projects from other tools, Twine stories, p5.js sketches and canvas games all work, as long as everything they need is in the ZIP. Files the code loads with fetch() work too.
No, on purpose. A course has to work offline, behind firewalls and in every LMS, and learners' input must not leave it. Ask the AI to include everything in the file; if a library is needed, put it in an uploaded ZIP.
The Custom Code block is part of the single SCORMBuilder plan, $29 per author per month, with every feature included. There is a 14-day free trial with no card required.
Free for 14 days, no card required. The Custom Code block and all 65 block types are included.
Start free →