Skip to content

Installation

Copy as Markdown
Terminal window
npm i @rupamotion/player

The types come with the entries (the package exports), so TypeScript needs moduleResolution set to bundler, node16 or nodenext. The classic node resolution does not read exports. The package has no engines field: it runs in browsers and imports on any server.

Always name an exact version, never latest:

<script type="module" src="https://cdn.jsdelivr.net/npm/@rupamotion/player@0.1.0/dist/element.js"></script>

That line loads the <rupa-player> element and mounts every snippet root on the page.

Terminal window
npm i @rupamotion/player@0.1.0

Quick start