comfy-frontend
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data β all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v17View latest version
A web interface for interacting with ComfyUI API endpoints. This application allows users to:
- Connect to any ComfyUI instance by IP address
- Upload and execute workflow JSON files
- Monitor job progress and view results
- Download generated images
βββ backend/
β βββ index.ts # Main Hono server
β βββ README.md
βββ frontend/
β βββ components/
β β βββ App.tsx # Main React application
β β βββ WorkflowUpload.tsx
β β βββ JobStatus.tsx
β β βββ ImageGallery.tsx
β βββ index.html # Main HTML template
β βββ index.tsx # Frontend entry point
β βββ style.css
βββ shared/
β βββ types.ts # Shared TypeScript types
β βββ utils.ts # Shared utility functions
βββ README.md
- IP Configuration: Connect to any ComfyUI instance
- Workflow Upload: Upload and validate workflow JSON files
- Job Management: Queue workflows and monitor progress
- Image Gallery: View and download generated images
- Real-time Updates: WebSocket support for live progress updates
- Configure Server: Enter your ComfyUI server IP address (e.g.,
localhost,192.168.1.100) - Upload Workflow:
- Drag & drop a workflow JSON file, or
- Paste JSON content directly into the text area
- Get workflow JSON from ComfyUI: Settings βοΈ β "Save (API Format)"
- Execute: Click "Execute Workflow" to start generation
- Monitor: Switch to "Job Status" tab to see real-time progress
- View Results: Generated images appear in the gallery with download options
- History: Check the "History" tab to see previous executions
- Open ComfyUI in your browser
- Load or create your desired workflow
- Click the gear icon (βοΈ) in the menu
- Select "Save (API Format)" to download the JSON file
- Upload that file to this frontend or copy-paste its contents
GET /- Serve the frontend applicationPOST /api/execute- Execute a workflowGET /api/status/:jobId- Get job statusGET /api/history- Get execution historyGET /api/images/:filename- Serve generated images