Skip to content

PublicPNWEK/PersonaGenAi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

51 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PersonaGenAi

AI-powered social media profile generator with multi-platform automation and monetization.

AI Studio: https://ai.studio/apps/drive/1-8Gh0dorHEQEwZO88PwTDvhZJfsI4b-7

Features

✨ AI Profile Generation - Generate unique social media profiles using Google Gemini AI πŸš€ Multi-Platform Support - Instagram, Twitter/X, TikTok, LinkedIn, and more πŸ“… Post Scheduling - Schedule posts for automated publishing πŸ”— Google Services Integration - Calendar, Drive, and Analytics πŸ’° API Monetization - Three-tier pricing model (FREE, PRO, ENTERPRISE) πŸ” OAuth Authentication - Secure social media account connection

Run Locally

Prerequisites: Node.js 16+

  1. Install dependencies:

    npm install
  2. Set the GEMINI_API_KEY in .env.local to your Gemini API key

  3. Set up environment variables:

    cp .env.example .env.local

    Edit .env.local and add your API_KEY (Google Gemini API key)

  4. Run the app:

    npm run dev

Backend Setup

For detailed backend setup instructions, see BACKEND_SETUP.md

Quick Start:

  1. Navigate to backend:

    cd backend
  2. Install dependencies:

    npm install
  3. Configure environment:

    cp .env.example .env
    # Edit .env with your API keys
  4. Start the backend:

    npm run dev

The backend will run on http://localhost:3001

Backend Integrations

Supported Platforms

  • Google Services: Gemini AI, Google Calendar, Gmail
  • Notion: Content management, databases, content calendar
  • GitHub: Repository management, issues, webhooks
  • Perplexity AI: Research, content ideas, trend analysis
  • Stripe: Payments and subscriptions

API Examples

Generate Content

POST /api/google/generate
{
  "prompt": "Write a motivational post",
  "temperature": 0.7
}

Schedule a Post

POST /api/scheduling/schedule
{
  "platform": "twitter",
  "content": "Hello World!",
  "scheduledTime": "2024-12-31T15:00:00Z",
  "userId": "user123"
}

Create Notion Entry

POST /api/notion/content
{
  "databaseId": "your_db_id",
  "title": "Blog Post",
  "date": "2024-01-01",
  "platform": "Twitter",
  "content": "Post content"
}

For complete API documentation, see backend/README.md

Cross-Platform Support

The backend is designed to work seamlessly across:

  • βœ… Windows 10/11
  • βœ… macOS (Intel & Apple Silicon)
  • βœ… Linux (all major distributions)
  • βœ… iOS (via API)
  • βœ… Android (via API)
  • βœ… Web Browsers

Deployment

Docker

cd backend
docker-compose up -d

Cloud Platforms

  • Heroku
  • AWS Elastic Beanstalk
  • Google Cloud Run
  • Azure App Service
  • DigitalOcean

See backend/README.md for detailed deployment guides.

Monetization

The backend includes built-in Stripe integration for:

  • Subscription management
  • One-time payments
  • Usage-based billing
  • Webhook handling

Documentation

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License - see LICENSE file for details 4. Open http://localhost:5173 in your browser

Backend Integration

PersonaGenAi includes comprehensive backend integration for multi-platform automation. See Backend Integration Guide for detailed setup instructions.

Quick Setup

  1. Social Media APIs: Configure Instagram, Twitter/X, and TikTok API credentials
  2. Google Services: Enable Calendar, Drive, and Analytics integration
  3. Monetization: Three-tier API access model (FREE, PRO, ENTERPRISE)

Key Services

  • API Key Management - Track usage and enforce tier limits
  • OAuth Service - Authenticate with social media platforms
  • Posting Service - Post content to multiple platforms
  • Scheduling Service - Schedule and automate posts
  • Google Services - Integrate with Calendar, Drive, and Analytics

Documentation

Build

npm run build

The build output will be in the dist directory.

Tech Stack

  • Frontend: React 19, TypeScript, Vite
  • AI: Google Gemini API
  • Styling: Tailwind CSS (via inline styles)
  • State Management: React Hooks
  • Storage: LocalStorage (client-side)

Contributing

Contributions are welcome! Please read the contribution guidelines before submitting PRs.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •