Generated API reference for @rekhly/engine →
@rekhly/engineScene graph, render graph, frame loop, and renderer selection. Framework- neutral — React, Next.js, and Python are later clients of this package, not dependencies of it.
createEngine / RekhlyEngine — owns the frame loop; charts request frames, they never start their own requestAnimationFrame loop.
createHostSurface — attaches a canvas + overlay to a container. Every chart gets a keyboard-focusable, screen-reader-labeled canvas (tabIndex, role="img", aria-label) from this one call site.
createRenderer — centralizes WebGPU → WebGL2 → Canvas backendselection. Chart packages must not import renderer symbols directly.
createGroup, createPrimitive), color utilities, render-graph batching, and GPU resource management (every buffer, program, texture, and VAO has an owner and a dispose).
import { createEngine, createHostSurface } from "@rekhly/engine";
dispose() is a safe no-op the second time.Got any questions? I'm happy to help with products, licensing, and examples.