pixelfx is a free MIT library of 244 pixel art game effects drawn by code, with sprite sheet export and a Claude Code skill for making new ones.
The repo is by Patch (patch.gg) and is MIT licensed, for code and effects, commercial use included. Each effect is one JavaScript file in src/fx/<category>/ that draws pixels at run time. Because there are no images, you can play an effect live, recolor it, mirror it, reseed it or render it to a sprite sheet.
palette, a dark-to-bright list of hex colors, so a fire can burn blue or a heal glow pink without touching its code.The README says an effect alone looks like a sticker, so 61 of them come with a character that winds up, lets go, freezes on contact and recovers, while a straw target takes the hit. Twelve "moves" chain effects into whole attacks, such as an arrow shot, a dash strike, an earth stomp, a fireball throw and a holy smite. The stock character is a grey 24 by 38 pixel dummy built on a 3D skeleton and drawn down to pixels, which the README compares to how Dead Cells makes its sprites.
act on each effect, or under meta.pixelfx.act in a sprite sheet's JSON, with wind-up, recovery and the freeze time at each hit. If you have your own character, you can start your wind-up that long before the effect and pause everything for the freeze.npm i github:patch-gg/pixelfx, or copy src/core and the effects you want. The README names canvas, Phaser, PixiJS, Kaplay and three.js, and says there are no dependencies.node tools/render.mjs ice/frost-nova --sheet writes a transparent PNG of every frame and an Aseprite-style JSON with frame rects, durations, fps, loop, columns and the pivot. The README says Phaser's atlas loader and the Aseprite importers for Godot and Unity read it, and names GameMaker, Defold, LÖVE and Bevy as other targets. node tools/sheets.mjs exports the whole library.--gif and --mp4 show the motion, and node tools/serve.mjs runs the gallery locally with your own effects in it. The tools need only Node.The pixelfx skill teaches Claude Code to find, use, export and make effects. In Claude Code, run /plugin marketplace add patch-gg/pixelfx then /plugin install pixelfx@pixelfx, or copy skills/pixelfx into ~/.claude/skills/.
node tools/new.mjs arcane/my-spell creates a starting file, render.mjs writes a contact sheet to look at, and check.mjs flags problems such as seams, unseeded randomness and slow frames. The loop is draft, render, look, fix, render again. docs/AUTHORING.md holds the drawing API and the quality bar.src/core/sim.js and the effects that say so at the top adapt his MIT code, and that parts also come from Hollow Crown's MIT source. The frame shape matches Sprite Fusion's VFX, so the two libraries can draw into one frame.gallery/fonts is Patch's own and is not under the MIT license. See NOTICE.md in the repo.