Welcome to DoodleDream! This application lets you embrace your creativity by coloring fun, pre-made characters or generating brand new coloring pages using AI.
- AI-Powered Image Generation - Create custom coloring pages from text prompts using DALL-E 3
- 10 Pre-made Templates - Quick-start with dinosaur, unicorn, robot, butterfly, car, flower, spaceship, castle, dragon, and cat designs
- Drawing Tools - Brush with adjustable size, fill bucket, and eraser
- Vibrant Color Palette - Wide selection of colors to bring your artwork to life
- Undo Support - Easily correct mistakes with one-click undo
- Save & Download - Export your finished masterpiece as a PNG image
- Responsive Design - Works on desktop and mobile devices
- React 19 - UI framework
- TypeScript - Type-safe JavaScript
- Vite - Fast build tool and dev server
- Lucide React - Icon library
- HTML5 Canvas - Drawing and rendering
- Node.js - Runtime environment
- Express - Web server framework
- OpenAI API - DALL-E 3 for AI image generation
- Firebase Hosting - Static site hosting
- Firebase Cloud Functions - Serverless API proxy
You have two ways to start coloring:
-
Quick Start (Instant): Click one of the icons in the top bar to load a preset coloring page immediately.
- 🦕 Dinosaur
- 🦄 Unicorn
- 🤖 Robot
- 🦋 Butterfly
- 🚗 Car
- 🌸 Flower
- 🚀 Spaceship
- 🏰 Castle
- 🐉 Dragon
- 🐱 Cat
-
Create Your Own (AI Powered): Type anything you can imagine into the search box (e.g., "a surfing penguin") and click Create!
- Note: Custom AI images take about 10 seconds to generate.
Once your image is loaded, use the tools on the left to bring it to life:
- 🖌️ Brush: Freehand drawing. Use the slider to adjust the size.
- 🪣 Fill Bucket: Click any area to fill it with color instantly.
- ✏️ Eraser: Correct mistakes or remove color.
- Color Palette: Select from the vibrant colors provided.
- ↩️ Undo: Made a mistake? Press Undo to go back.
When you are finished, click the Save button to download your artwork as a PNG image to your computer.
If you are running this project locally, follow these steps:
- Node.js 18+
- OpenAI API Key (for custom generations)
-
Install Dependencies
# Install frontend deps npm install # Install backend deps cd server npm install
-
Configure API Key Create a
.envfile in theserver/directory:OPENAI_API_KEY=your_key_here -
Run the App You need two terminals:
-
Terminal 1 (Backend):
cd server npm start -
Terminal 2 (Frontend):
npm run dev
-
-
Open
http://localhost:5173in your browser.
MIT