Calendar-based scheduling tool for ComfyUI workflows with workflow library management
A modern React application that extends ComfyUI with calendar-based scheduling and workflow library management. Schedule your AI content generation in advance with a beautiful, minimalist interface.
- Upload & Organize: Store ComfyUI API workflow JSON files in your library
- Custom Tagging: Tag workflows by task type, media format, model name, and more
- Smart Filtering: Filter and search workflows using tag-based system
- Full Management: Rename, delete, and organize your workflow collection
- Card-Based Display: Beautiful grid layout with metadata and preview
- Visual Interface: Monthly calendar view for easy scheduling
- Time Selection: Schedule workflows to specific dates and times
- Task Cards: Color-coded appointment cards with status indicators
- Drag & Drop: Intuitive workflow assignment to calendar dates
- Edit & Manage: Modify or delete scheduled tasks with ease
- Parameter Customization: Edit seeds and prompts per scheduled task
- Background Scheduler: Continuously monitors for upcoming tasks
- Auto-Execution: Workflows run automatically at scheduled times
- Real-time Updates: Live progress monitoring via WebSocket
- Queue Management: Handle multiple concurrent tasks efficiently
- Error Handling: Automatic retry logic for failed executions
- Status Tracking: Visual indicators (pending β running β completed)
- NSL Design System: Dark purple/violet theme with golden accents
- Smooth Animations: Polished transitions and interactions
- Responsive Design: Works on all screen sizes
- Loading States: Skeleton loaders and progress indicators
- Toast Notifications: Real-time user feedback
- Error Boundaries: Graceful error handling
- IndexedDB Storage: All data stored locally in your browser
- No Backend Required: Fully client-side application
- Fast Performance: Optimized queries with Dexie.js
- Data Export: Backup your workflows and schedules
Before you begin, ensure you have the following installed:
git clone https://github.com/MushroomFleet/ComfyUI-Yesterday.git
cd ComfyUI-Yesterdaynpm install
# or
bun installComfyUI must be running with CORS enabled for the app to connect:
# Standard ComfyUI
python main.py --enable-cors-header http://localhost:3000
# Windows Standalone Build
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --listen 0.0.0.0 --enable-cors-header http://localhost:3000npm run dev
# or
bun devThe app will be available at: http://localhost:3000
-
Export workflows from ComfyUI
- Create your workflow in ComfyUI web interface
- Click "Save (API Format)" button
- Save the JSON file to your computer
-
Add to Library
- Navigate to API Flow Manager page
- Click Upload Workflow button
- Select your exported JSON file
- Add a descriptive name
- Add tags (e.g., "t2i", "image", "SDXL", "portrait")
- Optionally add a description
- Click Add to Library
-
Organize with Tags
- Use consistent tagging for easy filtering
- Common tag categories: task type, media format, model name, style
- Filter workflows using the tag panel
-
Open Calendar
- Navigate to Calendar page
- View monthly calendar with any existing scheduled tasks
-
Schedule a Workflow
- Click on a date in the calendar
- Select a time slot (hour selection)
- Choose a workflow from your library
- Review the task details
- Click Schedule
-
Manage Scheduled Tasks
- Tasks appear as colored cards on calendar dates
- Click task cards to view details
- Edit or delete tasks as needed
- Status colors indicate task state (pending, running, completed)
- Scheduler runs automatically in the background
- Tasks execute at their scheduled time (when app is open)
- Real-time status updates show progress
- Notifications inform you of completion or errors
- View results in task history or image gallery
- Generated outputs saved according to ComfyUI settings
Test Workflow: Use the Test Workflow button in the header to quickly test new workflows without scheduling them.
Task History: View all past executions, including status, outputs, and any errors.
Settings: Configure scheduler behavior (check interval, concurrent tasks, retry logic).
ComfyUI-Yesterday/
βββ src/
β βββ components/ # React components
β β βββ layout/ # Header, Sidebar, Layout
β β β βββ Header.tsx
β β β βββ Sidebar.tsx
β β β βββ Layout.tsx
β β βββ library/ # Workflow library components
β β β βββ WorkflowCard.tsx
β β β βββ WorkflowUploadModal.tsx
β β β βββ WorkflowDetailModal.tsx
β β β βββ TagFilterPanel.tsx
β β β βββ ...
β β βββ calendar/ # Calendar and scheduling
β β β βββ CalendarView.tsx
β β β βββ ScheduleTaskModal.tsx
β β β βββ TaskCard.tsx
β β β βββ TimeSlotSelector.tsx
β β β βββ WorkflowSelector.tsx
β β βββ shared/ # Shared components
β β β βββ EmptyState.tsx
β β β βββ ErrorBoundary.tsx
β β β βββ SkeletonCard.tsx
β β βββ ui/ # shadcn/ui components
β βββ pages/ # Route pages
β β βββ Dashboard.tsx
β β βββ WorkflowLibrary.tsx
β β βββ Calendar.tsx
β β βββ History.tsx
β β βββ Settings.tsx
β β βββ TestWorkflow.tsx
β βββ services/ # API and business logic
β β βββ comfyui.service.ts # ComfyUI API wrapper
β β βββ websocket.service.ts # WebSocket connection
β β βββ storage.service.ts # IndexedDB operations
β β βββ scheduler.service.ts # Task scheduler
β β βββ task-queue.service.ts # Queue management
β β βββ database.ts # Dexie database setup
β βββ hooks/ # Custom React hooks
β β βββ useWorkflowLibrary.ts # Workflow CRUD
β β βββ useScheduledTasks.ts # Task CRUD
β β βββ useScheduler.ts # Scheduler control
β βββ types/ # TypeScript definitions
β β βββ comfyui.types.ts
β β βββ workflow-library.types.ts
β β βββ scheduled-task.types.ts
β βββ utils/ # Utility functions
β β βββ error-messages.ts
β β βββ test-data.ts
β βββ lib/ # Shared utilities
β βββ utils.ts
βββ docs/ # Documentation
β βββ API-implementation-coverage.md
β βββ comfyORG-APIroutes.md
β βββ initial-dev-handoff.md
β βββ yesterday/ # Development docs
β βββ yesterday-INDEX.md
β βββ yesterday-README.md
β βββ yesterday-quickstart.md
β βββ yesterday-phase*.md
βββ public/ # Static assets
βββ package.json
βββ tailwind.config.ts # Tailwind with NSL colors
βββ vite.config.ts
βββ README.md # This file
ComfyUI-Yesterday uses the NSL (Narrative Spittoon Inversion) design system, featuring a sophisticated dark theme with purple and golden accents.
Primary Colors (Purple/Violet)
- Primary:
hsl(263 70% 60%)- Main brand color, buttons, links - Primary Glow:
hsl(263 80% 70%)- Hover states, glows, active elements
Accent Colors (Golden)
- Accent:
hsl(38 92% 50%)- CTAs, highlights, important actions - Accent Glow:
hsl(38 100% 60%)- Hover states for accent elements
Background Colors
- Background:
hsl(250 24% 10%)- Main dark background - Card:
hsl(250 20% 14%)- Elevated surfaces, cards - Card Hover:
hsl(250 20% 16%)- Interactive card hover state
- Pending:
hsl(263 70% 60%)(primary purple) - Task scheduled, waiting - Running:
hsl(263 80% 70%)(primary glow) - Currently executing - Completed:
hsl(142 71% 45%)(success green) - Successfully finished - Failed:
hsl(0 72% 51%)(destructive red) - Execution failed - Cancelled:
hsl(250 10% 65%)(muted gray) - User cancelled
- Font: System font stack for optimal rendering
- Shadows: Elegant shadow system with glow effects
- Animations: Smooth transitions (200-300ms)
- Border Radius: Consistent rounded corners (0.5rem standard)
See NSL Branding Guide for complete design system documentation.
ComfyUI-Yesterday implements all ComfyUI API endpoints for complete functionality:
POST /prompt- Submit workflows for executionGET /prompt- Get queue statusGET /queue- Current queue statePOST /queue- Manage queue (clear, delete items)POST /interrupt- Stop current execution
GET /history- All execution historyGET /history/{prompt_id}- Specific prompt historyPOST /history- Clear/delete history
GET /object_info- All available node typesGET /object_info/{node_class}- Specific node detailsGET /models- Available modelsGET /embeddings- Available embeddingsGET /extensions- Registered extensionsGET /system_stats- System information
POST /upload/image- Upload imagesPOST /upload/mask- Upload masksGET /view- View/download generated images
- WebSocket real-time updates
- User data management
- Multi-user support
π Full API Documentation: See API-implementation-coverage.md
- React 18.3 - UI framework
- TypeScript 5.8 - Type safety
- Vite 5.4 - Build tool and dev server
- React Router 6.30 - Client-side routing
- shadcn/ui - Component library
- Radix UI - Primitive components
- Tailwind CSS 3.4 - Utility-first CSS (NSL theme)
- Lucide React - Icon system
- TanStack Query 5.83 - Server state management
- Dexie.js 4.0 - IndexedDB wrapper
- dexie-react-hooks - React integration for Dexie
- React Hook Form 7.61 - Form handling
- Zod 3.25 - Schema validation
- react-big-calendar - Calendar UI component
- date-fns - Date manipulation and formatting
- uuid - Unique ID generation
- recharts - Charts and visualization
- sonner - Toast notifications
- cmdk - Command menu
The app runs on port 3000 by default. To change this, edit vite.config.ts:
server: {
host: "::",
port: 3000, // Change to your preferred port
}Important: CORS configuration in ComfyUI must match your app's port!
ComfyUI must be started with the correct CORS origin:
# If app runs on port 3000
python main.py --enable-cors-header http://localhost:3000
# If app runs on port 8080
python main.py --enable-cors-header http://localhost:8080Configure scheduler behavior in the Settings page:
- Check Interval: How often to check for due tasks (default: 60 seconds)
- Concurrent Tasks: Maximum simultaneous executions (default: 1)
- Retry Attempts: Maximum retries for failed tasks (default: 3)
- Missed Task Behavior: Action for missed tasks (execute immediately or mark as missed)
ComfyUI-Yesterday uses IndexedDB for client-side data persistence via Dexie.js.
Store: workflowLibrary
- Stores uploaded workflow JSON files with metadata
- Indexed by: id, name, createdAt, tags (multi-entry)
- Schema: WorkflowLibraryItem (see types/workflow-library.types.ts)
Store: scheduledTasks
- Stores scheduled workflow executions
- Indexed by: id, workflowId, scheduledTime, status
- Schema: ScheduledTask (see types/scheduled-task.types.ts)
- Automatic: All data saved automatically to IndexedDB
- Local Only: Data never leaves your browser
- Persistent: Data survives page refreshes and browser restarts
- Private: Each browser has its own isolated database
Export your data for backup or transfer:
// In browser console
const db = (await import('./services/database')).db;
// Export workflows
const workflows = await db.workflowLibrary.toArray();
console.log(JSON.stringify(workflows, null, 2));
// Export tasks
const tasks = await db.scheduledTasks.toArray();
console.log(JSON.stringify(tasks, null, 2));Solutions:
-
Verify ComfyUI is running
curl http://localhost:8188/system_stats
Should return JSON data with system information.
-
Check CORS configuration
- ComfyUI CORS origin must match your app's URL exactly
- Use
localhostconsistently (not127.0.0.1) - Restart ComfyUI after changing CORS settings
-
Verify port matching
- If app runs on port 3000, CORS must allow
http://localhost:3000 - If app runs on port 8080, CORS must allow
http://localhost:8080
- If app runs on port 3000, CORS must allow
-
Clear browser cache
- Hard refresh:
Ctrl+Shift+R(Windows/Linux) orCmd+Shift+R(Mac) - Or restart dev server:
Ctrl+Cthennpm run dev
- Hard refresh:
Symptoms: No real-time updates during execution
Solutions:
- Verify ComfyUI WebSocket is accessible at
ws://localhost:8188/ws - Check firewall/antivirus settings
- Ensure no other application is using port 8188
- Try restarting both ComfyUI and the app
Problem: Tasks not executing at scheduled time
Solutions:
- Keep app open: Scheduler only runs when browser tab is active
- Check scheduler status: Verify scheduler is running in Settings
- Verify ComfyUI connection: Scheduler requires active ComfyUI connection
- Check browser console: Look for errors in DevTools (F12)
- Review task status: Ensure task is in "pending" state
Problem: Cannot upload workflow JSON file
Solutions:
- Ensure exported as "API Format" not "Workflow Format" in ComfyUI
- Verify JSON file is valid (use JSONLint or similar)
- Check file size (max 10MB recommended)
- Try re-exporting from ComfyUI
- Check browser console for specific error messages
Possible Causes:
- Workflow doesn't contain SaveImage nodes
- Wrong prompt_id reference
- ComfyUI output directory permissions
- Image path configuration
Debug Steps:
- Open browser DevTools (F12)
- Check Console tab for errors
- Verify network requests to
/viewendpoint succeed - Check ComfyUI output folder has generated images
- Verify SaveImage nodes are in workflow
Problem: Data not persisting or database errors
Solutions:
- Not in private/incognito mode: IndexedDB disabled in private browsing
- Check storage quota: Browser may have run out of storage space
- Clear database: DevTools β Application β Storage β IndexedDB β Delete
- Try different browser: Some browsers have stricter IndexedDB policies
- Check browser support: Ensure browser supports IndexedDB (all modern browsers do)
Problem: Error when uploading or scheduling workflows
Solutions:
- Verify workflow JSON is valid
- Check for special characters or encoding issues
- Try re-exporting workflow from ComfyUI
- Open JSON in text editor to inspect for corruption
# Build the application
npm run build
# Preview production build locally
npm run previewThe build output will be in the dist/ directory, ready for deployment to any static hosting service.
- Browser Tab Must Stay Open: Scheduler only runs when app is active
- Consider Electron: For always-on scheduling, consider wrapping in Electron
- Data Backup: Export workflow library and schedules periodically
- ComfyUI Availability: Ensure ComfyUI server remains accessible
- Vercel:
vercelor connect GitHub repository - Netlify: Drag & drop
dist/folder or GitHub integration - GitHub Pages: Use
gh-pagespackage - Cloudflare Pages: Connect repository for automatic deployments
Create a Dockerfile:
FROM node:18-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]Build and run:
docker build -t comfyui-yesterday .
docker run -p 80:80 comfyui-yesterdaynpm run dev # Start development server
npm run build # Build for production
npm run preview # Preview production build
npm run lint # Run ESLint
npm run typecheck # TypeScript type checking# Clone repository
git clone https://github.com/MushroomFleet/ComfyUI-Yesterday.git
cd ComfyUI-Yesterday
# Install dependencies
npm install
# Start development
npm run dev- Follow TypeScript best practices
- Use functional components with hooks
- Maintain type safety throughout
- Comment complex logic
- Follow existing component patterns
- Use NSL design system colors and styles
Contributions are welcome! Please follow these guidelines:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Follow the existing code style and TypeScript patterns
- Add tests for new features
- Update documentation as needed
- Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
- Maintain type safety throughout
- Follow NSL design system for UI components
- Test with actual ComfyUI instance
- Update documentation when adding features
- Add comments for complex logic
- Ensure backward compatibility
This project is open source and available under the MIT License.
- ComfyUI - The powerful AI workflow engine that makes this possible
- shadcn/ui - Beautiful, accessible component system
- Radix UI - Unstyled, accessible UI primitives
- Dexie.js - Elegant IndexedDB wrapper for data persistence
- react-big-calendar - Calendar component
- NSL Design System - Consistent, beautiful branding
- ComfyUI - The base ComfyUI workflow engine
- comfy-flow-runner-basic - Basic ComfyUI workflow runner (predecessor)
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- ComfyUI Docs: Official Documentation
- Documentation: See docs/yesterday/ for detailed development guides
- β Workflow library management with tagging
- β Calendar-based scheduling interface
- β Automatic background task execution
- β NSL design system implementation
- β IndexedDB data persistence
- β Real-time progress monitoring
Priority 1: Import/Export Workflow Collections (~2-3 days)
- Export workflows as JSON collections
- Import workflow collections with validation
- Batch workflow operations
- Data backup and restore functionality
Priority 2: Workflow Templates Library (~3-4 days)
- Curated starter workflow templates
- Template categorization and preview
- Community template sharing
- Template import from library
Priority 3: Workflow Parameter Editing (~5-7 days) β
- Seed randomization control (toggle random/fixed seeds)
- Prompt text editing
- Parameter value adjustment per scheduled task
- Visual indicators for customized tasks
- Real-time parameter validation
Estimated Timeline: 3-4 weeks
Priority 1: Enhanced Task History (~2-3 days)
- Advanced filtering (status, workflow, date range)
- Full-text search across tasks
- Bulk operations (delete, re-run multiple tasks)
- Export history reports
- Task analytics and statistics
Priority 2: Task Templates and Presets (~3-4 days)
- Reusable scheduling patterns
- Quick schedule templates ("Daily at 9am", "Weekend batch")
- Template sharing and import/export
- Custom preset creation
Priority 3: Recurring Tasks (~5-7 days)
- Daily, weekly, monthly schedule rules
- Advanced recurrence patterns (cron-like)
- Rule-based scheduling engine
- Next-run calculation and preview
- Exception dates and pausing
- Recurring task management UI
Estimated Timeline: 3-4 weeks
- Electron app wrapper for background operation
- System tray integration
- Auto-start on system boot
- Power management integration
- Connect to multiple ComfyUI instances
- Server health monitoring
- Load balancing between servers
- Server selection per workflow
- Optional cloud backup (user-controlled)
- Cross-device synchronization
- Collaborative workflow sharing
- Team workspace features
- React Native mobile app
- Task monitoring on-the-go
- Push notifications
- Quick schedule creation
Estimated Timeline: 8-12 weeks
- Workflow duplication (30 min)
- Bulk tag operations (1 hour)
- "Run in 5 minutes" quick schedule (1 hour)
- Notification sound on completion (30 min)
- Dark/light theme toggle (2 hours)
- Keyboard shortcuts (2 hours)
- Workflow marketplace with ratings and reviews
- Advanced analytics dashboard
- Custom node documentation generator
- Multi-language internationalization (i18n)
- Plugin/extension system
- AI-assisted workflow optimization
- Integration with other AI tools (Stable Diffusion WebUI, etc.)
Current Version: 1.0.0
Status: Active Development
Last Updated: November 2025
ComfyUI-Yesterday is production-ready for single-user, local ComfyUI instances. The application provides a complete solution for scheduling and managing ComfyUI workflows through an intuitive calendar interface.
Made with β€οΈ for the ComfyUI community
Schedule your creative future with ComfyUI-Yesterday π¨β°π
If you use this codebase in your research or project, please cite:
@software{comfyui_yesterday,
title = {ComfyUI Yesterday: calendar-based scheduling and workflow library management},
author = {[Drift Johnson]},
year = {2025},
url = {https://github.com/MushroomFleet/ComfyUI-Yesterday},
version = {1.0.0}
}If you found this useful, please star the repo β it helps others discover it!
