AI-Powered Social Media Automation Platform
Transform a single piece of content into platform-optimized posts for LinkedIn, Facebook, Twitter/X, Instagram, Pinterest, and TikTok β all with AI-generated images and smart scheduling.
Live Demo Β· Documentation Β· Report Bug
- One Input, Six Outputs β Write once, publish everywhere with AI-optimized variations
- Platform-Aware Formatting β Automatic character limits, hashtag optimization, and tone adjustment
- AI Image Generation β Create stunning visuals tailored for each platform's dimensions
- Visual Calendar β Drag-and-drop scheduling across all platforms
- Optimal Timing β AI-suggested posting times based on audience engagement
- Queue Management β Bulk schedule and manage content pipeline
- Unified Dashboard β Track performance across all platforms in one place
- Engagement Metrics β Likes, comments, shares, and reach analytics
- Content Performance β Identify top-performing posts and content patterns
- Multi-User Workspaces β Invite team members with role-based permissions
- Brand Kit β Centralized brand colors, fonts, and voice guidelines
- Approval Workflows β Review and approve content before publishing
| Category | Technology |
|---|---|
| Framework | Next.js 15 (App Router) |
| Language | TypeScript 5.x |
| Styling | Tailwind CSS 4, CVA (class-variance-authority) |
| API | tRPC v11 (type-safe) |
| Database | PostgreSQL (Neon), Drizzle ORM |
| Authentication | Clerk |
| Payments | Stripe |
| AI | OpenAI GPT-4o, DALL-E 3 |
| State | Zustand, TanStack Query |
| Forms | React Hook Form + Zod |
-
Clone the repository
git clone https://github.com/mejba13/brandflow-ai.git cd brandflow-ai -
Install dependencies
pnpm install
-
Configure environment variables
cp .env.example .env.local
Fill in your credentials in
.env.local:DATABASE_URL=postgresql://... NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_... CLERK_SECRET_KEY=sk_... OPENAI_API_KEY=sk-...
-
Set up the database
pnpm db:push
-
Start the development server
pnpm dev
Open http://localhost:3000 in your browser.
src/
βββ app/
β βββ (auth)/ # Login/signup routes
β βββ (dashboard)/ # Protected dashboard routes
β β βββ dashboard/
β β βββ analytics/ # Performance metrics
β β βββ calendar/ # Scheduling calendar
β β βββ content/ # Content library
β β βββ create/ # Content creation wizard
β β βββ settings/ # User preferences
β βββ api/
β βββ trpc/ # tRPC endpoint
β βββ webhooks/ # Clerk & Stripe webhooks
βββ components/
β βββ content/ # Content-specific components
β βββ landing/ # Marketing page sections
β βββ layout/ # Dashboard layout components
β βββ ui/ # Reusable UI primitives
βββ lib/
βββ ai/ # OpenAI integration
βββ db/ # Drizzle schema & client
βββ stripe/ # Billing utilities
βββ supabase/ # Storage client
βββ trpc/ # API routers
| Command | Description |
|---|---|
pnpm dev |
Start development server |
pnpm dev:turbo |
Start with Turbopack (faster) |
pnpm build |
Create production build |
pnpm lint |
Run ESLint |
pnpm type-check |
TypeScript type checking |
pnpm format |
Format code with Prettier |
pnpm db:generate |
Generate Drizzle migrations |
pnpm db:migrate |
Run database migrations |
pnpm db:push |
Push schema to database |
pnpm db:studio |
Open Drizzle Studio GUI |
| Platform | Character Limit | Feed Image | Stories/Reels |
|---|---|---|---|
| 3,000 | 1200Γ627 | 1080Γ1920 | |
| 63,206 | 1200Γ630 | 1080Γ1920 | |
| Twitter/X | 280 | 1600Γ900 | 1080Γ1920 |
| 2,200 | 1080Γ1080 | 1080Γ1920 | |
| 500 | 1000Γ1500 | 1080Γ1920 | |
| TikTok | 2,200 | 1080Γ1080 | 1080Γ1920 |
- Dashboard UI & navigation
- Content creation wizard
- Content library management
- Scheduling calendar
- Analytics dashboard
- Brand kit management
- Social platform OAuth connections
- Live AI content generation
- Automated posting
- Mobile app (Flutter)
Contributions are welcome! Please read our contributing guidelines before submitting a pull request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License. See the LICENSE file for details.
I build AI-powered applications, mobile apps, and enterprise solutions. Let's bring your ideas to life!
| Platform | Description | Link |
|---|---|---|
| Fiverr | Custom builds, integrations, performance optimization | fiverr.com/s/EgxYmWD |
| Mejba Personal Portfolio | Full portfolio & contact | mejba.me |
| Ramlit Limited | Software development company | ramlit.com |
| ColorPark Creative Agency | UI/UX & creative solutions | colorpark.io |
| xCyberSecurity | Global cybersecurity services | xcybersecurity.io |
Built with passion using Next.js, tRPC, and AI