{"id":27610364,"url":"https://github.com/meeksonjr/ai-content-generator","last_synced_at":"2025-09-06T15:44:55.970Z","repository":{"id":287226946,"uuid":"963698039","full_name":"MeeksonJr/ai-content-generator","owner":"MeeksonJr","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-10T16:20:57.000Z","size":2440,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T16:56:36.602Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://ai-content-generator-mu-seven.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MeeksonJr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-10T04:40:46.000Z","updated_at":"2025-04-10T16:21:00.000Z","dependencies_parsed_at":"2025-04-10T16:56:40.916Z","dependency_job_id":"f52b15d0-faab-4bf5-beba-76300ff82f40","html_url":"https://github.com/MeeksonJr/ai-content-generator","commit_stats":null,"previous_names":["meeksonjr/ai-content-generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeeksonJr%2Fai-content-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeeksonJr%2Fai-content-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeeksonJr%2Fai-content-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeeksonJr%2Fai-content-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MeeksonJr","download_url":"https://codeload.github.com/MeeksonJr/ai-content-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250339315,"owners_count":21414338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-22T23:26:55.792Z","updated_at":"2025-04-22T23:26:56.511Z","avatar_url":"https://github.com/MeeksonJr.png","language":"TypeScript","funding_links":["https://developer.paypal.com/"],"categories":[],"sub_categories":[],"readme":"# AI Content Generator SaaS Platform\n\nA powerful SaaS platform that leverages AI to automate content creation, improve SEO, and provide valuable insights into customer sentiment.\n#### Landing Page View\n![AI Content Generator Landing Page](public/ai-content-gen-landing-page-image.png)\n#### Dashboard View\n![AI Content Generator Dashboard](public/ai-content-gen-Dashboard-image.png)\n\n#### login to see more of our content!!!\n\n\n## 🚀 Features\n\n- **AI-Powered Content Generation**: Create high-quality, human-like text for product descriptions, blog articles, email templates, and social media posts using Gemini-2.0-Flash.\n- **Sentiment Analysis**: Analyze text for positive, neutral, or negative sentiments using Hugging Face API.\n- **Keyword Extraction**: Extract important keywords and phrases from content to improve SEO.\n- **Text Summarization**: Automatically generate summaries of long-form content.\n- **Project Management**: Organize content into projects for better workflow management.\n- **Analytics Dashboard**: Visualize content performance, sentiment distribution, and keyword trends.\n- **API Access**: Integrate AI content generation capabilities into third-party applications.\n- **Subscription Management**: Tiered subscription plans with PayPal integration.\n\n## 🛠️ Tech Stack\n\n- **Frontend**: Next.js 14 with App Router, React, Tailwind CSS, shadcn/ui\n- **Backend**: Next.js API Routes, Server Actions\n- **Database**: PostgreSQL with Supabase\n- **Authentication**: Supabase Auth\n- **AI Services**:\n  - Gemini-2.0-Flash or higher models for content generation\n  - Hugging Face API for NLP tasks (sentiment analysis, keyword extraction, summarization)\n- **Payments**: PayPal Subscriptions API\n- **Visualization**: Recharts for analytics\n- **Styling**: Tailwind CSS with custom theming\n\n## 📋 Prerequisites\n\n- Node.js 18.x or higher\n- npm or yarn\n- Supabase account\n- Gemini API key\n- Hugging Face API key\n- PayPal Sandbox or live Developer account\n\n## 🚀 Getting Started\n\n### Installation\n\n1. Clone the repository:\n  ```\n  git clone https://github.com/MeeksonJr/ai-content-generator.git\n  cd ai-content-generator\n  ```\n\n2. Install dependencies:\n  ```\n   npm install\n   # or\n   yarn install\n  ```\n3. Set up environment variables:\n   Create a `.env.local` file in the root directory with the following variables:\n   \n   # Supabase\n   NEXT_PUBLIC_SUPABASE_URL=your_supabase_url\n   NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key\n   SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key\n   \n   # AI Services\n   GEMINI_API_KEY=your_gemini_api_key\n   NEXT_PUBLIC_GEMINI_API_KEY=your_gemini_api_key\n   HUGGING_FACE_API_KEY=your_huggingface_api_key\n   \n   # PayPal\n   PAYPAL_CLIENT_ID=your_paypal_client_id\n   PAYPAL_CLIENT_SECRET=your_paypal_client_secret\n   \n   # App URL\n   NEXT_PUBLIC_APP_URL=http://localhost:3000\n   \\`\\`\\`\n\n4. Set up the database:\n   Run the SQL scripts in the `sql` directory to create the necessary tables and seed data.\n\n5. Start the development server:\n   \\`\\`\\`bash\n   npm run dev\n   # or\n   yarn dev\n   \\`\\`\\`\n\n6. Open [http://localhost:3000](http://localhost:3000) in your browser.\n\n## 📊 Database Schema\n\nThe application uses the following main tables:\n\n- **users**: User accounts (managed by Supabase Auth)\n- **projects**: Content projects created by users\n- **content**: Generated content items\n- **subscriptions**: User subscription information\n- **usage_limits**: Limits based on subscription plans\n- **usage_stats**: Usage statistics for users\n\n## 🔑 API Documentation\n\n### Content Generation API\n\n\\`\\`\\`\nPOST /api/v1/generate\n\\`\\`\\`\n\nGenerate AI content based on provided parameters.\n\n**Headers:**\n- `Authorization: Bearer YOUR_API_KEY`\n- `Content-Type: application/json`\n\n**Request Body:**\n\\`\\`\\`json\n{\n  \"contentType\": \"product_description\",\n  \"title\": \"Wireless Bluetooth Headphones\",\n  \"prompt\": \"High-quality noise-canceling headphones with 20-hour battery life\"\n}\n\\`\\`\\`\n\n**Response:**\n\\`\\`\\`json\n{\n  \"content\": \"Experience audio like never before with our Wireless Bluetooth Headphones...\",\n  \"sentiment\": \"positive\",\n  \"sentimentScore\": 0.92,\n  \"keywords\": [\n    { \"keyword\": \"wireless\", \"score\": 0.85 },\n    { \"keyword\": \"bluetooth\", \"score\": 0.82 },\n    { \"keyword\": \"headphones\", \"score\": 0.95 }\n  ]\n}\n\\`\\`\\`\n\n### Sentiment Analysis API\n\n\\`\\`\\`\nPOST /api/v1/sentiment\n\\`\\`\\`\n\nAnalyze the sentiment of provided text.\n\n**Headers:**\n- `Authorization: Bearer YOUR_API_KEY`\n- `Content-Type: application/json`\n\n**Request Body:**\n\\`\\`\\`json\n{\n  \"text\": \"I absolutely love this product! It's amazing and works perfectly.\"\n}\n\\`\\`\\`\n\n**Response:**\n\\`\\`\\`json\n{\n  \"sentiment\": \"positive\",\n  \"score\": 0.95\n}\n\\`\\`\\`\n\n### Keyword Extraction API\n\n\\`\\`\\`\nPOST /api/v1/keywords\n\\`\\`\\`\n\nExtract keywords from provided text.\n\n**Headers:**\n- `Authorization: Bearer YOUR_API_KEY`\n- `Content-Type: application/json`\n\n**Request Body:**\n\\`\\`\\`json\n{\n  \"text\": \"Artificial intelligence is transforming digital marketing strategies for e-commerce businesses.\"\n}\n\\`\\`\\`\n\n**Response:**\n\\`\\`\\`json\n{\n  \"keywords\": [\n    { \"keyword\": \"artificial intelligence\", \"score\": 0.92 },\n    { \"keyword\": \"digital marketing\", \"score\": 0.87 },\n    { \"keyword\": \"e-commerce\", \"score\": 0.85 },\n    { \"keyword\": \"strategies\", \"score\": 0.76 }\n  ]\n}\n\\`\\`\\`\n\n### Text Summarization API\n\n\\`\\`\\`\nPOST /api/v1/summarize\n\\`\\`\\`\n\nGenerate a concise summary of longer text.\n\n**Headers:**\n- `Authorization: Bearer YOUR_API_KEY`\n- `Content-Type: application/json`\n\n**Request Body:**\n\\`\\`\\`json\n{\n  \"text\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit...\",\n  \"maxLength\": 150\n}\n\\`\\`\\`\n\n**Response:**\n\\`\\`\\`json\n{\n  \"summary\": \"A concise summary of the provided text...\"\n}\n\\`\\`\\`\n\n## 📱 Pages and Components\n\n- **Landing Page**: Introduction to the platform and its features\n- **Authentication**: Login and registration pages\n- **Dashboard**: Overview of user's content and analytics\n- **Content Generator**: AI-powered content creation interface\n- **Projects**: Project management for organizing content\n- **Sentiment Analysis**: Tool for analyzing text sentiment\n- **Keyword Extraction**: Tool for extracting keywords from text\n- **Text Summarization**: Tool for summarizing long-form content\n- **API Documentation**: Documentation for the API endpoints\n- **Subscription Management**: Manage subscription plans and billing\n\n## 🔒 Authentication and Authorization\n\nThe application uses Supabase Auth for authentication and Row Level Security (RLS) policies for authorization. This ensures that users can only access their own data and resources.\n\n## 💰 Subscription Plans\n\nThe platform offers three subscription tiers:\n\n1. **Free Plan**:\n   - 5 content generations per month\n   - 1,000 character limit\n   - No advanced features\n\n2. **Professional Plan** ($19.99/month):\n   - 50 content generations per month\n   - 5,000 character limit\n   - Sentiment analysis\n   - Keyword extraction\n   - Text summarization\n\n3. **Enterprise Plan** ($49.99/month):\n   - Unlimited content generations\n   - 10,000 character limit\n   - All advanced features\n   - API access\n\n## 🧪 Testing\n\nRun the test suite with:\n```\nbash\nnpm test\nor\nyarn test\n```\n## 🚀 Deployment\n\nThe application can be deployed to Vercel with the following steps:\n\n1. Push your code to a GitHub repository.\n2. Create a new project on Vercel and link it to your repository.\n3. Configure the environment variables in the Vercel dashboard.\n4. Deploy the application.\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 👥 Contributors\n\n- [Mohamed Datt](https://github.com/MeeksonJr/)\n\n## 🙏 Acknowledgements\n\n- [Next.js](https://nextjs.org/)\n- [Supabase](https://supabase.io/)\n- [Tailwind CSS](https://tailwindcss.com/)\n- [shadcn/ui](https://ui.shadcn.com/)\n- [Gemini AI](https://gemini.google.com/)\n- [Hugging Face](https://huggingface.co/)\n- [PayPal](https://developer.paypal.com/)\n- [Recharts](https://recharts.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeeksonjr%2Fai-content-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeeksonjr%2Fai-content-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeeksonjr%2Fai-content-generator/lists"}