This library is intended for developers who want to programmatically control the Skeel Launcher. It provides a TypeScript/JavaScript API for interacting with the Skeel launcher embedded on your website.
npm install @skeel/launcher
The Skeel launcher automatically exposes a global window.Skeel instance when initialized. If the Skeel script is loaded asynchronously or you need to run code before the launcher initializes, you can subscribe to lifecycle events using the event broker:
import { getEventBroker } from '@skeel/launcher'
const broker = getEventBroker()
broker.subscribe('init', (skeel) => {
// Skeel instance is now available
skeel.openCard()
})