npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@genart-dev/plugin-shapes

v0.2.0

Published

Shape design layer plugin for genart.dev

Readme

@genart-dev/plugin-shapes

Shape design layer plugin for genart.dev — overlay rectangles, ellipses, lines, polygons, and stars on any sketch. Shapes are positioned, styled, and composited as design layers. Includes MCP tools for AI-agent control.

Part of genart.dev — a generative art platform with an MCP server, desktop app, and IDE extensions.

Install

npm install @genart-dev/plugin-shapes

Usage

import shapesPlugin from "@genart-dev/plugin-shapes";
import { createDefaultRegistry } from "@genart-dev/core";

const registry = createDefaultRegistry();
registry.registerPlugin(shapesPlugin);

// Or access individual layer types
import {
  rectLayerType,
  ellipseLayerType,
  lineLayerType,
  polygonLayerType,
  starLayerType,
  shapeMcpTools,
} from "@genart-dev/plugin-shapes";

Shape Layers (5)

All shape layers share common fill and stroke properties. Position and size are set via the layer transform (x, y, width, height).

Common Properties

| Property | Type | Default | Description | |----------|------|---------|-------------| | fillColor | color | "#ffffff" | Fill color | | fillEnabled | boolean | true | Enable fill | | strokeColor | color | "#000000" | Stroke color | | strokeWidth | number | 0 | Stroke width in pixels | | strokeEnabled | boolean | false | Enable stroke |

Rectangle (shapes:rect)

Axis-aligned rectangle with optional corner radius.

| Property | Type | Default | Description | |----------|------|---------|-------------| | cornerRadius | number | 0 | Corner radius in pixels (0 = sharp) |

Ellipse (shapes:ellipse)

Ellipse or circle. Set equal width/height for a circle.

(Common properties only — no additional properties.)

Line (shapes:line)

Straight line from one point to another.

| Property | Type | Default | Description | |----------|------|---------|-------------| | x1 | number | 0 | Start X | | y1 | number | 0 | Start Y | | x2 | number | 100 | End X | | y2 | number | 100 | End Y | | lineWidth | number | 2 | Line width in pixels | | color | color | "#ffffff" | Line color | | lineCap | select | "round" | "butt", "round", "square" |

Polygon (shapes:polygon)

Regular polygon with N sides, centered in the layer transform bounds.

| Property | Type | Default | Description | |----------|------|---------|-------------| | sides | number | 6 | Number of sides (3–20) | | rotation | number | 0 | Rotation offset in degrees |

Star (shapes:star)

N-pointed star, centered in the layer transform bounds.

| Property | Type | Default | Description | |----------|------|---------|-------------| | points | number | 5 | Number of points (3–20) | | innerRadius | number | 0.4 | Inner radius relative to outer (0–1) | | rotation | number | 0 | Rotation offset in degrees |

MCP Tools (5)

Exposed to AI agents through the MCP server when this plugin is registered:

| Tool | Description | |------|-------------| | add_shape | Add a shape layer (rect, ellipse, polygon, or star) | | set_shape_style | Update fill/stroke properties on an existing shape layer | | set_polygon | Set the number of sides on a polygon layer | | add_line | Add a line layer between two points | | list_shapes | List all available shape layer types |

Related Packages

| Package | Purpose | |---------|---------| | @genart-dev/core | Plugin host, layer system (dependency) | | @genart-dev/mcp-server | MCP server that surfaces plugin tools to AI agents |

Support

Questions, bugs, or feedback — [email protected] or open an issue.

License

MIT