Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

96 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎨 Imagify – Real-Time AI Creative Studio

React Node.js MongoDB Socket.io Gemini AI FLUX Model License

πŸš€ From a Personal AI Image Assistant to a Real-Time AI Creative Studio!

What started as a standalone AI text-to-image tool has evolved. Recognizing that the creative process rarely happens in isolation, we went back to the drawing board and completely transformed Imagify into a full-fledged collaborative workspace designed for teams, designers, and creators to build together in real time.


✨ What’s New in Imagify 2.0

🀝 1. Real-Time Collaboration Rooms

Powered by Socket.io, users can join live creation rooms. When a team member updates a prompt, applies an artistic style tag, or generates artwork, every action syncs instantly across everyone's screen in real time.

πŸ–ΌοΈ 2. Image-to-Image & Style Referencing

Upload reference images alongside your text prompts! Our Gemini-powered assistant analyzes the uploaded image's lighting, composition, and color palette, blending it with the text prompt for precise, highly controlled Image-to-Image generation.

πŸ“ 3. Project Workspaces & RBAC Governance

Persistent project folders with Role-Based Access Control (RBAC). Project owners can securely invite members via an in-app notification system, assigning Editor or Viewer permissions, while an Activity Feed tracks every modification with timestamped logs.

πŸ’¬ 4. Live Team Chat & Anti-Spam

A persistent, real-time chatbox built directly into the project workspacesβ€”eliminating the need to switch to third-party messaging apps. Features include an unread message badge system and a 1.5-second anti-spam cooldown mechanism.

πŸ›‘οΈ 5. Intelligent Content & Safety Filtering

To ensure a safe environment for all teams, we engineered a custom regex and keyword-based filtering system. It automatically intercepts and blocks violent, explicit, or offensive language across both image generation prompts and live chat messages.

⚑ 6. Upgraded AI Engine (FLUX Model)

We upgraded our image generation engine to Pollinations.ai, specifically routing generation requests through the photorealistic FLUX model to deliver high-fidelity results with zero credit bottlenecks.


πŸ–₯️ Tech Stack

Frontend

  • Framework: React 19, Vite
  • Styling & UI: Tailwind CSS, Lucide React Icons
  • Animations: Motion (Framer Motion)
  • Real-Time Communication: Socket.io-client
  • HTTP & Toast Notifications: Axios, React Router, React Toastify

Backend

  • Runtime & Framework: Node.js, Express.js
  • Database: MongoDB Atlas, Mongoose ORM
  • Real-Time Socket Layer: Socket.io
  • Security & Authentication: JWT (JSON Web Tokens), Bcrypt, Regex Safety Middleware
  • Payment Gateway: Razorpay API
  • AI Engines: Google Gemini AI API, Pollinations.ai (FLUX Model Engine)

🧠 Imagify 2.0 Workflow Architecture

               [ User Prompt / Image Reference Upload ]
                                 β”‚
                                 β–Ό
         [ Regex & Keyword Safety Content Guardrail ]
                                 β”‚
              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
              β–Ό                                     β–Ό
    (Violation Intercepted)                 (Passed Safety Check)
              β”‚                                     β”‚
   [ Real-time Alert Triggered ]                    β–Ό
                                   [ Google Gemini Analysis Engine ]
                                (Lighting, Composition & Palette Sync)
                                                    β”‚
                                                    β–Ό
                                   [ Pollinations.ai (FLUX Model) ]
                                                    β”‚
                                                    β–Ό
                                   [ Socket.io Room Broadcast ]
                           (Syncs Gallery, Chat & Activity Feed Live)

πŸš€ Screenshots

🏠 Home Page

Screenshot 2026-08-03 233536 Screenshot 2026-08-03 233548

βš™οΈ How It Works

Screenshot 2026-08-03 233605

❓ FAQ Section

Screenshot 2026-08-03 233617

🎨 Creation Studio

Screenshot 2026-08-03 233523

🎨 Live Collaboration Workspace & Chat

Screenshot 2026-08-03 160155

πŸ€– AI Prompt Assistant

image

πŸ–ΌοΈ Image-to-Image & Style Reference Studio

Screenshot 2026-08-04 100111

πŸ“ Project Gallery & Activity Feed

Screenshot 2026-08-03 160613 Screenshot 2026-08-03 155229 Screenshot 2026-08-03 155243

πŸ–ΌοΈ Generated Result

image

πŸ’³ Pricing Plans

image

πŸ“ My Creations

Screenshot 2026-08-03 160538

βš™οΈ Installation

Clone the repository

git clone https://github.com/yourusername/imagify.git

Frontend

cd client
npm install
npm run dev

Backend

cd server
npm install
npm run server

πŸ”‘ Environment Variables

Server

MONGODB_URI=
JWT_SECRET=

