Skip to main content

NanoForge


npm versionnpm downloadsTests statusLast commitContributors

About

@nanoforge-dev/graphics-2d is NanoForge’s built-in 2D rendering library, powered by Konva. It creates a full-container Stage and a default Layer and exposes them on Context.graphics. Client-only.

Installation

Node.js 26 or newer is required.

Example usage

Register Graphics2DLibrary on your client app:
Draw shapes directly on Context.graphics.stage/.baseLayer:

Contributing

Before creating an issue, please ensure that it hasn’t already been reported/suggested, and double-check the documentation.
See the contribution guide if you’d like to submit a PR.

Help

If you don’t understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don’t hesitate to ask questions in discussions.

Classes

Interfaces

Type Aliases

Variables