Function: createRuntime()
createRuntime(
config):IRuntime
Defined in: src/createRuntime.ts:27
Creates a new miniapp runtime instance.
Parameters
config
Runtime configuration including container, rendering engine, auth service, and optional host services.
Returns
A fully initialized IRuntime ready to load miniapps.
Example
import { createRuntime } from '@picsart/runtime/client';
import { createWebLayeringEngine } from '@picsart/runtime/adapters/web-layering';
const runtime = createRuntime({
container: document.getElementById('editor')!,
renderingEngine: createWebLayeringEngine(),
auth: myAuthService,
hostName: 'my-app',
});
const handle = await runtime.load(miniappManifest);
await handle.bootstrap();