Prismalpha.9
Getting Started

Installation

Install Prism and enable native HTML-in-Canvas support in Chromium-based browsers.

These docs describe published alpha.9.

Install the published package from the public package root:

npm i @synthesisengineering/prism@0.1.0-alpha.9

Use the package root for app code:

import { CanvasRuntime } from "@synthesisengineering/prism";

Subpath imports are not supported public API.

Enable native rendering

Alpha.9 native qualification covers Chrome for Testing 158.0.8115.0 on macOS ARM64 with Canvas Draw Element and Chromium sandboxing enabled. This does not establish general Chrome, Brave or Linux support.

Native mode requires the browser's Canvas Draw Element flag. The flag alone does not establish compatibility; forced native mode rejects legacy or partial API shapes. Published alpha.8 uses the earlier native path.

Chrome:

  1. Open chrome://flags/#canvas-draw-element.
  2. Set Canvas Draw Element to Enabled.
  3. Relaunch Chrome.

Brave:

  1. Open brave://flags/#canvas-draw-element.
  2. Set Canvas Draw Element to Enabled.
  3. Relaunch Brave.

The flag is browser-local. Enabling it in Chrome does not enable it in Brave.

Fallback

Prism can run in fallback mode for compatibility, but fallback draws placeholders, not HTML snapshots. Treat it as a compatibility path, not the definition of Prism's rendering behavior.