Short answer: pixelfx is a free, open source library of 244 pixel art effects (fire, explosions, magic, weather, UI and more). Each effect is a small JavaScript file, not an image. You can run them in a browser game, export them as sprite sheets for other engines, or install the included Claude Code skill and ask the agent to add, export or create effects for you.
What pixelfx is
Most pixel art effects come as finished sprite sheets. pixelfx takes a different route: every effect is drawn by code. A frost nova, a lightning strike or a coin pickup is a short file that draws itself frame by frame. Because nothing is a fixed image, you can change colors with a palette option and render the same effect again in seconds.
The library has 21 categories, including fire, water, ice, lightning, sci-fi, melee, projectiles, holy, shadow, status effects, weather, pickups, screen transitions and small critters. There is also an "acting" part: 61 effects that come with a simple grey character, and 12 moves that chain effects together with a wind-up, a short freeze on hit and a recovery.
How you use it
- In a browser game: install it with npm or copy only the core folder and the effects you want. It has no runtime dependencies and works with canvas, Phaser, PixiJS, Kaplay and three.js according to the project page.
- In other engines: a command renders any effect as a transparent PNG grid with a JSON file next to it, in an Aseprite style format. The README says this works for Godot, Unity, GameMaker, Defold, LÖVE and Bevy. Another command exports the whole library at once.
- As GIF or MP4: the same render tool can output a short GIF or video, which is handy for social posts or previews.
- With Claude Code: the repo ships a skill and a plugin. Once installed, you can ask things like "add a fire effect to my game", "export these as sprite sheets for Godot" or "make five versions of a new spell and keep the best two." The agent uses the project's own tools to create, render and check new effects.
There is also a gallery on GitHub Pages where you can browse the effects before installing anything.
Who it's for
- People making small indie or browser games who need effects fast and don't draw pixel art.
- Creators of retro style content, short animations or game devlogs who want clips they can export as GIF or MP4.
- Agent builders who want a clear example of a skill that lets a coding agent produce visual assets, not only code.
Requirements
Node 18 or newer for the command line tools. The effects themselves run in any modern browser. No API keys, no account and no paid service are needed for the library or the skill. To use the skill you need Claude Code.
What to watch out for
- Young project. It is at version 0.3.0, with only a handful of commits so far. Expect changes.
- The font is not MIT. The code and effects are MIT, so commercial use is allowed. The pixel font in the gallery belongs to Patch and has its own terms.
- Character effects are built for the demo dummy. Effects drawn on a body are made for the small 24 by 38 grey character. If you use your own character, you need to render those effects again for it.
- Optional publishing to Patch. The README describes a way to publish to the Patch platform with its own CLI and login, which needs the Patch desktop app on Windows. This is optional. We could not confirm whether Patch charges for anything.
- Pixel art only. If your game uses a smooth or realistic style, these effects won't match.
The project has around 4,000 stars on GitHub at the time of writing.
Source: patch-gg/pixelfx on GitHub
More AI tools and ready prompts at masterphub.io