hongye007/open-pose-costume

A bilingual reference studio for poses, costumes, and AI character creation.

Open Pose & Costume — Project Explainer

What It Is

Open Pose & Costume is a free, bilingual (Chinese/English) web-based reference workbench for character design, drawing practice, and AI-assisted character creation. It brings three types of visual references into one place — poses, costumes, and character portraits — so users can browse, combine, and generate characters without leaving the site.

It is a static website (no backend database); the reference library is pre-built data, while image generation requires you to configure your own external AI image service.

What's Inside the Library

The project ships with a large curated reference collection (updated 2026-11-02):

Category Count
Pose reference groups 312 groups · 1,559 viewing angles
Costume sets 2,769 total (1,407 realistic, 1,320 anime from an upstream gallery, 42 self-built)
Character reference images 1,527 (893 faces, 606 full-body, 28 self-built head-and-shoulders)
Total reference images 5,855

All characters are AI-generated fictional people — they are not real individuals.

Core Features

1. Browsing & Searching

  • Search by Chinese/English name, keyword, or ID number.
  • Filter by category, material source, character tags, visual style, and (for characters) country/region and hair length.
  • Each filter shows how many matches it has; individual filters can be removed separately.
  • Responsive layout with lazy-loaded images and infinite scroll.
  • Keyboard shortcuts: / to search, ←/→ to navigate details, Esc to close.

2. Multi-View & Depth Maps

  • Self-built poses come with five viewing angles: front, top-down, bottom-up, side, and oblique.
  • Depth maps (AI-inferred relative depth, not calibrated 3D measurements) are available for self-built poses.
  • Hover or click thumbnails to switch views on a single card; details view allows zooming and downloading originals.

3. Favorites & Sharing

  • Save favorite references to a "My Favorites" collection.
  • Share links preserve language, filters, and selected references.

4. One-Click Character Generation

This is the flagship workflow — combine references to generate a character image:

  • Pose and costume are required; character reference is optional (used for facial features and identity).
  • Configure an image service first: enter a service URL, API key, and model. Defaults are https://atomflow.vip with model gpt-image-2, using an OpenAI-compatible POST /v1/images/edits endpoint (multipart format). The generate button stays disabled until an API is configured.
  • Upload your own costume: upload a clothing photo (PNG/JPG/WebP, max 10 MB), click "Extract Costume" to have the AI isolate the garment, review, then confirm. This costs one extra generation request.
  • Style options: follow reference, natural photo, studio texture, or anime illustration.
  • Advanced settings: edit the full prompt, choose viewing angle, enable depth reference, set image size and background.
  • Results: view in three modes (results-only, side-by-side, overlay comparison with a draggable slider). Overlay mode supports alignment adjustment.
  • History: the last 20 successful results are saved in the browser (IndexedDB), with options to restore a combination, delete records, or download all reference images used.

5. Anime Costume Collection

  • 1,350 anime costumes total: 1,320 from the upstream AI Costume Anime Gallery plus 30 self-built.
  • Upstream costumes are numbered to correspond with the realistic ones (same outfit, anime style) and use a separate ANIME- prefix.
  • 8 categories: spring, summer, autumn, winter, underwear, party, swimwear, glamour.
  • Default view shows 932; enable "extended categories" to see all 1,320.
  • Self-built anime costumes cover daily wear, autumn/winter layering, and fantasy styles; each comes as a 1024×1536 PNG plus WebP preview and thumbnail.

6. Companion Skill (for Codex)

A separate repository, open-pose-costume-skill, lets you drive this same pose+costume+character workflow through natural language in Codex. The website is for browsing and picking references; the Skill executes the generation.

How Data Is Stored & Handled

  • API keys: stored only in the current browser session by default; optionally saved to local storage if "remember key" is checked. Keys never enter share links or the repository.
  • History: stored locally in IndexedDB (browser), including results, prompts, parameters, and reference info.
  • Uploaded images: sent to the configured image service only when generating; ungenerated uploads stay in page memory only.
  • Reference selections: saved in the browser as material IDs.
  • Privacy: the Cloudflare Worker used for production image proxying does not save keys or images and cannot act as a general URL proxy.

Running Locally

Requirements: Node.js 22.12+

npm ci
npm run dev

Then open http://127.0.0.1:5199. The project enforces a strict port check — if the port is busy it exits. Use a different port with:

npm run dev -- --port 5200

Local dev forwards Atomflow API requests through Vite to avoid browser CORS issues; custom service URLs connect directly and must support CORS with Authorization headers.

Building & Deploying

  • Deployed via GitHub Pages; pushing to main triggers GitHub Actions to run tests, build with base path /open-pose-costume/, and deploy. Failed tests/builds block the update.
  • Production mobile generation uses a Cloudflare Worker (worker/ directory) that only accepts requests from this site, only forwards to two fixed Atomflow image-edit endpoints, and streams responses. Deploy with npm run worker:deploy, then set IMAGE_PROXY_URL in GitHub Actions Variables.
  • Tech stack: React 19 · TypeScript · Vite · Lucide.
  • Static hosting: build with npm run build and deploy the dist/ folder. Cloudflare Pages: build command npm run build, output dist.

Data & Maintenance Commands

Command Purpose
npm run sync Sync upstream metadata (does not run upstream code or download images)
npm run data:build Rebuild the site index from local snapshots and self-built manifests
npm test Run tests
npm run build Type-check and build the site
npm run images:download Optional: archive upstream pose/costume covers and originals (excludes characters, upstream anime, and self-built materials)

Metadata snapshots live in data/source/; the site index is public/data/catalog.json; sync records are in data/sync-manifest.json. Self-built extensions are maintained separately in data/custom/ with their own manifests (costume.json, pose.json, character.json).

Licensing (Important)

Licensing differs by content type:

Content License / Usage
Project code MIT License
Original pose/costume materials Usable for reference, editing, and commercial work per original site terms; redistribution of the image data itself (including modified versions) is prohibited. The maintainer's archive redistribution permission does not transfer to users.
Self-built materials (and derivative images) Free for personal learning and non-commercial use; commercial use prohibited; any distribution, redistribution, repackaging, or resale requires separate written permission.
Character sources, upstream data, third-party translations Subject to their respective terms (see SOURCES.md and THIRD_PARTY_NOTICES.md)

Key points: images are not MIT-licensed even though the code is. The character library is marked CC0 1.0 but the original site requests no redistribution of image data. Contact @HongyeMain for self-built material permissions.

Quick Links

Related

  • Project
  • Project
  • Project
  • Project