{"id":19437898,"url":"https://github.com/teammaestro/stencil-scorm-viewer","last_synced_at":"2025-04-24T21:32:33.157Z","repository":{"id":57164818,"uuid":"143911200","full_name":"TeamMaestro/stencil-scorm-viewer","owner":"TeamMaestro","description":"Stencil component for viewing SCORM e-learning courses offline.","archived":false,"fork":false,"pushed_at":"2021-03-09T16:58:10.000Z","size":78,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-03T12:02:10.264Z","etag":null,"topics":["scorm","scorm2004","stenciljs","web-components"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TeamMaestro.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-07T18:19:47.000Z","updated_at":"2024-08-01T10:13:21.000Z","dependencies_parsed_at":"2022-08-29T19:11:49.011Z","dependency_job_id":null,"html_url":"https://github.com/TeamMaestro/stencil-scorm-viewer","commit_stats":null,"previous_names":["teamhive/stencil-scorm-viewer"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamMaestro%2Fstencil-scorm-viewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamMaestro%2Fstencil-scorm-viewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamMaestro%2Fstencil-scorm-viewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamMaestro%2Fstencil-scorm-viewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TeamMaestro","download_url":"https://codeload.github.com/TeamMaestro/stencil-scorm-viewer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250713148,"owners_count":21475138,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["scorm","scorm2004","stenciljs","web-components"],"created_at":"2024-11-10T15:16:11.870Z","updated_at":"2025-04-24T21:32:32.844Z","avatar_url":"https://github.com/TeamMaestro.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hive Stencil SCORM Viewer\nWeb component that allows you to render SCORM (e-learning) courses in your web (and Ionic native) applications. Injects custom event hooks and binding to support **offline** tracking of courses without a 3rd party library.\n\nThe SCORM course __must__ be served on the same origin (host:port) as the consuming application to avoid cross-frame injection.\n\n## Installation\n- `npm install @teamhive/stencil-scorm-viewer`\n\n## Usage\n- `\u003chive-scorm-viewer src=\"http://www.mydomain/index.html\"\u003e\u003c/hive-scorm-viewer\u003e`\n\n### Angular (6+) / Ionic (4+)\nIn your `angular.json` file add the following assets matcher in your `projects.app.architect.build.options.assets` collection:\n```\n{\n    \"glob\": \"**/*\",\n    \"input\": \"node_modules/@teamhive/stencil-scorm-viewer/dist/scormviewer\",\n    \"output\": \"./scormviewer\"\n}\n```\n\nIn your main `AppModule` (i.e. `app.module.ts`) add the following import statement:\n\n```\nimport '@teamhive/stencil-scorm-viewer/dist/scormviewer';\n```\n\n### Events\n|Event|Description|\n:---:|:---:\n|`onSetValue`|Emitted when the course captures form data. Locally tracks data to `courseData` object.|\n|`onCommit`|Emitted when a value is committed to the API.|\n|`onInitiailize`|Emitted when the course initializes against the LMS.|\n|`onFinish`|Emitted when the course finishes.|\n|`onTerminate`|Emitted when the course is terminated.|\n\n---\n\n## Development\n\n### Local Development\n\n- `npm i`\n- `npm run start`\n\n_Note_: You will need to drop SCORM assets into `www/` to test in the browser.\n\n### Building the Stencil Component\n\n- `npm run build`\n- `npm publish` or `npm pack` for local deployments\n\n### Testing\n- `npm run test`\n\n## Contributors\n\n[\u003cimg alt=\"Sean Perkins\" src=\"https://avatars1.githubusercontent.com/u/13732623?v=4\u0026s=117\" width=\"117\"\u003e](https://github.com/sean-perkins) |\n:---:\n|[Sean Perkins](https://github.com/sean-perkins)|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteammaestro%2Fstencil-scorm-viewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteammaestro%2Fstencil-scorm-viewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteammaestro%2Fstencil-scorm-viewer/lists"}