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-layout-guides

v0.1.1

Published

Layout guide design layer plugin for genart.dev

Readme

@genart-dev/plugin-layout-guides

Composition guide design layer plugin for genart.dev — overlay rule of thirds, golden ratio, grid, diagonal, and custom guides on any sketch. Guides are non-destructive display layers that aid composition without affecting export. 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-layout-guides

Usage

import layoutGuidesPlugin from "@genart-dev/plugin-layout-guides";
import { createDefaultRegistry } from "@genart-dev/core";

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

// Or access individual layer types
import {
  gridGuideLayerType,
  thirdsGuideLayerType,
  goldenRatioGuideLayerType,
  diagonalGuideLayerType,
  customGuideLayerType,
  guideMcpTools,
} from "@genart-dev/plugin-layout-guides";

Guide Layers (5)

All guide layers share common style properties and render as dashed lines over the sketch canvas.

Common Properties

| Property | Type | Default | Description | |----------|------|---------|-------------| | guideColor | color | "rgba(0,200,255,0.5)" | Guide line color | | lineWidth | number | 1 | Line width in pixels (0.5–5) | | dashPattern | string | "6,4" | CSS dash pattern (comma-separated lengths) |

Rule of Thirds (guides:thirds)

Draws a 3×3 grid — two vertical and two horizontal lines at 33% and 66% of canvas width/height. Power points at intersections.

(Common properties only.)

Golden Ratio (guides:golden-ratio)

Draws the golden ratio spiral alignment guides — vertical and horizontal lines at 38.2% / 61.8% of canvas dimensions, plus optional spiral overlay.

(Common properties only.)

Grid (guides:grid)

Uniform grid of evenly spaced horizontal and vertical lines.

| Property | Type | Default | Description | |----------|------|---------|-------------| | columns | number | 4 | Number of columns (1–100) | | rows | number | 4 | Number of rows (1–100) |

Diagonal (guides:diagonal)

Corner-to-corner diagonal lines for dynamic composition analysis.

(Common properties only — draws all four diagonals.)

Custom Guide (guides:custom)

A single horizontal or vertical line at a specified canvas percentage.

| Property | Type | Default | Description | |----------|------|---------|-------------| | orientation | select | "horizontal" | "horizontal" or "vertical" | | position | number | 50 | Position as percentage of canvas (0–100) |

MCP Tools (4)

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

| Tool | Description | |------|-------------| | add_guide | Add a composition guide layer (thirds, golden-ratio, grid, diagonal) | | add_custom_guide | Add a single horizontal or vertical guide at a percentage position | | toggle_guides | Show or hide all guide layers simultaneously | | clear_guides | Remove all guide layers from the canvas |

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