Case study · Education · Data and engineering
Converting interactive lessons into uploadable SCORM/IMS packages
Alef Education, an education technology company in the UAE, needed its interactive lesson content converted into a unified widget format and packaged for upload to its platform. We built a two-stage conversion service that works from the lessons' own JSON.
- Client
- Alef Education
- Industry
- Education technology
- Solution
- Data and content engineering
- Stack
- Node.js, Express
The challenge
Each lesson is spread across many JSON files: pages, slides, sections, columns and questions, with images, audio, video, subtitles and transcripts linked in. Every lesson had to become a single package the platform could import, with each interaction, asset and step of the lesson flow intact. Across more than a dozen component types and five content variants, each with its own rules, converting by hand was not an option.
What we built
A Node.js/Express service that runs the conversion in two stages.
Stage 1: lesson JSON to the unified widget format
- The client supplies lesson JSON URLs, and the service fetches every related page, slide, section, column and question file.
- A transformation script for each component type applies the client's mapping rules and conditions: multiple choice, fill in the blanks, matching, drag and drop, flip cards, tabs, timelines, carousels, hotspots, charts, readers and more.
- Each script flattens nested section and column structures, remaps component types, builds text-and-image components, sets default values and resolves references and tooltips.
- Every image, audio file, video, subtitle and transcript is downloaded and re-pathed for the package.
- Each of the five content variants runs with its own rules and endpoints.
Stage 2: unified format to SCORM/IMS package
- The unified JSON is mapped to XML through an enum and value mapping layer, with generated unique IDs.
- The service generates the folder structure, the page XML files and imsmanifest.xml with every asset referenced.
- The output is a single ZIP, ready to upload.
Result
The client uploaded the generated packages to its platform and used them to test content, navigation and lesson flow.
Why we kept it rule-based
Content conversion needs predictable output more than clever output. Every component maps the same way every time, every rule lives in code where it can be tested, and the service can be rerun whenever the source lessons change.
Moving content between platforms?
Talk to us about converting your content at scale, with every rule testable.
