WP Manifestindependent plugin directory
manifest / editor / wp-pixel-art-block

Pixel Art Creator

WordPress Gutenberg block plugin for creating pixel art

by Micha Krapp · github.com/mfgmicha/wp-pixel-art-block · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/mfgmicha/wp-pixel-art-block/archive/refs/heads/main.zip

An interactive pixel art creator block for WordPress. Visitors can paint pixel art directly on your site using a configurable grid and your theme's color palette.

  • Author: Micha Krapp
  • Version: 0.3.0
  • Requires at least: WordPress 6.7
  • Requires PHP: 8.2
  • Tested up to: WordPress 6.8
  • License: GPLv2 or later
  • Tags: block, pixel-art, interactive, creative, grid

Description

Pixel Art Creator brings creative fun to your WordPress site. Place the block on any page or post to give your visitors an interactive pixel art canvas.

Features:

  • Configurable grid size — set columns and rows between 4 and 32 via the block sidebar
  • Automatically uses your theme's color palette for a consistent look
  • Click a color, then click grid cells to paint them
  • Drag to paint multiple cells at once
  • Select white and click to erase
  • One-click Reset button clears the entire canvas
  • Fully responsive — the grid scrolls horizontally on small screens
  • Pure client-side interaction — no data is saved or sent to a server

Perfect for creative portfolios, children's sites, art blogs, or any site that wants to add a playful interactive element.

Test on WordPress Playground

Try the Pixel Art Creator Block instantly in your browser without installing WordPress locally:

Open in WordPress Playground

Running Tests

Three test options are available:

Option 1: Cloud Tests (recommended for full coverage) Uses the hosted WordPress Playground - supports ES modules for full interactivity testing.

npm run test:cloud

Option 2: CI Tests (build + cloud) Builds the plugin and runs cloud tests in one command.

npm run test:ci

Option 3: Local Tests Uses programmatic WordPress Playground - server starts/stops automatically.

npm test

Note: ES modules have known limitations locally (use cloud tests for full coverage).

Automated PR Previews

Every PR automatically gets a WordPress Playground preview via GitHub Actions. The plugin is built and deployed to a temporary URL where you can test changes before merging.

Local Development

To run a local WordPress server for development or Playwright MCP testing:

npm run build        # Build plugin files first (required)
npm run dev          # Start local WordPress Playground server
  • Server URL: http://localhost:4218
  • Login credentials: admin / password

The dev server persists and can be used while developing or running agentic tests via Playwright MCP.

Installation

  1. Upload the plugin files to the /wp-content/plugins/pixel-art-creator directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. Add the "Pixel Art Creator" block to any post or page via the block editor.

Frequently Asked Questions

Can I change the grid size?

Yes! Use the block sidebar (Inspector Controls) to set the number of columns and rows, each between 4 and 32.

Where do the colors come from?

The block uses your active theme's color palette. If no theme palette is found, a set of sensible default colors is provided.

Is the pixel art saved?

No. The pixel art is purely client-side and resets when the page is reloaded. This keeps things lightweight and fun.