Skip to content
github · synced
all projects

FlowSocial

Writes posts for Shopify products with AI and schedules them on eight networks.

On this page
  1. What it is
  2. Two versions
  3. The hard part
  4. Status

What it is#

FlowSocial runs social media for small businesses. A workspace connects to a Shopify store; FlowSocial writes captions and hashtags for its products with OpenAI, then schedules and publishes them to Facebook, Instagram, Threads, X, LinkedIn, Bluesky, Mastodon and Pinterest.

Two versions#

The first version was a Next.js app on Supabase and Prisma that published through Publer. It worked, but scheduling, retries and token refresh were all packed into one web app. I started rebuilding it as Go services on Encore (identity, workspaces, integrations, content, media and a job engine) that talk over pub/sub.

The hard part#

Every network has its own rules and its own way of failing. Each post is checked against per-platform limits on length, image count and media type before it's queued. Every publish attempt is logged with its payload, and failures retry with exponential backoff, up to three times. A cron refreshes expiring OAuth tokens every 30 minutes and deactivates revoked accounts. Webhooks from Meta, LinkedIn and X are signature-checked and stored before they're processed.

Status#

Inactive for now, and the code is private. The rebuild has its services and schema in place; publishing still needs end-to-end testing against real platform accounts.