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

- **GitHub URL**: https://github.com/nanxfu/aigc-studio
- **Official Docs / Website**: https://aigc-studio-8rj.pages.dev/
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: JavaScript
- **License**: See repository
- **Engineering Health**: B+ (73/100 · Maintenance 35/35 · Adoption 12/25 · Releases 20/20 · License 6/20)
- **Latest Release**: v0.18.2 (2026-11-28) — https://github.com/nanxfu/aigc-studio/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Self-Hosted, Local AI, MCP, GPU, API
- **Momentum**: 27 ★ total (+1 24h / +5 7d) · 4 forks
- **Topics**: `aigc`, `colab`, `comfyui-alternative`, `flux`, `game-assets`, `kaggle`, `mcp`, `stable-diffusion`
- **When to Use**: Best for: Indie game teams and creators who want to generate on local or rented compute and turn the results into sprite sheets, editable vectors, or texture maps from one desktop app. Skip if: You need arbitrary node graphs, unattended headless MCP inference, or guaranteed offline execution and commercial clearance across the entire model catalog.

## Overview
```text
### Architecture & Core Mechanics
AIGC Studio separates desktop interaction and job control from model execution. Electron hosts the React/Vite interface in `web/`, while the Node.js service in `server/` defaults to `127.0.0.1:5130` and uses a random authentication token on each launch. Model configurations live in `models/`. Depending on the backend, jobs run through a GPU worker, a commercial API, or a supported local runtime. Each job keeps the backend chosen at submission, so switching providers does not move queued work.

The package includes `onnxruntime-web` for browser-side inference, `@visioncortex/vtracer` for vectorization, and Three.js for 3D rendering. The assistant uses the `pi-ai` and `pi-agent-core` dependencies; its proposal cards let users edit or approve a plan before submission. `mcp/server.mjs` uses the MCP integration to share the running app’s compute session and output directory. Media and `meta.json` are archived locally, and the desktop uses Electron `safeStorage` and AES-256-GCM for credential storage.

### Key Capabilities & Differentiators
The main workflow is image generation and editing: SDXL Lightning supports image-to-image and masked inpainting, while FLUX.2 Klein and Qwen-Image 2.1 support multiple reference images with transparency. Outpainting and 2× upscaling are available, with upscaling preferring tiled local Real-ESRGAN ONNX. Batch jobs report inference-step progress and can be reprioritized or canceled; edits form a revision tree. Video is a separate provider-backed path through SiliconFlow’s MiniMax H3, supporting text or first/last-frame inputs and frame extraction for further editing.

The workshop is useful beyond generation. It handles pixel-grid cleanup, sprite slicing with `atlas.json` export, seamless tiling, and editable SVG conversion locally. Depth effects use a roughly 37 MB DA3-Small ONNX model by default, and background removal defaults to local RMBG-1.4 via WebGPU or WASM. PBR extraction produces albedo, normal, roughness, and metallic maps using local CUDA on an NVIDIA GPU with at least 8 GB of VRAM or a cloud GPU. Physical relighting runs locally; IC-Light relighting uses a cloud GPU.

### Trade-offs & Limitations
Compared with ComfyUI, the app trades graph-level control for a more prescribed desktop workflow: choose compute, generate, revise, and finish an asset in one place. Kaggle and Colab make experimentation possible without a discrete GPU, but a typical cold start takes 3–10 minutes and free capacity is subject to provider quotas and availability. The desktop defaults to a 30-minute idle shutdown; before actively connecting to another compute source, finish current work and close the old session. Paid APIs avoid notebook startup, but add usage charges and provider-side processing.

Local archiving does not make remote inference offline or keep all inputs on-device. For sensitive work, verify that each selected operation stays local; PBR extraction, AI relighting, and some generation paths have distinct hardware or cloud requirements. Licensing also needs a component-by-component check. The application is identified as MIT, although the repository license field is unspecified. Qwen-Image 2.1 and FLUX.2 Klein 9B are listed as non-commercial, and the optional MobileCLIP-S0 component has no stated commercial grant here.

### Hardware & Deployment Guide
Windows x64 has installer and portable builds. On Windows, macOS, or Linux, the source path requires Node.js 20 or newer (22+ recommended): run `npm install`, copy `.env.example` to `.env`, and start the desktop with `npm run dev`. The service and Vite UI can run separately with `npm run dev:server` and `npm run dev:web`. Python 3.10+ is needed when running your own GPU worker or its Python tests, not for the ordinary desktop setup. For self-hosted compute, use a private worker; commercial APIs provide a separate path that avoids notebook startup.

For offline inference, prepare the local engine and download supported model weights and precision variants first. Selected GGUF configurations use Vulkan on AMD or Intel hardware, with CUDA available on supported NVIDIA paths. FLUX.2 Klein 4B offers Q4_0 and Q8_0 variants; its 32-step Base quality mode can be slow on an integrated GPU, and end-to-end output quality for that path still awaits dedicated hardware validation. v0.17.0 added a GGUF runtime for the compact Z-Image worker image; the v0.18.2 release summary provides a changelog link but does not enumerate changes.
```

## Key Capabilities
```text
- Compute routing: Queued jobs retain their original backend when the desktop switches providers.
- Local inference: Selected GGUF models run through Vulkan; supported NVIDIA paths use CUDA, and FLUX.2 Klein 4B offers Q4_0 and Q8_0 variants.
- Image editing: Inpainting, outpainting, and upscaling feed a revision tree; 2× upscaling prefers tiled local Real-ESRGAN ONNX.
- Asset finishing: Sprite slicing exports a sprite sheet and `atlas.json`; the workshop also produces editable SVG and four PBR texture maps.
- MCP integration: `mcp/server.mjs` exposes generation, batches, and upscaling through the running desktop session.
- Local state: The service binds to `127.0.0.1` by default with a per-launch random token, while outputs and generation parameters are archived locally.
```

## Quick Start / Clone
```bash
npm run mcp:config
```
