Executable example · minimal
Create a deterministic canvas
Render a fixed 320×180 server-side PNG using the public ApexPainter canvas API.
Prerequisites
- Node.js 22, 24, or 26
- apexify.js 6.0.0
Authoritative source
Source hash: d1603f74395a1b3c07efbf96be39ca6d867413977a29ea556c0bfc1e712649e4. The displayed payload is generated from the files executed by DOC-5 verification.

Goal
Create the smallest useful server-rendered image with explicit dimensions and background color.
Important options
widthheightcolorBg
Why these choices
- Explicit dimensions make output verification deterministic.
- A local color background avoids remote assets and font dependencies.
Variants
- Replace colorBg with a gradient or layered background after the basic pipeline is understood.
Performance note
The example uses one small canvas and performs no remote I/O.
Error note
Invalid dimensions are rejected by Apexify.js runtime validation before rendering.
Related documentation
Related API
Next steps
Use node.chart.bar for a generated chart or node.integration.report for a multi-file workflow.