Minimal HTML Example

Here's a standalone HTML file that renders an interactive pivot table. The JavaScript bundle is served by the ReportBurster server:

<!DOCTYPE html>
<html>
<head>
  <!-- Load the web components bundle from the ReportBurster server -->
  <script src="http://localhost:9090/rb-webcomponents/rb-webcomponents.umd.js"></script>
</head>
<body>

  <rb-pivot-table
    report-code="piv-sales-country-year-duckdb"
    api-base-url="http://localhost:9090/api/jobman/reporting"
  ></rb-pivot-table>

</body>
</html>

That's it — one script tag and one custom element with two attributes.

How It Works

Requirement: The ReportBurster server must be running. The component loads both its JavaScript bundle and the pivot data from the server. Replace localhost:9090 with your actual server address in production.

Where It Works

<rb-pivot-table> is a standard Web Component (Custom Element) built with Svelte and packaged as a UMD bundle. It runs in any modern browser — no framework dependency, no build step. If the page can load a JavaScript file, it can render the pivot table.

Try it — create an HTML file with the snippet above, make sure the ReportBurster server is running, and open it in your browser.