{"id":25129485,"url":"https://github.com/bradsec/comfyui_stringessentials","last_synced_at":"2025-04-02T21:43:57.838Z","repository":{"id":274155413,"uuid":"922030446","full_name":"bradsec/ComfyUI_StringEssentials","owner":"bradsec","description":"Simple string manipulation nodes for ComfyUI (strip/remove text strings, search and replace text strings, preview modified string outputs). Useful for modifying prompts or text from LLM outputs.","archived":false,"fork":false,"pushed_at":"2025-01-27T06:13:10.000Z","size":919,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T12:17:42.070Z","etag":null,"topics":["comfyui","comfyui-nodes"],"latest_commit_sha":null,"homepage":"","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/bradsec.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":"2025-01-25T06:03:05.000Z","updated_at":"2025-01-27T06:13:13.000Z","dependencies_parsed_at":"2025-01-25T10:19:11.236Z","dependency_job_id":"4087a2a1-c063-4890-9da1-cf60869f1bee","html_url":"https://github.com/bradsec/ComfyUI_StringEssentials","commit_stats":null,"previous_names":["bradsec/comfyui_stringessentials"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradsec%2FComfyUI_StringEssentials","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradsec%2FComfyUI_StringEssentials/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradsec%2FComfyUI_StringEssentials/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradsec%2FComfyUI_StringEssentials/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradsec","download_url":"https://codeload.github.com/bradsec/ComfyUI_StringEssentials/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246899636,"owners_count":20851894,"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":["comfyui","comfyui-nodes"],"created_at":"2025-02-08T12:17:46.286Z","updated_at":"2025-04-02T21:43:57.814Z","avatar_url":"https://github.com/bradsec.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# String Essentials - Custom nodes for ComfyUI\n\nSimple string manipulation nodes for ComfyUI (strip/remove text strings, search and replace text strings, preview modified string outputs). Useful for modifying text from LLM outputs (Ollama, Claude.ai, OpenAI ChatGPT), such as prompts or image-to-text description results. No additional Python dependencies or external modules required. Nodes use a small amount of basic Python and Javascript code.\n\n## Nodes included:\n\n- String Textbox\n- String Strip\n- String Replace\n- String Preview\n\n***Once added nodes can be found under the `Add Node` \u003e `utils` menu.***\n\n## Features\n- Remove or replace text, words, numbers in input strings\n- Handle multi-word strings (partial sentences/phrases)\n- Case-sensitive/insensitive matching\n- Whole string matching option\n\n## String Textbox\nA simple multiline textbox for free form text.  \n  \n![stringtextbox](images/stringtextbox.png)  \n  \n## String Strip\nRemoves specified strings from input text. Each line should contain the string to be searched. The string can contain multiple words. To strip multiple individual words/strings place on separate lines.\n\n![stringstrip](images/stringstrip.png)\n\n### Inputs\n- **`input_string`**: The string or text to process\n- **`strings_to_remove`**: List of strings to remove (one per line)\n- **`match_case`**: Enable/disable case-sensitive matching\n- **`match_whole_string`**: Ensure only exact matches are removed\n- **`remove_extra_spaces`**: Clean up extra spaces after removal\n\n## String Replace\nReplaces text strings with new strings (replace/swap words etc.). Each line should contain a search and replace pair separated by the replacement_delimiter (default is double colon `::`). Example to replace dog with cat `dog::cat`. Supports mulitple string replacements, just add one replacement per line. You can also remove strings with this node just leave the right side of the delimiter blank.\n\n![stringreplace](images/stringreplace.png)\n\n### Inputs\n- **`input_string`**: The string or text to process\n- **`replacement_pairs`**: List of search::replace pairs (one per line)\n- **`replacement_delimiter`**: Character(s) that separate search and replace strings (default: `::`)\n- **`match_case`**: Enable/disable case-sensitive matching\n- **`match_whole_string`**: Ensure only exact matches are replaced\n- **`remove_extra_spaces`**: Clean up extra spaces after replacement\n\n## String Preview\nSimply displays a string output. Can be used to view the results/changes to the input_string by the `String Strip` or `String Replace`.  \n  \n![stringpreview](images/stringpreview.png)\n  \n## Example Usage  \n  \n![exampleusage](images/examplestrip.png)  \n  \n![exampleusage](images/examplereplace.png)\n\n## Installation\n1. Navigate to the `custom_nodes` directory in your ComfyUI installation path.\n2. Clone the repository:\n```bash\ngit clone https://github.com/bradsec/ComfyUI_StringEssentials.git\n```\n3. Restart ComfyUI or refresh your nodes.\n4. Select node from the `Add Node` \u003e `utils` menu.\n\n\n### [Found these nodes useful? ⭐ Star the repo github.com/bradsec/ComfyUI_StringEssentials.](https://github.com/bradsec/ComfyUI_StringEssentials \"BRADSEC ComfyUI_StringEssentials\")\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradsec%2Fcomfyui_stringessentials","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradsec%2Fcomfyui_stringessentials","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradsec%2Fcomfyui_stringessentials/lists"}