Thanks to visit codestin.com
Credit goes to github.com

Skip to content

GRIMSTER44/imaginify

Repository files navigation

AI Image SaaS Platform

Scope

The AI Image SaaS Platform delivers a robust solution for creating advanced image processing applications. It includes secure user authentication, a community image showcase, and a suite of AI-powered features like restoration, recoloring, and background removal. Designed for optimal performance and user experience, the platform also integrates seamless payment processing, making it perfect for launching innovative AI image services.

Problem

Building a comprehensive AI image SaaS platform involves several challenges, such as implementing robust image processing capabilities, ensuring secure payment transactions, enabling advanced search functionalities, and supporting a variety of AI features like image restoration, recoloring, object removal, generative filling, and background removal. Additionally, maintaining a responsive user interface and managing user authentication and authorization are crucial for providing a seamless user experience.

Solution

To address these challenges, the platform can be developed using the following tech stack and features:

Tech Stack:

  • Frontend: Next.js, TypeScript, TailwindCSS
  • Backend: MongoDB, Clerk, Cloudinary
  • Payment System: Stripe
  • UI Components: Shadcn

Features:

  1. Authentication and Authorization: Secure user access with Clerk for registration, login, and route protection.
  2. Community Image Showcase: Explore user transformations with pagination.
  3. Advanced Image Search: Find images by content or objects quickly.
  4. Image Processing Capabilities:
    • Restoration: Revive old or damaged images.
    • Recoloring: Customize images by replacing object colors.
    • Generative Fill: Seamlessly fill in missing areas of images.
    • Object Removal: Remove unwanted objects precisely.
    • Background Removal: Extract objects from backgrounds efficiently.
  5. User Experience Enhancements:
    • Download Transformed Images: Allow users to save and share their transformed images.
    • View Transformation Details: Provide detailed information about each transformation.
    • Transformation Management: Enable deletion and updates of transformations.
    • Credits System: Implement a system for earning or purchasing credits for image transformations.
    • Profile Page: Allow users to access their transformed images and credit information.
    • Credits Purchase: Securely buy credits via Stripe for uninterrupted use.

Follow these steps to set up the project locally on your machine.

Prerequisites

Make sure you have the following installed on your machine:

Cloning the Repository

git clone https://github.com/GRIMSTER44/imaginify.git
cd imaginify

Installation

Install the project dependencies using npm:

npm run dev

Set Up Environment Variables

Create a new file named .env.local in the root of your project and add the following content:

#NEXT
NEXT_PUBLIC_SERVER_URL=

#MONGODB
MONGODB_URL=

#CLERK
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
WEBHOOK_SECRET=

NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/

#CLOUDINARY
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=

#STRIPE
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=

Replace the placeholder values with your actual respective account credentials. You can obtain these credentials by signing up on the Clerk, MongoDB, Cloudinary and Stripe

Running the Project

npm run dev

Open http://localhost:3000 in your browser to view the project.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •