README.md

Phaino

Phaino is an open-source AI video and image studio on Comfy Cloud. Pick a preset, add a prompt and a first frame, and every shot runs through a real ComfyUI workflow you can open, edit and fork.

What's in it

  • Explore: the home grid of all presets and categories.

  • Tools: Camera moves, Image and Video tool pages bound to presets, with a live job runner: uploads, progress over SSE, cancel, and recent runs.

  • Presets and models: 15 presets in presets/:

    PresetToolModelLicense
    bullet-time, crash-zoom, dolly-in, drone-pull-out, fpv-dive, orbit, whip-panCameraLTX 2.5Open
    ltx25-i2vVideoLTX 2.5Open
    wan22-i2vVideoWan 2.2Open
    kling3-videoVideoKling 3.0Partner
    seedance25-i2vVideoSeedance 2.5Partner
    flux2-klein, flux2-klein-fastImageFLUX.2 KleinOpen
    qwen-imageImageQwen ImageOpen
    nano-banana-2ImageNano Banana 2Partner
  • Library: every generated output, shareable to social.

  • Social posting: user-added connections (managed services or direct API keys) publish outputs to YouTube, Instagram, X, LinkedIn, TikTok, Threads and Bluesky.

  • Tracker: /tracker shows what's done and what's next (data in tracker/tasks.json).

Repository layout

1phaino/
2 studio/ Studio app (Next.js), the main product
3 website/ Marketing site (Astro)
4 presets/ Preset workflows, exported by the M2 pipeline
5 tracker/ Project task data for /tracker
6 brand/ Brand kits (brand/phaino)
7 examples/ Real sample outputs, named <preset-id>_<n>.<ext>

Requirements

  • Node.js 22.13+
  • pnpm (repo pins 12.x via packageManager)
  • ffmpeg on your PATH

Quick start

bash
1pnpm install
2cp studio/.env.example studio/.env.local # fill in a backend (below)
3pnpm dev:studio

Open http://localhost:3000. Check backend connectivity at http://localhost:3000/api/health.

Comfy Cloud setup

Create an API key at platform.comfy.org/profile/api-keys and set it as COMFY_API_KEY in studio/.env.local. Partner presets (Kling, Seedance, Nano Banana) run on hosted API nodes and use Comfy credits; open presets run on Comfy Cloud and need the model files listed in presets/README.md.

Advanced: your own ComfyUI

To run on your own machine instead, put the Comfy API v2 in front of a local ComfyUI:

bash
1pip install comfy-api-proxy
2comfy-api-proxy

ComfyUI keeps serving on 127.0.0.1:8188; the proxy serves the Comfy API v2 on 127.0.0.1:8189. Set COMFY_BASE_URL=http://127.0.0.1:8189 in studio/.env.local.

Environment variables

All variables live in studio/.env.local (copy studio/.env.example). The old CUTAWAY_DATA_DIR and CUTAWAY_USER names still work as fallbacks.

VariablePurpose
COMFY_API_KEYComfy Cloud / Comfy Router API key
COMFY_BASE_URLOptional custom Comfy API v2 endpoint (blank = Comfy Cloud)
PRESETS_DIRPreset folder (default ../presets from studio/)
FORKS_DIRUser forks folder (default ../forks from studio/)
TRACKER_FILETracker data file (default ../tracker/tasks.json from studio/)
PHAINO_DATA_DIRLocal data folder (default ./.data under studio/)
PHAINO_USERLocal user name (default local)
PHAINO_SITE_URLPublic origin for OG metadata (default http://localhost:3000)

Social posting

Open the studio's Settings, scroll to Social accounts and choose "Add connection". Supported providers: Zernio, Post for Me and PostFast (managed services that own the platform connections), plus direct X, Bluesky, YouTube, LinkedIn, Threads and Instagram accounts. TikTok works through the managed services only. Connection credentials are stored locally in studio/.data. Once connected, share generated shots from Library or a finished run.

Scripts

CommandWhat it does
pnpm dev:studioStudio dev server on port 3000
pnpm dev:websiteWebsite dev server
pnpm preview:websiteServe the built website
pnpm buildBuild all packages
pnpm lintLint all packages
pnpm typecheckType-check all packages
pnpm testRun all tests

Presets

Presets live in presets/, one folder per preset (preset.json + exported workflow.json/workflow_api.json + thumb.webp). Schema, binds and the model files each open preset needs are documented in presets/README.md.

Dev: regenerating workflows

workflow.json/workflow_api.json are produced by loading each preset's source template into a ComfyUI instance and exporting via graphToPrompt(). A CPU-only install is enough; no models needed:

bash
1git clone --depth 1 --branch v0.42.1 https://github.com/comfyanonymous/ComfyUI.git %USERPROFILE%\.cutaway\comfyui
2cd %USERPROFILE%\.cutaway\comfyui
3python -m venv .venv
4.\.venv\Scripts\pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
5.\.venv\Scripts\pip install -r requirements.txt
6.\.venv\Scripts\python main.py --cpu --listen 127.0.0.1 --port 8188

Then from the repo root: pnpm --filter phaino-studio export:workflows.

Marketing site

Astro, TypeScript and Tailwind. pnpm dev:website runs it; it deploys from website/. The visual direction is in website/docs/landing-design.md, and media slots are documented in website/public/media/README.md.

Brand

Brand assets and the guidelines board live in brand/phaino.

Roadmap

The camera moves, image and video tools, job runner, library and social posting are built. Next up: workflow viewer and forking (M4), the first real run on Comfy Cloud (M5), and export to FCPXML/EDL (M8). The live list is at /tracker; the data is in tracker/tasks.json.

License

MIT