GEMINI_API_KEY=


RAZORPAY_KEY_ID=
RAZORPAY_KEY_SECRET=

Client

VITE_BACKEND_URL=
VITE_RAZORPAY_KEY_ID=

🧠 AI & Real-Time Workflow

User Text Prompt / Image Reference β”‚ β–Ό Safety & Content Guardrail (Regex & Keyword Filter Check) β”‚ β–Ό Gemini AI (Prompt Enhancement & Image Analysis) β”‚ β–Ό Pollinations.ai (FLUX Model) (High-Fidelity Image Synthesis) β”‚ β–Ό MongoDB Storage β”‚ β–Ό Socket.io Event Sync β”‚ β–Ό Live Broadcast to Workspace Room


πŸ’³ Credit Workflow

Purchase Credits β”‚ β–Ό Razorpay Payment β”‚ β–Ό Payment Verification β”‚ β–Ό Credits Updated β”‚ β–Ό Generate AI Assets


πŸ“‚ Project Structure

Imagify
β”‚
β”œβ”€β”€ client
β”‚   β”œβ”€β”€ src
β”‚   β”‚   β”œβ”€β”€ components
β”‚   β”‚   β”‚   β”œβ”€β”€ common       # Navbar, Footer, Modals, ChatBox, Notifications
β”‚   β”‚   β”‚   β”œβ”€β”€ studio       # PromptInput, StyleSelector, ImageToImageUploader
β”‚   β”‚   β”‚   └── workspace    # ActivityFeed, MembersList, AssetGallery, RoleBadge
β”‚   β”‚   β”œβ”€β”€ pages            # Home, ProjectWorkspace, Dashboard, BuyCredit
β”‚   β”‚   β”œβ”€β”€ context          # AppContext (Auth, Socket.io, Workspace State)
β”‚   β”‚   β”œβ”€β”€ assets           # Icons, Media, Visual Assets
β”‚   β”‚   └── App.jsx
β”‚   └── vite.config.js
β”‚
β”œβ”€β”€ server
β”‚   β”œβ”€β”€ config               # Database & Socket.io Initialization
β”‚   β”œβ”€β”€ controllers          # Workspace, AI, Chat, User, Payment Controllers
β”‚   β”œβ”€β”€ middleware           # JWT Auth, RBAC Guards, Content Moderation Middleware
β”‚   β”œβ”€β”€ models               # User, Workspace, ChatMessage, Activity Log Models
β”‚   β”œβ”€β”€ routes               # Express REST API Endpoints
β”‚   β”œβ”€β”€ sockets              # Real-Time Event Handlers & Chat Sockets
β”‚   └── server.js            # Express Server & Socket.io Bootstrapper
β”‚
└── README.md

πŸ”’ Security, Authentication & Governance

  • πŸ‘€ User Auth: JWT-based Token Authentication & Bcrypt Password Hashing.
  • πŸ›‘οΈ Role-Based Access Control (RBAC): Granular permissions for Owner, Editor, and Viewer roles within workspaces.
  • 🚨 Safety Content Guardrails: Automated Regex and keyword filtering for explicit, violent, or profane prompt & chat intercept.
  • βŒ› Anti-Spam Controls: Cooldown mechanisms (1.5s delay) to prevent message flooding in live room chats.
  • πŸ”” Workspace Notifications: Secure in-app room invitations and real-time permission updates.

πŸ“¦ APIs & Engines Used

  • 🧠 Google Gemini AI API: Prompt enhancement, style parsing, and reference image analysis.
  • ⚑ Pollinations.ai (FLUX Model): Open-source, photorealistic text-to-image synthesis engine.
  • πŸ”Œ Socket.io Engine: Bi-directional WebSockets for real-time collaboration, live messaging, and room syncing.
  • πŸ’³ Razorpay Payment Gateway: Secure payment processing for credit purchases.

πŸš€ Future Roadmap

  • πŸ–ŒοΈ In-Canvas AI Inpainting & Outpainting: Edit specific regions of generated assets directly inside the canvas.
  • πŸ” Native Resolution Upscaling: Super-resolution upscaling for high-dpi print downloads.
  • πŸŽ™οΈ Voice Prompts: Real-time speech-to-prompt AI creation.
  • 🌐 Public Community Showcase: Publish, share, and remix creative studio projects.

πŸ‘¨β€πŸ’» Contributors

Pragati Singh

GitHub: https://github.com/pragati956


Sandipan Ray

GitHub: https://github.com/notoveryet-51


πŸ“„ License

This project is licensed under the MIT License.


⭐ If you found this project useful, consider giving it a star on GitHub! ⭐ If you found this project useful, consider giving it a star!

About

A Real Time Creative AI Studio-IMAGIFY | MERN Project

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages