Inspiration

In a world where content is king, designing eye-catching graphics remains a barrier for many. Startups can’t always afford designers, and creators often find tools like Photoshop too complex. Meanwhile, AI image generators create beautiful visuals—but they’re static. One small change? You have to start over. We asked: What if AI could generate designs — and you could still tweak every element like a pro? That’s where Cosmic Canvas was born.

What it does

Cosmic Canvas is an AI-powered design tool that bridges creativity and control. Users generate editable designs from text prompts and instantly receive smart layout and caption suggestions. Then, they can fine-tune every layer — text, background, colors, placement — with a powerful canvas editor. It's like Midjourney meets Photoshop — but simple, smart, and fully in your control.

How we built it

Frontend: HTML, Tailwind CSS, Vanilla JS for responsive UI Canvas Engine: Fabric.js for real-time, layer-based editing Backend: Python Flask for logic and API handling AI Integration: Hugging Face & OpenRouter APIs for image and text generation Key Features Implemented: AI-generated editable backgrounds AI layout + caption suggestions Unit conversion (px/cm/in), dynamic canvas sizing Export in PNG/JPG for Instagram, posters, banners, etc.

Challenges we ran into

1.Editable AI Art: Most AI image models don’t create elements you can edit. We built a system that overlays editable layers (text, objects) on top of static AI images. 2.Dynamic Canvas Resizing: Ensuring that canvas scaling (for posters, posts, banners) worked smoothly across all units was trickier than expected. 3.Text-as-Design: Making AI-generated captions look like they belonged in a designer's layout took careful structuring and alignment logic. 4.Image Fit Issues: Initial AI outputs didn’t match canvas sizes — we had to optimize prompt injection + image scaling for pixel-perfect fit. 5.API Limitations: Free-tier AI APIs caused slowdowns and rate-limit issues. We implemented retries, alerts, and loaders to keep UX smooth.

Accomplishments that we're proud of

Created a full-stack design tool where users can control every element of AI-generated visuals. Successfully integrated real-time, intelligent layout/caption generation. Developed a Photoshop-like canvas with Fabric.js for live editing — even on mobile devices. Democratized professional design — no experience needed, no software to download.

What we learned

AI is powerful, but human-level editing precision is still key for real-world design workflows. UI/UX matters more than we imagined — we iterated a lot to make the experience intuitive for non-designers.

What's next for Cosmic Canvas

Integrating custom element generation (e.g. “Add a modern button” or “Insert a retro title box”). User authentication to save & revisit past designs. Advanced AI models for style matching and full design suggestions. Template library powered by community + AI blends. Submitting to platforms like Product Hunt & open-sourcing key components.

Share this project:

Updates