courseview-sdk-docs

Candlefox Logo

CourseView - MicroFrontend SDK Documentation

Welcome to the official integration guide for the MicroFrontend SDK — a lightweight JavaScript SDK designed to embed dynamic course-related content from an external API directly into your website.

This SDK enables partners to display course information inline on any webpage using just a few lines of code.


🚀 Quick Start

1. Include the SDK in your HTML

<!-- Container for SDK content -->
<div class="mf-container"></div>

<!-- Include the MicroFrontend SDK -->
<script src="https://courseview.orchestrax.com/assets/sdk/micro-frontend-sdk.js"></script>
<script>
  document.addEventListener("DOMContentLoaded", function () {
    MicroFrontend.init({
      target: ".mf-container", // CSS selector for the container
      courseViewId: "UUID", // String containing Course View UUID value
      // Use one of the params below, not both
      occupationIds: "12,24", // Optional: Comma-separated occupation IDs
      subject: "art,accounting", // Optional: Comma-separated subject strings
    });
  });
</script>

⚙️ Configuration Options

Option Type Required Description
target string Yes CSS selector where the SDK will render content inline.
courseViewId UIUD Yes String containing Course View ID.
occupationIds string No Comma-separated list of occupation IDs to filter the results.
subject string No Comma-separated list of subjects to filter the results.

📚 Full Documentation

For complete setup instructions, styling tips, and advanced usage:

👉 View Full Documentation


🎨 Styling

You can customize the appearance of the SDK container:

.mf-container {
  max-width: 900px;
  margin: 1rem auto;
  padding: 0.5rem;
}

📚 Other Documentations

👉 Custom Events Implementation


🛠 Version & Updates

Last updated: Feb 18, 2026

OrchestraX Logo