π± PROJECT SETUP
Project Setup namespaces your ComfyUI save folders
- project_folder
If your ComfyUI output folder is one giant flat pile of ComfyUI_00123_.png, you already know the pain Project Setup is aimed at: it's the pack's filing-cabinet node, the one that decides where a project's files land. It's from Artha-Projekt, a small project-management pack by GitHub user Cyrostar - barely any community footprint, but the four nodes in it work as a set, and this is the one the set starts from.
How it works
Project Setup does two things. First, it writes your project's name, category, and type into a shared in-memory dictionary that Project Prefix (same pack) later reads to build descriptive filenames. Second, it builds a folder path and hands it to you as the project_folder output.
That path is your ComfyUI output directory plus one nested folder per field: project_name, then project_category, then project_type. Set Youtube / Shorts / Fun (the defaults - clearly the author was building a YouTube Shorts pipeline) and you get:
.../ComfyUI/output/Youtube/Shorts/Fun/
The three inputs are all simple text boxes, and despite being marked required, the placeholder text tells you the real rule: leave project_category or project_type empty if you don't want that folder level. Everything passes through a sanitizer that swaps spaces for underscores and strips punctuation, so My Project becomes My_Project - filesystem-safe, but don't expect the fancy folder name you typed.
Wire project_folder into a Save Image's filename_prefix and your renders land directly in the right nested folder. It also works as a plain string source for any other node that wants a directory path.
The gotchas
The backslash problem. The code builds paths with hardcoded Windows-style \ separators, not os.path.join. On Windows that's fine; on Linux or macOS the output is a path with literal backslashes, which your filesystem will not resolve. If you're not on Windows, treat project_folder as informational or feed it through a path-fixing node rather than plugging it straight into a save node.
Order matters. Setup communicates with Project Prefix through shared state, not wires. Prefix only sees your project name if Setup executed first in the same session - create Setup before Prefix in your graph and keep it earlier in the flow, or the filenames silently lose the project prefix.
Also note this node doesn't create the folder on disk by itself. It computes a path; the save node that consumes it does the actual mkdir. If you never feed project_folder anywhere, nothing happens on disk at all.
Install
cd ComfyUI/custom_nodes
git clone https://github.com/Cyrostar/Artha-Projekt
Restart, or search "Artha-Projekt" in ComfyUI Manager. Zero Python dependencies, no model downloads, no API keys - it only uses folder_paths and the standard library. You're really installing it for the whole four-node pack; this node is the foundation the rest quietly depends on.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| project_name | STRING | Youtube | β |
| project_category | STRING | Shorts | β |
| project_type | STRING | Fun | β |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| project_folder | STRING | β |