The repository uses a package-per-media structure for Python distribution:
packages/core – manifest + loader helpers shipped as comfyui-workflow-templates-core
packages/media_* – workflow template JSON + preview assets for each media type
packages/blueprints – subgraph blueprint JSON + preview assets as comfyui-subgraph-blueprints
packages/meta and the root pyproject.toml – the comfyui-workflow-templates meta package
Template Site (site/)
The site/ directory contains an independent Astro static site that provides a browsable, searchable interface for all workflow templates. It includes AI-generated descriptions, i18n support (12 languages), SEO optimization, and automated content pipelines. See site/AGENTS.md for full documentation.
cd site
pnpm install
pnpm run dev # Start dev server at localhost:4321
pnpm run build # Production build (runs prebuild pipeline automatically)
Deployment Environments
The template site is deployed to four environments via GitHub Actions:
main merge (version bump)
└─ PyPI publish ─► deploy-site.yml ─► Production (approved only)
Once per day (00:00 UTC)
└─ cron-rebuild-site.yml ─► Production (prod API, approved only)
Once per day (00:00 UTC)
└─ preview-cron.yml
├─ main (prod API) ─► Preview Prod (prod API, all workflows)
└─ main (test API) ─► Preview Test (test API, all workflows)
PR opened/updated
├─ preview-site.yml ─► PR Preview (one-off)
└─ preview-cron.yml (label) ─► PR Preview (daily, requires "preview-cron" label)
Environment
Workflow
API
Status Filter
Vercel Flag
Alias Secret
Trigger
Production
deploy-site.yml
Production
approved only
--prod
—
PyPI publish / manual
Production
cron-rebuild-site.yml
Production
approved only
--prod
—
Once per day (00:00 UTC)
Preview Prod
preview-cron.yml (main, prod)
Production
None (all)
preview
VERCEL_PREVIEW_ALIAS
Once per day (00:00 UTC)
Preview Test
preview-cron.yml (main, test)
Test
None (all)
preview
VERCEL_PREVIEW_TEST_ALIAS
Once per day (00:00 UTC)
PR Preview
preview-site.yml
Configurable
None (all)
preview
—
PR changes
PR Preview
preview-cron.yml (PR)
Test
None (all)
preview
—
Once per day (00:00 UTC)
Status filtering is controlled by the PUBLIC_APPROVED_ONLY environment variable at build time. When set to 'true', only workflows with status: 'approved' from the hub API index endpoint are included in the build. Preview environments omit this flag to show all workflows (pending, approved, rejected, deprecated) for internal review.
Quick Start
Task
Commands
Add a workflow template
Edit templates/ + bundles.json (assign a bundle). Manifest sync is optional on template-only PRs — required on version-bump/release
Add a subgraph blueprint
Edit blueprints/, blueprints_bundles.json, then python scripts/sync/sync_blueprints.py
Import external blueprints
Copy JSONs to blueprints/, then python scripts/blueprints/import_blueprints.py
Check node compatibility
npm run validate:comfyui-nodes (local ComfyUI) or see scripts/README.md
I will demonstrate how to add a new template by walking through the process of adding the Wan text to video template.
1 — Find Templates Folder
Set up ComfyUI_frontend dev environment. In the ComfyUI_frontend/.env file, add the line DISABLE_TEMPLATES_PROXY=true then start the dev server with npm run dev.
Copy the templates folder from this repository to the ComfyUI_frontend/public folder.
2 — Obtain Workflow
Either
Create the workflow and export using Save => Export
Make sure you start ComfyUI with --disable-all-custom-nodes when creating the workflow file (to prevent custom extensions adding metadata into the saved workflow file)
3 — Obtain Thumbnails
Ideally, the thumbnail is simply the output produced by the workflow on first execution. As an example, see the output of the Mixing ControlNets template:
For my Wan 2.1 template, I'll just use the webp video I got the workflow from.
4 — Choose Thumbnail Type
Choose the content type and hover effect (optional) for your thumbnail:
Content Types
Hover Effects
Image: Default image with no extra effect
Compare Slider: Before/after comparison tool
Video: Webp animation
Hover Dissolve: Dissolves to 2nd image on hover
Audio: Audio playback
Hover Zoom: Same as default but zooms more
[!WARNING]
For video thumbnails, thumbnails need to be converted to webp format first
Since my Wan 2.1 thumbnail is already an animated video, I'll use a video thumbnail but choose not to add an effect.
5 — Compress Assets
Attempt to compress the assets. Since the thumbnails will never be taking up a large portion of the screen, it is acceptable to lower their size. It's also good to convert them to a space-efficient file format like webp or jpeg, applying a lossy compression algorithm (e.g., convert at 65% quality).
EzGif has free tools for changing resolution, compressing, and converting file types. Use whatever tool you are comfortable with.
[!TIP]
Convert to webp first, then resize to a smaller resolution. You can maintain high quality and still get near 95% reduction if e.g., converting from png.
6 — Rename and Move Files
Give the workflow a filename that has no spaces, dots, or special characters. Then rename the thumbnail file(s) to match, but with a counter suffix.
I'll name the Wan 2.1 template as text_to_video_wan.json. So my files will be:
text_to_video_wan.json
text_to_video_wan-1.webp
Then move the renamed files to your templates folder.
7 — Assign Bundle & Sync Assets
Each template lives in one bundle (media-image, media-video, etc.). Update
bundles.json with the template ID so the correct media package ships it.
Update bundles.json so the template is assigned to a media bundle.
Template-only PRs do not need to regenerate or commit
packages/core/src/comfyui_workflow_templates_core/manifest.json.
Manifest regeneration runs on version-bump / release PRs (when the root
pyproject.toml version changes):
version-check.yml runs python scripts/sync/sync_bundles.py and commits the
regenerated manifest back to the release PR
validate-manifests.yml and build-test.yml enforce committed-manifest SHA256
only on those version-bump/release changes (they do not sync before
validating, so a stale release manifest still fails — same #1091 guard)
publish.yml syncs again immediately before PyPI upload as a final safety net
Locally, maintainers can still regenerate anytime:
python scripts/sync/sync_bundles.py
# or via Nx
npm run sync
Template-only PRs still must keep bundles.json complete (every templates/*.json
assigned); CI checks that without requiring a manifest rewrite.
8 — Add Entry to index.json
There's an index.json file in the templates folder which is where template configurations are set. You will need to add your template to this file, using the fields outlined below:
If your template doesn't fit into an existing category, you can add a new one:
The thumbnailVariant field is where you add the choice of thumbnail variant.
Now you can start ComfyUI (or refresh browser if already running) and test that your template works.
[!WARNING]
Make sure to use double-quotes " instead of single-quotes ' when adding things to json files
9 — Embed Models
Now we need to embed metadata for any models the template workflow uses. This way, the user can download and run the workflow without ever leaving ComfyUI.
For instance, my Wan 2.1 template requires 3 models:
umt5_xxl_fp8_e4m3fn_scaled text encoder
wan_2.1_vae VAE
wan2.1_t2v_1.3B_bf16 model
To add them to the workflow json, find each associated node and add the metadata to their properties:
Fully test the workflow: delete the models, input images, etc. and try it as a new user would. Ensure the process has no hiccups and you can generate the thumbnail image on the first execution (if applicable).
Verify all language files (index.zh.json, index.ja.json, etc.) are synced and committed