# Repository Briefing: Fenrir200678/pixelbench
> Source: https://repoforai.com/repo/Fenrir200678/pixelbench (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/Fenrir200678/pixelbench
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A (85/100 · Maintenance 35/35 · Adoption 10/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v1.0.0 (2026-12-03) — https://github.com/Fenrir200678/pixelbench/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: Self-Hosted, Local AI, GPU
- **Momentum**: 24 ★ total (+2 24h / +8 7d) · 3 forks
- **When to Use**: Best for: Artists and small teams with a working ComfyUI setup who want to generate, retouch, and compare still-image variants locally without rebuilding node graphs for routine jobs. Skip if: You need video models, turnkey cloud inference, or an interface for frequent graph authoring. If you are deploying to untested hardware, validate your target profiles before standardizing on it.

## Overview
```text
### Architecture & Core Mechanics
Pixelbench separates the editing interface from inference. A TypeScript editor opens in the default browser and drives a private ComfyUI process. Pixelbench manages that process's lifecycle while reusing the Python/PyTorch environment and model folders of an existing ComfyUI installation. The Node.js 24+ package lists only `pngjs` and `semver` as runtime dependencies; that small manifest does not reflect the full cost of the inference stack.

JSON profiles connect canvas operations to ComfyUI API workflows. The root layout separates `src/`, `server/`, `profiles/`, `workflows/`, and `nodes/`. Adding a profile means pointing it to a compatible workflow and supplying the required nodes and weights, not building a new canvas tool. Bundled integrations include LanPaint for inpainting, Ultimate SD Upscale for tiled hires fix, and GGUF loaders for quantized models.

### Key Capabilities & Differentiators
The canvas handles text-to-image, img2img, instruction-based editing, masked inpainting, and frame-drag outpainting. Qwen-Image Edit 2.1 accepts up to 15 reference images and FLUX.2 [klein] up to three. Supported ControlNet profiles for SDXL, Z-Image, and Qwen-Image 2.1 allow up to three units per job. SAM3 adds object-aware mask brushing and text-driven mask creation. Operations vary by profile: FLUX.1 Fill targets inpainting and outpainting, while Krea 2 Turbo and MOSS-Image offer generation and inpainting options.

For enlargement, choose an ESRGAN-style upscaler, generative Kandinsky ImageSR 2.0, or plain Lanczos. A detailer can detect and redraw faces, hands, or a described object. Batch variants, a Lightbox, and before/after comparison help select results. Exports include PNG with generation data, JPG, and WebP; video models are not supported.

### Trade-offs & Limitations
Compared with working directly in ComfyUI, Pixelbench cuts out routine graph editing for jobs that fit its canvas tools. It also provides a prompt-to-image loop with hires fix and presets familiar to Automatic1111 or Forge users, but still needs a working ComfyUI environment. The trade-off is that a new model is not automatically a usable editor feature: the selected operation needs a suitable workflow, compatible nodes, and the right weights. Use ComfyUI directly when inspecting or restructuring the graph is the main task.

Local inference keeps images and prompts on the workstation but makes model storage, runtime compatibility, and GPU capacity the operator's responsibility. Testing has focused on Windows 11 with an RTX 4090 and a MacBook Pro M4 Max, with macOS support newer. Treat those as test configurations, not minimum specs. Validate a representative profile at your target resolution and batch size, especially when adding ControlNet, detail passes, or generative upscale. The app's MIT license does not settle third-party node or model terms.

### Hardware & Deployment Guide
Run `install.cmd` on Windows 10 or 11 or `install.command` on Apple Silicon macOS. The installer finds ComfyUI, downloads required custom nodes, and builds the editor. A working ComfyUI installation with PyTorch is required; the installer can offer Node.js 24+ if missing. Windows strongly favors NVIDIA CUDA, while Apple Silicon uses PyTorch MPS. Start with `Pixelbench.cmd` or `Pixelbench.command`; the first launch can take up to 90 seconds while ComfyUI loads nodes.

Installation needs internet access. Bring the main image-model weights yourself and place them in ComfyUI's model folders. The installer can optionally fetch two YOLO detection models, and ControlNet preprocessors can download weights on first use. Images and prompts are processed locally. Release v0.8.0-beta.1 added SAM3-assisted masking; v1.0.0 added lossless 90-degree rotations and flips, plus interactive cropping with fixed or free aspect ratios.
```

## Key Capabilities
```text
- Process ownership: Pixelbench starts and stops a private ComfyUI process while reusing the installed runtime and model folders.
- Workflow extension: JSON profiles point to ComfyUI API workflows and identify missing model files.
- Reference editing: Qwen-Image Edit 2.1 supports up to 15 reference images; FLUX.2 [klein] supports up to three.
- Spatial control: SAM3 refines inpaint masks from brush or text input; supported ControlNet profiles allow up to three units per job.
- Upscaling choices: ESRGAN-style models, Kandinsky ImageSR 2.0, or model-free Lanczos resizing.
- Resource and output controls: Inspect live VRAM usage, unload models with one click, and preserve generation data in PNG exports.
```

## Quick Start / Clone
```bash
git clone --depth 1 https://github.com/Fenrir200678/pixelbench.git
cd pixelbench
```
