Keep product composition local while shared behavior stays in Pixxl primitives.
Import @pixxl-tools/components/styles.css once and wrap theme-aware surfaces in PixxlProvider.
Compose layout primitives before creating app-specific wrappers; keep routing and data loading in the host.
Use value/defaultValue/onValueChange and open/defaultOpen/onOpenChange consistently.
Check keyboard behavior, focus return, narrow layout, reduced motion, empty states, and error states.
Save semantic state, not renderer instances or app-only runtime objects.
Create or parse CanvasDocument at the storage boundary and reject invalid schema/version input.
Use a product controller for document, page, element, command, transaction, subscription, and bounded-history flows.
Store product semantics in canonical element fields, namespaced data/meta, or resources; never invent another root envelope.
Serialize after a committed transaction. Recreate DOM nodes, decoded images, workers, callbacks, and caches after load.
Cantext: structured rich text, editing transactions, layout, import/export, workers, and React bindings.
Candraw: vector elements, path geometry, transforms, hit testing, canvas rendering, and SVG/PNG export.
Cangraph: controlled or uncontrolled nodes/edges, handles, custom-node DOM bridge, viewport, and graph rendering.
Canchart: typed chart specs, datasets/transforms, scales, geometry, canvas rendering, interaction, and data export.
One document can contain elements owned by multiple product engines.
Route each recognized element kind to its product renderer and keep unknown namespaced kinds round-trippable.
Share pages, selection, workspace transforms, inspector chrome, history, and file workflows at the canvas layer.
Do not flatten product models into one universal editor; adapters preserve each engine’s domain rules.
Verify mixed JSON, renderer dispatch, selection, history, import/export, and narrow layouts end to end.
Record supported packages, versions, persisted schema, expected browser/Node environments, and intentional limits.
Run public examples, typecheck, lint, focused tests, production build, packed-consumer checks, and dependency audit.
Include accessible names and semantic alternatives for canvas output; canvas pixels alone are not an accessibility tree.
Measure representative large documents before publishing performance claims or default thresholds.