{"id":21173566,"url":"https://github.com/adieyal/comfyui-dynamicprompts","last_synced_at":"2025-04-05T07:07:21.440Z","repository":{"id":184896341,"uuid":"672644859","full_name":"adieyal/comfyui-dynamicprompts","owner":"adieyal","description":"ComfyUI custom nodes for Dynamic Prompts","archived":false,"fork":false,"pushed_at":"2024-02-05T06:55:50.000Z","size":863,"stargazers_count":154,"open_issues_count":23,"forks_count":13,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-04-14T13:19:43.241Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adieyal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-30T19:24:39.000Z","updated_at":"2024-06-18T15:27:30.686Z","dependencies_parsed_at":"2023-11-10T23:24:48.091Z","dependency_job_id":"aa3a3c82-3bae-4084-9688-61b51214a4e7","html_url":"https://github.com/adieyal/comfyui-dynamicprompts","commit_stats":null,"previous_names":["adieyal/comfyui-dynamicprompts"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adieyal%2Fcomfyui-dynamicprompts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adieyal%2Fcomfyui-dynamicprompts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adieyal%2Fcomfyui-dynamicprompts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adieyal%2Fcomfyui-dynamicprompts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adieyal","download_url":"https://codeload.github.com/adieyal/comfyui-dynamicprompts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299832,"owners_count":20916190,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T16:39:54.705Z","updated_at":"2025-04-05T07:07:21.409Z","avatar_url":"https://github.com/adieyal.png","language":"Python","funding_links":[],"categories":["All Workflows Sorted by GitHub Stars","Workflows (3395) sorted by GitHub Stars"],"sub_categories":[],"readme":"# ComfyUI-DynamicPrompts Custom Nodes\n\n\u003cimg src=\"images/example.png\"/\u003e\n\nComfyUI-DynamicPrompts is a custom nodes library that integrates into your existing ComfyUI Library. It provides nodes that enable the use of [Dynamic Prompts](https://github.com/adieyal/dynamicprompts) in your ComfyUI. The nodes provided in this library are:\n\n1. [Random Prompts](https://github.com/adieyal/sd-dynamic-prompts/blob/main/docs/SYNTAX.md#variants) - Implements standard wildcard mode for random sampling of variants and wildcards.\n2. [Combinatorial Prompts](https://github.com/adieyal/sd-dynamic-prompts/blob/main/docs/SYNTAX.md#combinatorial-sampler) - Iterates through every possible combination of random values in a prompt.\n3. [I'm Feeling Lucky](https://github.com/adieyal/dynamicprompts#im-feeling-lucky) - Uses the given prompt to download a related prompt from Lexica.art.\n4. [Magic Prompt](https://github.com/adieyal/dynamicprompts#magic-prompt) - Employs a neural network to add relevant modifiers to your prompt.\n5. [Jinja2 Templates](https://github.com/adieyal/dynamicprompts#jinja2-templates) - Allows you to write prompts using Jinja2 templates.\n\nNodes can be found in the Dynamic Prompts menu:\n\u003cimg src=\"images/menu.png\"/\u003e\n\n## Useful Links\n* [Dynamic Prompts Home](https://github.com/adieyal/dynamicprompts)\n* [Dynamic Prompts Syntax](https://github.com/adieyal/sd-dynamic-prompts/blob/main/docs/SYNTAX.md)\n* [Dynamic Prompts Extension for Auto1111](https://github.com/adieyal/sd-dynamic-prompts)\n* [Tutorial](https://github.com/adieyal/sd-dynamic-prompts/blob/main/docs/tutorial.md)\n* [Online Resources](https://github.com/adieyal/sd-dynamic-prompts/blob/main/docs/resources.md)\n* [CHANGELOG](./CHANGELOG.md)\n* [Stable Diffusion SDXL Wildcards and ComfyUI](https://ericri.medium.com/stable-diffusion-sdxl-wildcards-and-comfyui-e8483e00e1c)\n\n## Installation\n\n### Using ComfyUI-Manager\n1. Install [ComfyUI-Manager](https://github.com/ltdrdata/ComfyUI-Manager) if it isn't already.\n2. Press Install Custom Nodes from the ComfyUI-Manager menu\n3. Search for dynamicprompts\n4. Click install\n\n### Manual installation\n\nFollow the steps below to install the ComfyUI-DynamicPrompts Library. These commands assume the your current working directory is the ComfyUI root directory.\n\n1. Clone the repository:\n   ```\n   git clone https://github.com/adieyal/comfyui-dynamicprompts custom_nodes/comfyui-dynamicprompts\n   ```\n2. Install the required Python packages:\n   ```\n   python -m pip install -r custom_nodes/comfyui-dynamicprompts/requirements.txt\n   ```\n3. Run install.py:\n   ```\n   python custom_nodes/comfyui-dynamicprompts/install.py\n   ```\n4. `mkdir custom_nodes/comfyui-dynamicprompts/wildcards`\n5. (Optional) download a wildcard collection and copy it into this new wildcards folder.\n6. Restart your ComfyUI.\n7. Example workflows can be found in `custom_nodes/comfyui-dynamicprompts/example_workflows`.\n\n## Wildcards\nThe extension looks for wildcard files in `custom_nodes/comfyui-dynamicprompts/wildcards`. It supports wildcard files in `.txt`, .`json` and .`yaml` ([example format](https://github.com/adieyal/sd-dynamic-prompts/blob/main/collections/publicprompts.yaml)).\n\nThere are many pre-built wildcards collections available. Here are a few to get you started:\n* [SD Dynamic Prompts built-in](https://github.com/adieyal/sd-dynamic-prompts/tree/main/collections)\n* [Civitai wildcard packs](https://github.com/adieyal/sd-dynamic-prompts/blob/main/docs/resources.md#wildcard-packs)\n\n\n## Node Outputs\n\nAll nodes in this library produce a String output that can typically be passed into Clip Text Encode Prompts. Both positive and negative nodes are supported.\n\nPlease note, since ComfyUI is inherently stateless, some nodes might have a slightly unexpected behavior:\n\n- The Combinatorial Prompt generation iterates through all possible values in a cycle. For example, A `{red|green|blue}` ball will generate the following sequence:\n  - A red ball\n  - A green ball\n  - A blue ball\n  - A red ball\n  - ...\n\n- The I'm Feeling Lucky, Magic Prompt, and Jinja2 nodes have an optional auto refresh parameter. If set to `True`, a new prompt is generated for every iteration. However, if set to `False`, a prompt will be downloaded once and used for subsequent generations.\n\n## Roadmap\n\n1. This is a quick and dirty release with some known limitations such as non-configurable random seeds, inability to select the MagicPrompt model, and absence of several other configuration features.\n2. Currently, the only way to view the generated prompt is through console output. A future release will introduce nodes to display the generate prompt on screen and to write it to a file.\n3. It is not currently possible to chain generators, this functionality will be added in future releases.\n5. The installation script will be  automated in the future for ease of use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadieyal%2Fcomfyui-dynamicprompts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadieyal%2Fcomfyui-dynamicprompts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadieyal%2Fcomfyui-dynamicprompts/lists"}