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-filters

v0.1.1

Published

Image filter design layer plugins for genart.dev

Readme

@genart-dev/plugin-filters

Image filter design layer plugin for genart.dev — apply film grain, vignette, duotone, blur, and chromatic aberration on top of any sketch. Filters are composited as full-canvas 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-filters

Usage

import filtersPlugin from "@genart-dev/plugin-filters";
import { createDefaultRegistry } from "@genart-dev/core";

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

// Or access individual layer types
import {
  grainLayerType,
  vignetteLayerType,
  duotoneLayerType,
  blurLayerType,
  chromaticAberrationLayerType,
  filterMcpTools,
} from "@genart-dev/plugin-filters";

Filter Layers (5)

All filter layers span the full canvas bounds by default and are composited over the rendered sketch.

Film Grain (filter:grain)

Adds monochromatic or colored photographic grain.

| Property | Type | Default | Description | |----------|------|---------|-------------| | intensity | number | 0.15 | Grain strength (0–1) | | size | number | 1.5 | Grain particle size in pixels | | colored | boolean | false | Add chromatic color variation to grain | | seed | number | 0 | Noise seed for reproducible grain | | blendMode | select | "overlay" | Canvas blend mode | | opacity | number | 1 | Layer opacity (0–1) |

Vignette (filter:vignette)

Darkens or lightens canvas edges to draw focus toward the center.

| Property | Type | Default | Description | |----------|------|---------|-------------| | color | color | "#000000" | Vignette color | | strength | number | 0.5 | Effect strength (0–1) | | softness | number | 0.5 | Edge falloff softness (0–1) | | roundness | number | 1 | Shape — 0 = rectangular, 1 = elliptical | | opacity | number | 1 | Layer opacity (0–1) |

Duotone (filter:duotone)

Maps luminance to a two-color gradient — shadows to one hue, highlights to another.

| Property | Type | Default | Description | |----------|------|---------|-------------| | shadowColor | color | "#1a1a2e" | Color mapped to dark values | | highlightColor | color | "#f5e6d3" | Color mapped to light values | | contrast | number | 1 | Luminance contrast multiplier (0.5–2) | | opacity | number | 0.85 | Layer opacity (0–1) | | blendMode | select | "normal" | Canvas blend mode |

Blur (filter:blur)

Gaussian blur over the full canvas.

| Property | Type | Default | Description | |----------|------|---------|-------------| | radius | number | 4 | Blur radius in pixels (0–100) | | opacity | number | 1 | Layer opacity (0–1) |

Chromatic Aberration (filter:chromatic-aberration)

Splits RGB channels with a radial offset, simulating lens distortion.

| Property | Type | Default | Description | |----------|------|---------|-------------| | strength | number | 0.005 | Offset strength relative to canvas width (0–0.05) | | angle | number | 0 | Shift angle in degrees | | centerX | number | 0.5 | X center of aberration (0–1) | | centerY | number | 0.5 | Y center of aberration (0–1) | | opacity | number | 1 | Layer opacity (0–1) |

MCP Tools (6)

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

| Tool | Description | |------|-------------| | apply_grain | Add or update a film grain layer | | apply_vignette | Add or update a vignette layer | | apply_duotone | Add or update a duotone color-map layer | | apply_blur | Add or update a Gaussian blur layer | | apply_chromatic_aberration | Add or update a chromatic aberration layer | | list_filters | List all available filter 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