Skip to content

mejba13/brandflow-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

BrandFlow AI

Next.js 15 TypeScript Tailwind CSS tRPC Drizzle ORM

AI-Powered Social Media Automation Platform

landing-page dashboard-index

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


Features

Content Transformation

  • 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

Smart Scheduling

  • 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

Analytics & Insights

  • 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

Team Collaboration

  • 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

Tech Stack

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

Getting Started

Prerequisites

  • Node.js 20+
  • pnpm 9.x
  • PostgreSQL database (or Neon account)
  • Clerk account
  • OpenAI API key

Installation

  1. Clone the repository

    git clone https://github.com/mejba13/brandflow-ai.git
    cd brandflow-ai
  2. Install dependencies

    pnpm install
  3. 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-...
  4. Set up the database

    pnpm db:push
  5. Start the development server

    pnpm dev

    Open http://localhost:3000 in your browser.


Project Structure

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

Available Scripts

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 Support

Platform Character Limit Feed Image Stories/Reels
LinkedIn 3,000 1200Γ—627 1080Γ—1920
Facebook 63,206 1200Γ—630 1080Γ—1920
Twitter/X 280 1600Γ—900 1080Γ—1920
Instagram 2,200 1080Γ—1080 1080Γ—1920
Pinterest 500 1000Γ—1500 1080Γ—1920
TikTok 2,200 1080Γ—1080 1080Γ—1920

Roadmap

  • 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)

Contributing

Contributions are welcome! Please read our contributing guidelines before submitting a pull request.

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

License

This project is licensed under the MIT License. See the LICENSE file for details.


Developed By

engr-mejba-ahmed

Engr Mejba Ahmed

AI Developer | Software Engineer | Entrepreneur

Portfolio LinkedIn GitHub


Hire / Work With Me

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

About

🌐 BrandFlow AI - AI-powered social media automation platform that transforms your content into platform-optimized posts with AI-generated visuals, intelligent scheduling & lead magnet capabilities. Built with Next.js 15, TypeScript & Tailwind CSS 4.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages