DEV Community

Cover image for Why I Built Rabbit-Hole (and Why You Might Like It)
Pupba
Pupba

Posted on

Why I Built Rabbit-Hole (and Why You Might Like It)

Image description

πŸ‡ Down the Rabbit-Hole: A New Way to Run ComfyUI

Hi everyone πŸ‘‹

I'm excited to introduce Rabbit-Hole, an open-source project designed to make ComfyUI much easier to integrate into real-world, production-like environments.


🎯 Why Rabbit-Hole?

ComfyUI is a fantastic tool for experimentation β€” modular, GPU-accelerated, and deeply customizable.

But when I tried to build an actual service or run batch workflows, I hit several walls:

  • Workflow graphs are hard to automate
  • ComfyUI server wasn’t designed for headless/batch processing
  • Scaling across EC2 or dockerized environments was painful
  • Node code is often hard to reuse or compose cleanly

So I built Rabbit-Hole β€” a new abstraction layer on top of ComfyUI’s core logic.
Instead of nodes, we define Tunnels, and instead of full workflows, we compose Executors.


βš™οΈ How It Works

  • Tunnels are modular functions (e.g. SDXL encoding, KSampler, VAE decode...)
  • Executors are pre-defined flows (e.g. T2I, IT2I + ControlNet, Upscaling with LoRA...)
  • All flows are Pythonic, testable, and work great in headless/batch/Dockerized setups.

You no longer need to send JSON workflows or spin up ComfyUI servers. Just call a class.

from rabbit_hole.executors import T2IExecutor

exe = T2IExecutor()
exe("a photo of a rabbit in a field", output_path="result.png")
Enter fullscreen mode Exit fullscreen mode

πŸš€ What’s Next?

Rabbit-Hole is under active development.
Some recent additions:

  • βœ… SDXL + IPAdapter Plus support
  • βœ… ControlNet + Hint Image (Canny)
  • βœ… Upscaling by Model
  • βœ… LoRA composition

Upcoming:

  • πŸ”„ RAG + LLM-powered image generation guidance
  • 🐍 CLI / REST API interface
  • 🧩 Tunnel Auto-generation from ComfyUI workflows

🌟 Try it Out!

GitHub: https://github.com/pupba/Rabbit-Hole

If you're building an AI image generation service, or want to take ComfyUI to the next level β€” give Rabbit-Hole a try.

I’d love your feedback, issues, and stars! ⭐
Thanks for reading β€” see you down the rabbit hole.


Top comments (0)