Path2D API for Node.js Canvas

JSON →
library 0.3.1 ·javascript
verified May 27, 2026

This `path2d` package provides a server-side implementation of the standard browser `Path2D` API, along with `CanvasRenderingContext2D.roundRect()`, for use in Node.js environments. It enables developers to utilize modern Canvas Path2D features and methods like `arc()`, `ellipse()`, and `roundRect()` when performing server-side rendering with libraries such as `node-canvas`. The current stable version is `0.3.1`, and updates appear to be released on an as-needed basis for feature enhancements (e.g., `DomPoints` support for `roundRect`) and dependency maintenance. Its primary differentiation is bringing browser-standard canvas path construction to Node.js, ensuring consistent rendering logic across client and server-side contexts for applications that generate images programmatically.

total hits 16
actors 8 distinct systems
last hit 1d ago MetaBot
GPTBot
2
Script
1
ClaudeBot
1
ChatGPT-User
1
MetaBot
1
Search engines
1

top countries 🇺🇸 United States · 🇫🇷 France · 🇨🇦 Canada · 🇩🇪 Germany · 🇳🇴 Norway