๐Ÿ“ฑ Social Post AI

June 10, 2026 ยท View on GitHub

Generate platform-native social media posts for LinkedIn, Twitter/X, Instagram, Facebook, Reddit, and LINE in seconds. A production-ready, self-hostable Next.js SaaS boilerplate with live platform mockups, multi-tone generation, publish intents, and built-in Stripe billing. A free open-source alternative to Buffer AI, Jasper Social, Hootsuite OwlyWriter, Publer, and Copy.ai โ€” powered by the MuAPI AI engine.

Tech stack: Next.js 14 (App Router) ยท Prisma ยท PostgreSQL ยท NextAuth (Google OAuth) ยท Stripe ยท Tailwind CSS ยท MuAPI any-llm Use cases: Social media managers ยท Content creators ยท Marketing agencies ยท Influencers ยท Brand managers ยท Startup growth teams ยท E-commerce stores ยท Newsletter writers

Awesome Generative AI Apps

๐ŸŽจ Explore 50+ more open-source AI apps โ†’

๐ŸŒ Try the Live Engine

Hosted Demo: social-post-woad.vercel.app

Experience the full glassmorphic, responsive interface. Sign in with Google to explore the Studio, customize dropdowns (Language, Character Length, and Tones), and preview mock social feeds directly from your browser.


AI Social Post Generator is not just another wrapper โ€” it's a production-ready, highly-optimized AI web application. Out of the box, it seamlessly manages User Authentication, Credits & Billing, Creations Persistence, and asynchronous AI generation polling using a sleek Next.js (App Router) architecture. It empowers you to build professional-grade AI workflows with built-in mobile optimization, making it the perfect starting point for your next AI SaaS.

Why use AI Social Post Generator?

  • Production-Ready SaaS โ€” Complete with Google OAuth and Stripe Checkout workflows built-in.
  • Studio Control Center โ€” Customize dropdowns for platform type, tone of voice, language translation, and character constraints.
  • Dynamic Live Previews โ€” Tailor-made mockup cards for LinkedIn, Twitter / X, Instagram, Facebook, Reddit, and LINE.
  • Real Publishing Intents โ€” Seamlessly launch composer windows pre-filled with your generated post copy with one click.
  • Responsive UX โ€” Dynamic sliding dropdowns, micro-animations, and complete mobile-stacked responsiveness.

AI Social Post Generator Dashboard UI

โœจ Core Features

  • Kinetic Studio Panel โ€” Input topics in an expanding textarea, select platforms, tones, and toggle advanced settings (Include Emojis, Include Hashtags, and Include Title / Headline).
  • Custom Dropdowns โ€” Sleek custom selectors featuring Chevron down/up animations, absolute overlays, and overscroll-contain wheel scroll-chaining preventions.
  • Dynamic Platform Mockups โ€” Tailor-made preview cards reflecting genuine social feeds:
    • LinkedIn: Profile headers, like counts, and professional corporate styling.
    • Twitter / X: X-premium checkmark badges, sleek black themes, tweet formatting, and 280-character limit alerts.
    • Instagram: Styled visual placeholder frame banner, caption layouts, and heart counts.
    • Reddit: Standard dark r/socialpost community headers, author tags, upvote/downvote arrows, and markdown titles.
    • LINE: Broadcasting chat bubble framework with official brand icons and chat timestamps.
  • Publishing Intent Gateway โ€” Segmented choice for Manual Copy (to clipboard) vs. Direct Publish (launches mock OAuth connection stepper steps and pre-populates X/LINE/Reddit compose editors).
  • History Archive โ€” A persistent gallery with complete modal detail views, copies, and updates.
  • Credit Tiers & Billing โ€” Complete Stripe integration. Deduct 4 credits ($0.02) per generated post and route users to price tier panels (Basic, Standard, Pro, Business) to buy bundles.

โšก Deployment: Vercel & Production

Deploying an instance of AI Social Post Generator to the web requires minimal configuration. The architecture is engineered explicitly for Vercel serverless environments.

One-Click Deploy

Deploy with Vercel

Pro Tip: Fork this repository, replace YOUR_GITHUB_USER in the link above, to streamline deployments for your private forks.

๐Ÿ”‘ Required Environment Variables

To successfully deploy and run, you must populate the following environment variables in your Vercel project settings:

