Hosted version: accounts, storage and workers#5

openedOct 20, 2026bySScreen

Phaino currently runs locally only: one user, no login, files in the local data folder, and generations on the user's own Comfy key. This issue tracks a hosted version like Higgsfield, where people sign in and use it in the browser.

Needed

  • Accounts: sign-in and per-user workspaces. Jobs, uploads, outputs, forks, editor projects and settings scoped to a user. Today there is one shared editor project and no auth.
  • Database: Postgres (or similar) instead of the local SQLite and JSON files under .data.
  • Storage: S3 or R2 for uploads, outputs and renders, with signed URLs, size limits and cleanup.
  • Paying for generations: either each user connects their own Comfy key (stored encrypted), or Phaino runs on its own Comfy account and sells credits (Stripe). Check Comfy's terms on reselling first.
  • Workers: move Comfy job polling and ffmpeg renders out of the web server into a queue (for example BullMQ on Redis) on machines with ffmpeg. Serverless hosting can't run long renders.
  • Safety: per-user rate limits and quotas, prompt and output moderation (NSFW, CSAM).
  • Legal: terms, privacy policy, and model licence notes in the UI (HunyuanVideo is non-commercial, FLUX Klein's licence limits commercial use by revenue, MiniMax H3 local use needs a licence in some regions).
  • Ops: domain, deploy config, error tracking, backups, monitoring.

Social publishing (separate issue) depends on accounts and encrypted token storage.