Pixel Art Lab 是一个本地 Web 应用,允许 LLM 通过工具调用循环在 Aseprite 中创建像素画,并支持视觉反馈和迭代修正。

Stars

10

7 天增长

暂无数据

Fork 数

0

开放 Issue

0

开源协议

MIT

最近更新

2026-07-29

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它将大型语言模型与专业像素画编辑器 (Aseprite) 结合,实现了自主、迭代的艺术创作,具备实时预览和撤销功能,且除 OpenRouter API 密钥外全部在本地运行。

适合谁使用

  • 需要生成像素画资源的独立游戏开发者
  • 尝试工具使用型 AI 智能体的研究人员
  • 对 AI 辅助像素画创作感兴趣的艺术家
  • 构建 LLM 驱动的创意工具的开发者

典型使用场景

  • 通过自然语言描述迭代生成和优化像素画精灵
  • 快速原型化游戏资产,无需逐像素手动绘制
  • 探索具备视觉能力的 LLM 在视觉艺术创作中的能力
  • 针对不同模型和提示策略进行像素画生成的基准测试

项目优势

  • 除 OpenRouter 外完全本地运行,保留控制权和隐私
  • 集成真实的像素画编辑器 (Aseprite),而非生成独立图像
  • 迭代循环配合视觉反馈 (render_preview) 和撤销功能,使模型能修正错误
  • 沙箱化的每轮工作空间和自动清理旧运行记录,避免磁盘混乱

使用前须知

  • 需要手动构建 Aseprite 可执行文件和 pixel-mcp 二进制程序,设置较复杂
  • 仅在 Fedora Linux 上测试过,macOS/Windows 上的路径和构建可能不同
  • 需要视觉模型支持预览和撤销;无视觉模型会产生劣质结果且无法直接比较

README 快速开始

Pixel Art Lab

A local web app for making pixel art in Aseprite using LLMs.

It works by using pixel-mcp to let the model interact with Aseprite through a tool-calling loop — the model draws, renders a preview, looks at it, and iteratively fixes the issues.

OpenRouter is currently the only supported provider.

Requirements

You need a working Aseprite executable before any of this does anything — pixel-mcp drives that executable, and this app drives pixel-mcp. Building it yourself from source costs nothing; the prebuilt binaries on Steam and aseprite.org are what you pay for. Either works here, as long as aseprite_path points at it.

Setup

1. pixel-mcp

Clone it into the project root and build it. That is where this app looks by default, and the directory is gitignored, so it stays out of your history:

git clone https://github.com/willibrandon/pixel-mcp.git
cd pixel-mcp && make build && cd ..

Then point it at your Aseprite executable, in ~/.config/pixel-mcp/config.json:

{
  "aseprite_path": "/absolute/path/to/aseprite",
  "timeout": 30
}

aseprite_path must be absolute — pixel-mcp does no discovery and reads no environment variable for it. Confirm the whole chain works before going further:

./pixel-mcp/bin/pixel-mcp --health

Clone it somewhere else if you prefer, and set PIXEL_MCP_BIN in .env to wherever the binary landed.

2. This app

cp .env.example .env

Set OPENROUTER_API_KEY in .env. Everything else there is optional.

npm install
npm run dev        # server on :8787, web on :5273

Open http://localhost:5273. The server listens on localhost only.

Configuration

Environment variables (all optional except the key):

VarDefaultPurpose
OPENROUTER_API_KEYRequired. Stays server-side; never sent to the browser.
PIXEL_MCP_BIN./pixel-mcp/bin/pixel-mcpPath to the MCP server binary
PORT8787Backend port
RUNS_DIR./runsWhere run workspaces are written
GALLERY_DIR`./galle

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

mereyabdenbekuly-ctrl
精选
mereyabdenbekuly-ctrl GitHub avatar

clodex-ide

Clodex is an open-source, local-first agentic IDE that combines persistent AI tasks, code, terminal, browser, Git, models, memory, and governed execution in one Electron workspace, currently in technical preview.

AI 与机器学习AI 智能体
859
0xwilliamortiz
精选
0xwilliamortiz GitHub avatar

openclaude-improved

OpenClaude is an open-source CLI coding agent that runs on any platform and supports a wide range of LLM providers, offering the same tools and workflows as Claude Code.

AI 与机器学习大语言模型
577
Jakubantalik
精选
Jakubantalik GitHub avatar

thinking-orbs

A React component library that renders six hand-tuned animated thought orb loading indicators on a plain 2D canvas, with two purpose-tuned sizes and automatic theme detection for AI and agent UIs.

AI 与机器学习AI 智能体
1,191