Skip to content
Apexify.jsDocs
Apexify.js version v5.4.5

Start · guide

Getting Started

Install the staged Apexify.js 6.0.0 package, understand its Node/server requirements, and render a first image.

apexify.jsRuntime: nodeCURRENTSince 6.0.0

Welcome to Apexify.js — a Node/server library for programmatic PNG/image composition, text, charts, GIFs, FFmpeg-backed video, procedural audio, scenes, templates, and batch/output workflows.

Release status: these docs describe the staged Apexify.js 6.0.0 package artifact produced from the current repository. npm latest is still 5.4.5, so npm install apexify.js currently installs 5.4.5. Do not use the 6.0 API reference against npm latest until 6.0.0 is explicitly published.


Requirements for staged 6.0.0

  • Node.js 22.x, 24.x, or 26.x
  • npm 10+
  • FFmpeg + ffprobe only for video/FFmpeg features
  • TypeScript is optional; package declarations ship for ESM and CommonJS consumers

Apexify.js 6 is a Node/server package. Browser-native, React/Next, Render-IR/ARS, native browser animation, AI-assistant, and distributed-renderer packages are not current shipped 6.0 APIs.


Published npm install

TERMINALbash
bash
$ npm install apexify.js

That currently installs the published 5.4.5 release. The 6.0 documentation site itself is validated against an exact staged package commit rather than pretending npm already contains 6.0.0.


ESM and CommonJS

SOURCEjavascript
javascript
Studio
// ESMimport { ApexPainter } from "apexify.js"; // CommonJSconst { ApexPainter } = require("apexify.js");

apexify.js/types is a type-only subpath. Do not import internal source or dist/* paths.


Smallest staged-6 example

SOURCEtypescript
typescript
Studio
import { writeFile } from "node:fs/promises";import { ApexPainter } from "apexify.js"; const painter = new ApexPainter({ type: "buffer" });const canvas = await painter.createCanvas({  width: 640,  height: 360,  colorBg: "#0f172a",}); const png = await painter.createText(  {    text: "Apexify.js",    x: 320,    y: 180,    font: { size: 48, family: "Arial" },    fill: { color: "#ffffff" },    placement: { textAlign: "center", textBaseline: "middle" },  },  canvas,); await writeFile("out.png", png);

createCanvas() returns CanvasResults (buffer plus canvas metadata). Normal raster rendering methods return PNG Buffers; constructor output type is applied explicitly through toOutput().


Read in this order

StepWhereWhat you learn
1Install & setupExact Node/npm/FFmpeg/module requirements
2Beginner guide hubFirst image, buffers, text/images, saving
3Feature guidesCanvas, image, text, chart, GIF, video, output domains
4API referenceCurrent package exports, methods, grouped APIs, errors and defaults
5AdvancedScenes/templates/assets/plugins, runtime policy, security, performance, migration

Use Security deployment before exposing Apexify to untrusted URLs/uploads, and Performance & memory before increasing resource/concurrency limits.

Next steps