“What you imagine... we generate.”
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▐░░░░░░░░░░░░░░░░░░░░░░░░░░░░▌
▐░ D R E A M W E A V E R A I ▌
▐▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▌
A prompt-to-image generator powered by Stable Diffusion XL.
This tool turns your words into beautiful visuals with just one click — perfect for creatives, developers, and dreamers alike.
🧠 Powered by Stable Diffusion XL
🎨 Generate stunning images from text prompts
🖼️ Multiple outputs in one go (1–4 images)
🖱️ Clean UI + Download buttons for each image
⚙️ Modular codebase: Easy to extend, learn, and deploy
⚠️ Not deployed yet (due to API limits), but fully working locally!
| Prompt | Output |
|---|---|
| "Astronaut riding a unicorn in space" | ![]() |
| "Cyberpunk city in the rain, at night" | ![]() |
- You type your idea.
- The frontend sends your prompt to the backend.
- The backend talks to Hugging Face’s Stable Diffusion XL model.
- The image gets generated and streamed back.
- The frontend renders your image beautifully and lets you download it.
sequenceDiagram
User->>Frontend: Input prompt + image count
Frontend->>Backend: POST /generate-image
Backend->>HF API: Send prompt to SDXL
HF API-->>Backend: Return image buffer
Backend-->>Frontend: Return blob/image
Frontend-->>User: Display image(s) + download option
| Layer | Tech |
|---|---|
| Frontend | HTML, CSS, JavaScript |
| Backend | Node.js + Express |
| Model | stabilityai/stable-diffusion-xl-base-1.0 |
| API | Hugging Face Inference API |
Run it locally in under 2 minutes!
# 1. Clone the repository
git clone https://github.com/Tanbir03/dreamweaver_ai.git
cd dreamweaver_ai
# 2. Install dependencies
npm install
# 3. Add your Hugging Face token
echo HUGGINGFACE_TOKEN=your_token_here > .env
# 4. Start the server
node server.js
# 5. Visit the app
http://localhost:5000- 🔁 Generate 1–4 images per prompt
- ⚡ Real-time image display and download
- 🌀 Loading animation while generating
- 💬 Fully customizable UI + backend API
- 🛠️ Ready for future local deployment with
diffusers
dreamweaver_ai/
├── public/
│ ├── images/
│ ├── index.html
│ ├── style.css
│ └── script.js
├── server.js
├── .env
├── package.json
└── README.md ← You're here!
A glimpse of the Dreamweaver AI interface:
👨💻 Frontend: Tanbir Aman 🔧 Backend & AI Integration: Mrinal Mondal
A perfect balance of design & deep tech — thank you, Tanbir!
- “Futuristic samurai in neon Tokyo”
- “An enchanted forest glowing at night”
- “A robot meditating on a mountain”
If this project inspired you, please:
⭐ Star this repo
🍴 Fork it and remix
📢 Share your generated images on social media with #DreamweaverAI
MIT License © Mrinal Mondal Use it, modify it, break it, fix it — just don’t forget to dream with it ✨


