SceneQueue is a local-first FastAPI application for building ordered prompt storyboards, queueing them in ComfyUI, and reflecting generated images in its gallery.
server.pyowns application startup.routes/api.pyowns the HTTP boundary.src/core.pyowns paths, configuration, databases, and persisted state.src/workflows.pyowns prompt resolution and ComfyUI workflow injection.src/poller.pyowns ComfyUI queue and output synchronization.frontend.htmlandstatic/contain the dependency-light web client.defaults/contains immutable source defaults..data/contains all mutable local state and is never committed.
- Keep the core content-neutral. Domain-specific prompts belong in user data.
- Do not add machine-specific paths, model filenames, API keys, or generated images to source control.
- Treat workflow node mappings as configuration, not application constants.
- Change producers and consumers together; this project does not preserve compatibility with unpublished private data.
- Persist JSON atomically.
- Use
uv run pytestanduv run ruff check .before committing.