Why it was needed
Creators and small teams repeat the same editorial work for every social platform. They rewrite one idea for different limits, compare weak AI variants, check brand language, and then move the result into separate publishing tools.
AI providers vary in availability, rate limits, model behavior, and key quotas. LinkedIn, X, and Facebook each impose different OAuth, account, content, and API requirements. Scheduled publishing must survive beyond the request that created it and retain a reviewable status.
How it is built
The Next.js application keeps HTTP boundaries in route handlers, product logic in domain modules, infrastructure in core services, and durable delivery in Inngest.
Separate provider choice from generation. A provider switcher walks configured models and keys, so product workflows do not depend on one vendor-specific client.
Treat brand voice as stored rules. Required language, blocked language, audience, tone, and persona context are workspace data rather than prompt-only instructions.
Move scheduled work to a durable queue. Inngest owns delayed execution and status transitions instead of relying on an open browser session or a long HTTP request.
The key decision: Separate provider choice from generation.
What changed
Defined the end-to-end product flow from topic input to platform-ready output. Built the Next.js interface, API routes, domain services, and MongoDB repositories. Implemented multi-provider AI selection, reusable guardrails, scoring, and platform previews. Integrated authentication, account recovery, social OAuth, Inngest scheduling, and publishing records.
One workspace now covers generation, comparison, refinement, preview, and delivery. Provider and key fallback reduce the workflow's dependency on a single AI endpoint. Publishing state is persisted for library and insights views instead of ending at generation. Operational limits remain explicit: publishing still depends on platform approval, scopes, account type, and API access.
My role: Product design and full-stack engineering. Scope: AI workflow, publishing integrations, and background jobs.