ServiceVariableDescription & Source
DatabaseDATABASE_URLPostgreSQL connection string (Supabase shared pool with pgbouncer)
DIRECT_URLDirect DB connection for Prisma migrations and pushes
NextAuth / GoogleNEXTAUTH_SECRETSecure random string generated via openssl rand -base64 32
NEXTAUTH_URLYour production domain (e.g. https://social-post-woad.vercel.app)
GOOGLE_CLIENT_IDGet from Google Cloud Console
GOOGLE_CLIENT_SECRETGet from Google Cloud Console
Stripe BillingSTRIPE_SECRET_KEYGet from Stripe Dashboard
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEYGet from Stripe Dashboard
STRIPE_WEBHOOK_SECRETWebhook secret for resolving credit purchases
AI GeneratorMU_API_KEYCreate an account and get key from muapi.ai/access-keys
WEBHOOK_URLCallback URL for receiving slow-running generation events

๐Ÿš€ Launching on Vercel: Step-by-Step

  1. Database Provisioning: Create a new Postgres database (via completely free tiers on Vercel Postgres, Supabase, or Neon). Retrieve the pooling connection string (DATABASE_URL) and direct connection string (DIRECT_URL).
  2. Project Creation: Import your GitHub fork into the Vercel dashboard.
  3. Configure Environment Variables: Copy the variables above into the Vercel project settings environment tab.
  4. Deploy: Hit "Deploy". Vercel will automatically run the build steps (npm run build).
  5. Database Push: Since Prisma does not automatically migrate via Vercel builds by default, you may want to append npx prisma db push && to your Vercel build command, or manually run it locally pointing to your production database URL.
  6. Integrations Setup:
    • Establish a Google Cloud OAuth app, enabling the callback URL: https://social-post-woad.vercel.app/api/auth/callback/google
    • Setup a Stripe Webhook, pointing to https://social-post-woad.vercel.app/api/stripe/webhook and selecting the checkout.session.completed event to grab your webhook signing secret.

๐Ÿ› ๏ธ Local Development

Ready to iterate locally? Setup is straightforward.

Prerequisites

  • Node.js (v18 or higher)
  • A local PostgreSQL instance or a free cloud Database URL.

Setup

# 1. Clone the repository
git clone https://github.com/SamurAIGPT/social-post
cd social-post

# 2. Install dependencies
npm install

# 3. Setup Environment
cp .env.example .env
# Open .env and insert your specific keys. You can use a local DB or your dev cloud DB.

# 4. Initialize Database Schema
npx prisma generate
npx prisma db push

# 5. Start the Development Server
npm run dev

The graphical console should now be heavily responsive on http://localhost:3000.


๐Ÿ—„๏ธ Database Setup (Prisma Introspection Cycle)

โš ๏ธ Database Safety Warning: This application shares a single PostgreSQL database instance on Supabase with other applications in this workspace. Follow the cycle below to synchronize models safely:

  1. Pull all existing tables: npx prisma db pull (introspects all 20+ active tables)
  2. Declare relation changes: Inject the SocialPostCreation model in your local schema.prisma and link it inside the User model.
  3. Push to database: Run npx prisma db push to merge changes safely.
  4. Local Schema Cleanup: Strip away other applications' models from your local schema.prisma, leaving only Account, Session, User, VerificationToken, and SocialPostCreation.
  5. Compile local client: Run npx prisma generate to build your local Prisma client.

๐Ÿ—๏ธ Technical Architecture

This application decouples visually rich UI elements from core business logic layers, emphasizing modularization.

social-post/
โ”œโ”€โ”€ prisma/
โ”‚   โ””โ”€โ”€ schema.prisma           # Postgres tables: Users, Accounts, Creations
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ app/                    # Next.js 16 App Router
โ”‚   โ”‚   โ”œโ”€โ”€ api/                # Backend API Routes (Stripe, MuAPI any-llm, Auth)
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ auth/           # NextAuth catch-all routes
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ billing/        # Stripe Checkout session builders and webhook listeners
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ creations/      # Creations database fetch and POST polling endpoints
โ”‚   โ”‚   โ”œโ”€โ”€ gallery/            # Detailed css grid completed user posts gallery
โ”‚   โ”‚   โ”œโ”€โ”€ pricing/            # Interactive packaging tier checkout selection page
โ”‚   โ”‚   โ”œโ”€โ”€ layout.js           # Head assets and metadata
โ”‚   โ”‚   โ”œโ”€โ”€ globals.css         # Styling system theme and gradients
โ”‚   โ”‚   โ””โ”€โ”€ page.js             # Main Studio generation and social preview interface
โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ””โ”€โ”€ Navbar.jsx          # Collapsible responsive navigation component
โ”‚   โ””โ”€โ”€ lib/
โ”‚       โ”œโ”€โ”€ prisma.js           # Shared ORM client singleton
โ”‚       โ”œโ”€โ”€ auth.js             # Google OAuth callback options
โ”‚       โ”œโ”€โ”€ config.js           # Platform metadata and price tiers
โ”‚       โ””โ”€โ”€ services/
โ”‚           โ”œโ”€โ”€ user.js         # Credit adjustment database hooks
โ”‚           โ”œโ”€โ”€ billing.js      # Stripe construction services
โ”‚           โ””โ”€โ”€ ai.js           # MuAPI predictions submissions and fallback mocks
โ”œโ”€โ”€ next.config.mjs             # Next Configuration
โ”œโ”€โ”€ tailwind.config.js          # Project theme specs
โ””โ”€โ”€ package.json

๐Ÿ“„ License

MIT Licensed.


AI Social Post Generator: A modular, mobile-ready, production-grade AI web application engine built for creators and builders.