Skip to content

πŸš€ Vector.AI - Full-stack AI SaaS platform for content creation, image generation, and AI-powered tools. Built with React, Node.js, PostgreSQL, and multiple AI APIs.

Notifications You must be signed in to change notification settings

aashutosh585/Vector.AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Vector.AI - AI-Powered Content Creation Platform

A comprehensive full-stack AI SaaS application that empowers users to create content, generate images, and enhance their digital assets using cutting-edge artificial intelligence.

🌐 Live Demo

πŸ”— Try Vector.AI Live

πŸ“‹ Table of Contents

✨ Features

🎯 Core AI Tools

  • AI Article Writer: Generate high-quality, engaging articles with customizable length (500-1600+ words)
  • Blog Title Generator: Create catchy and SEO-optimized titles across 8 different categories
  • AI Image Generation: Produce stunning images from text prompts with 8+ artistic styles
  • Background Removal: Automatically remove backgrounds from images using AI
  • Object Removal: Seamlessly erase unwanted objects from photos
  • Resume Reviewer: Get AI-driven feedback and suggestions to improve your resume

πŸ‘₯ User Experience

  • Authentication: Secure user management with Clerk
  • Dashboard: Personal workspace to view all your AI creations
  • Community Gallery: Share and discover AI-generated content from other users
  • Like System: Engage with community content through likes
  • Usage Plans: Free tier with limits + Premium unlimited access

πŸ”§ Technical Features

  • Responsive Design: Mobile-first approach with Tailwind CSS
  • Real-time Feedback: Toast notifications for all user actions
  • File Upload: Secure image and PDF upload functionality
  • Content Management: Publish/unpublish your creations
  • Database Persistence: All creations are stored and retrievable

πŸ›  Tech Stack

Frontend

  • React 19 - Modern UI library
  • Vite - Fast build tool and development server
  • React Router DOM - Client-side routing
  • Tailwind CSS - Utility-first CSS framework
  • Axios - HTTP client for API requests
  • Lucide React - Beautiful icon library
  • React Hot Toast - Elegant notifications
  • React Markdown - Markdown rendering
  • Clerk - Authentication and user management

Backend

  • Node.js - Runtime environment
  • Express.js - Web application framework
  • PostgreSQL - Primary database (via Neon)
  • Clerk Express - Authentication middleware
  • Cloudinary - Image storage and processing
  • Multer - File upload handling
  • OpenAI API - AI text generation (via Gemini)
  • ClipDrop API - AI image generation
  • PDF Parse - Resume processing

Database & Storage

  • Neon PostgreSQL - Serverless PostgreSQL database
  • Cloudinary - Cloud-based image and video management

πŸ“ Project Structure

AI SaaS/
β”œβ”€β”€ client/                     # Frontend React application
β”‚   β”œβ”€β”€ public/                 # Static assets
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ assets/            # Images, icons, and data
β”‚   β”‚   β”œβ”€β”€ components/        # Reusable UI components
β”‚   β”‚   β”‚   β”œβ”€β”€ AiTools.jsx    # AI tools showcase
β”‚   β”‚   β”‚   β”œβ”€β”€ CreationItem.jsx # Individual creation display
β”‚   β”‚   β”‚   β”œβ”€β”€ Footer.jsx     # Site footer
β”‚   β”‚   β”‚   β”œβ”€β”€ Hero.jsx       # Landing page hero
β”‚   β”‚   β”‚   β”œβ”€β”€ Navbar.jsx     # Navigation bar
β”‚   β”‚   β”‚   β”œβ”€β”€ Plan.jsx       # Pricing plans
β”‚   β”‚   β”‚   β”œβ”€β”€ Sidebar.jsx    # Dashboard sidebar
β”‚   β”‚   β”‚   └── Testimonial.jsx # User testimonials
β”‚   β”‚   β”œβ”€β”€ pages/             # Application pages
β”‚   β”‚   β”‚   β”œβ”€β”€ BlogTitles.jsx # Blog title generator
β”‚   β”‚   β”‚   β”œβ”€β”€ Community.jsx  # Community gallery
β”‚   β”‚   β”‚   β”œβ”€β”€ DashBoard.jsx  # User dashboard
β”‚   β”‚   β”‚   β”œβ”€β”€ GenerateImages.jsx # Image generation
β”‚   β”‚   β”‚   β”œβ”€β”€ Home.jsx       # Landing page
β”‚   β”‚   β”‚   β”œβ”€β”€ Layout.jsx     # App layout wrapper
β”‚   β”‚   β”‚   β”œβ”€β”€ RemoveBackground.jsx # Background removal
β”‚   β”‚   β”‚   β”œβ”€β”€ RemoveObject.jsx # Object removal
β”‚   β”‚   β”‚   β”œβ”€β”€ ReviewResume.jsx # Resume review
β”‚   β”‚   β”‚   └── WriteArticle.jsx # Article generation
β”‚   β”‚   β”œβ”€β”€ App.jsx            # Main app component
β”‚   β”‚   β”œβ”€β”€ index.css          # Global styles
β”‚   β”‚   └── main.jsx           # App entry point
β”‚   β”œβ”€β”€ .env                   # Environment variables
β”‚   β”œβ”€β”€ package.json           # Dependencies and scripts
β”‚   └── vite.config.js         # Vite configuration
β”œβ”€β”€ server/                     # Backend Express application
β”‚   β”œβ”€β”€ configs/               # Configuration files
β”‚   β”‚   β”œβ”€β”€ cloudinary.js      # Cloudinary setup
β”‚   β”‚   β”œβ”€β”€ db.js              # Database connection
β”‚   β”‚   └── multer.js          # File upload config
β”‚   β”œβ”€β”€ controllers/           # Route controllers
β”‚   β”‚   β”œβ”€β”€ aiController.js    # AI-related endpoints
β”‚   β”‚   └── userController.js  # User-related endpoints
β”‚   β”œβ”€β”€ middlewares/           # Custom middleware
β”‚   β”‚   └── auth.js            # Authentication middleware
β”‚   β”œβ”€β”€ routes/                # API routes
β”‚   β”‚   β”œβ”€β”€ aiRoutes.js        # AI endpoints routing
β”‚   β”‚   └── userRoutes.js      # User endpoints routing
β”‚   β”œβ”€β”€ package.json           # Dependencies and scripts
β”‚   └── server.js              # Express server setup
└── README.md                   # Project documentation

πŸ“‹ Prerequisites

Before running this application, make sure you have:

  • Node.js (v18 or higher)
  • npm or yarn
  • PostgreSQL database (Neon recommended)
  • Clerk account for authentication
  • Cloudinary account for image storage
  • OpenAI API key (or Gemini API key)
  • ClipDrop API key for image generation

πŸš€ Installation

1. Clone the Repository

git clone https://github.com/aashutosh585/AI-SaaS.git
cd AI-SaaS

2. Install Frontend Dependencies

cd client
npm install

3. Install Backend Dependencies

cd ../server
npm install

πŸ” Environment Variables

Frontend (.env)

Create a .env file in the client directory:

VITE_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key
VITE_BASE_URL=http://localhost:3000

Backend (.env)

Create a .env file in the server directory:

# Database
DATABASE_URL=your_neon_postgresql_connection_string

# Authentication
CLERK_SECRET_KEY=your_clerk_secret_key
CLERK_WEBHOOK_SECRET=your_clerk_webhook_secret

# AI Services
GEMINI_API_KEY=your_gemini_api_key
CLIPDROP_API_KEY=your_clipdrop_api_key

# Cloud Storage
CLOUDINARY_CLOUD_NAME=your_cloudinary_cloud_name
CLOUDINARY_API_KEY=your_cloudinary_api_key
CLOUDINARY_API_SECRET=your_cloudinary_api_secret

# Server
PORT=3000
NODE_ENV=development

πŸƒβ€β™‚οΈ Usage

Development Mode

  1. Start the Backend Server:
cd server
npm run server
  1. Start the Frontend Development Server:
cd client
npm run dev
  1. Access the Application:
    • Frontend: http://localhost:5173
    • Backend API: http://localhost:3000

Production Mode

  1. Build the Frontend:
cd client
npm run build
  1. Start the Production Server:
cd server
npm start

πŸ›  API Endpoints

AI Endpoints (/api/ai)

Method Endpoint Description Auth Required
POST /generate-article Generate articles with custom length βœ…
POST /generate-blog-title Create blog titles by category βœ…
POST /generate-images Generate images from text prompts βœ…
POST /remove-background Remove image backgrounds βœ…
POST /remove-image-object Remove objects from images βœ…
POST /resume-review Analyze and review resumes βœ…

User Endpoints (/api/user)

Method Endpoint Description Auth Required
GET /get-user-creations Fetch user's all creations βœ…
GET /get-published-creations Fetch public community creations βœ…
POST /toggle-like-creation Like/unlike community creations βœ…

πŸ—„ Database Schema

Creations Table

CREATE TABLE creations (
  id SERIAL PRIMARY KEY,
  user_id VARCHAR(255) NOT NULL,
  prompt TEXT NOT NULL,
  content TEXT NOT NULL,
  type VARCHAR(50) NOT NULL, -- 'article', 'blog-title', 'image'
  publish BOOLEAN DEFAULT false,
  likes TEXT[], -- Array of user IDs who liked
  created_at TIMESTAMP DEFAULT NOW(),
  updated_at TIMESTAMP DEFAULT NOW()
);

🎯 Key Features Explained

AI Article Writer

  • Generate articles from 500 to 1600+ words
  • Customizable prompts and topics
  • Markdown formatting support
  • Instant preview and editing

Blog Title Generator

  • 8 categories: General, Technology, Health, Lifestyle, Travel, Food, Education, Business
  • SEO-optimized suggestions
  • Multiple title variations per request

AI Image Generation

  • 8 artistic styles: Realistic, Ghibli, Cartoon, Anime, Fantasy, 3D, Portrait
  • High-quality image output
  • Cloudinary integration for storage
  • Community sharing options

Background & Object Removal

  • AI-powered precision removal
  • Support for JPG, PNG formats
  • Real-time processing feedback
  • Download and save functionality

Community Features

  • Public gallery of user creations
  • Like and engagement system
  • Real-time updates
  • User authentication integration

πŸ”§ Development

Frontend Scripts

npm run dev      # Start development server
npm run build    # Build for production
npm run preview  # Preview production build
npm run lint     # Run ESLint

Backend Scripts

npm run server   # Start with nodemon (development)
npm start        # Start production server

🀝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ™ Acknowledgments

  • Clerk for seamless authentication
  • OpenAI/Gemini for powerful AI capabilities
  • Cloudinary for reliable image processing
  • Neon for serverless PostgreSQL
  • Tailwind CSS for beautiful UI components

πŸ“ž Support

For support, email [email protected] or join our Discord community.


Built with ❀️ by Ashutosh Maurya

About

πŸš€ Vector.AI - Full-stack AI SaaS platform for content creation, image generation, and AI-powered tools. Built with React, Node.js, PostgreSQL, and multiple AI APIs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages