Node canvas is a Cairo backed Canvas implementation for NodeJS.
Browse cluster: JavaScript Standard Style Linting →node-canvas is a Cairo-backed Canvas implementation for Node.js that enables server-side graphics rendering. The project implements the Web Canvas API closely, allowing developers to create, manipulate, and export images and documents programmatically. It supports rendering to multiple output formats including PNG, JPEG, PDF, and SVG, and provides utility methods for loading images, registering custom fonts, and configuring rendering quality. The project is maintained by Automattic and requires Node.js 18.12.0 or later, with pre-built binaries available for macOS, Linux, and Windows, though it can also be compiled from source on other platforms with Cairo and related dependencies installed.