A comprehensive data-driven content strategy optimizer that helps creators, marketers, and businesses analyze their social media performance across multiple platforms.
- Multi-Platform Integration: Connect Instagram, YouTube, and X/Twitter accounts
- Content Performance Analysis: Detailed metrics for Reels, Posts, Videos, and Tweets
- Best Time & Frequency Analyzer: AI-powered recommendations for optimal posting schedules
- AI Chat Assistant: Natural language queries about your social media performance
- Reports & Export: Generate weekly/monthly reports with PDF/Excel export
- Sentiment Analysis: Analyze comment sentiment across platforms
- Viral Content Prediction: AI-powered prediction of content virality potential
- Competitor Comparison: Compare performance with competitors
- Real-time Analytics: Live dashboard with interactive charts
- Next.js 14 with TypeScript
- Tailwind CSS for styling
- Recharts for data visualization
- Lucide React for icons
- Node.js with Express
- TypeScript for type safety
- Prisma ORM with PostgreSQL
- JWT for authentication
- OpenAI API for AI features
- PostgreSQL with Prisma ORM
- Redis for caching (optional)
- Node.js 18+
- PostgreSQL 14+
- npm or yarn
- Clone the repository
git clone <repository-url>
cd social-media-dashboard- Install dependencies
# Frontend
npm install
# Backend
cd backend
npm install- Environment Setup
# Backend environment
cd backend
cp .env.example .env
# Fill in your API keys and database URL- Database Setup
cd backend
npx prisma generate
npx prisma db push- Start the application
# Start backend (terminal 1)
cd backend
npm run dev
# Start frontend (terminal 2)
cd ..
npm run devPOST /api/auth/register- User registrationPOST /api/auth/login- User loginGET /api/auth/me- Get user profile
GET /api/analytics/overview- Dashboard overviewGET /api/analytics/engagement-trend- Engagement trendsGET /api/analytics/content-performance- Content analysisGET /api/analytics/best-time- Best posting times
POST /api/social/connect/instagram- Connect InstagramPOST /api/social/connect/youtube- Connect YouTubePOST /api/social/connect/twitter- Connect TwitterGET /api/social/accounts- Get connected accounts
POST /api/ai/chat- AI chat assistantPOST /api/ai/analyze-content- Content analysisPOST /api/ai/generate-ideas- Generate content ideasPOST /api/ai/sentiment-analysis- Sentiment analysis
POST /api/reports/generate- Generate reportGET /api/reports- Get all reportsGET /api/reports/:id/export- Export report
- Sign up for an account
- Connect your social media accounts
- View your analytics dashboard
- Get insights from AI assistant
- Generate reports for sharing
- Total engagement metrics
- Platform-wise performance
- Engagement trends
- Content type distribution
- Best posting times
- Platform-specific metrics
- Top performing content
- Content recommendations
- Growth opportunities
- AI-powered recommendations
- Content strategy suggestions
- Growth opportunities analysis
- Performance predictions
- Weekly/Monthly reports
- Custom date range reports
- Export functionality
- Historical data
# Database
DATABASE_URL="postgresql://username:password@localhost:5432/social_media_dashboard"
# JWT
JWT_SECRET="your-super-secret-jwt-key"
# Social Media API Keys
INSTAGRAM_CLIENT_ID="your-instagram-client-id"
INSTAGRAM_CLIENT_SECRET="your-instagram-client-secret"
YOUTUBE_API_KEY="your-youtube-api-key"
TWITTER_API_KEY="your-twitter-api-key"
# OpenAI
OPENAI_API_KEY="your-openai-api-key"npm run build
vercel --prodnpm run build
npm start- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the MIT License.
For support, please open an issue in the GitHub repository or contact the development team.
The dashboard follows a modern, clean design with:
- Primary Color: Blue (#3B82F6)
- Secondary Colors: Platform-specific (Instagram Pink, YouTube Red, Twitter Blue)
- Typography: Geist Sans font family
- Spacing: Tailwind CSS spacing system
- Components: Reusable card-based layout
- Lighthouse Score: 95+
- Page Load: < 2 seconds
- Mobile Responsive: Fully responsive design
- Accessibility: WCAG 2.1 compliant
- TikTok integration
- LinkedIn analytics
- Advanced competitor analysis
- Automated posting scheduler
- Mobile app
- Team collaboration features