My product2025–2026Social media planning
Blitz Planner
Plan, create and publish social media content as a team, with an AI copilot and an API your agents can use.
The problem
Social media teams juggle a calendar, a chat, a shared drive and each network’s own app. Assignments, approvals and publishing end up scattered.
What I built
- 01
Team planning
Organizations, worker scheduling and objectives in one shared calendar.
- 02
AI copilot
A copilot drafts posts and carousels from the brand’s content memory.
- 03
Direct publishing
Approved content is published directly, including TikTok carousels through Direct Post.
- 04
Ready for agents
A public REST API, a TypeScript SDK and a remote MCP server let AI agents plan and publish.
Key decisions
For technical readers: key decisions
Publishing that cannot run twice
A retried job must never post the same content twice. Each post has a single queue job, and each account it targets is claimed with a conditional database update before publishing. An account already published returns its stored post ID instead of posting again.
Trade-off: State is tracked per account, so a post can end up partially published, and the status says so.
AI credits as a ledger
AI video generation is billed in credits. Credits are reserved before a request reaches the provider and released if the provider rejects it or the video fails. A Stripe refund takes back credits in proportion, and events arriving out of order cannot restore them.
Trade-off: More states to handle than charging after the fact. In return, a customer never pays for a failed generation.
One contract for four surfaces
The REST API, the TypeScript SDK, the MCP server and the docs change together, with tests on each. Purchases stay out of the agent-facing surfaces on purpose.
Trade-off: Every public change costs more work, so integrators never call a tool the API no longer supports.
Under the hood
- Next.js app, NestJS API, remote MCP server with 28 tools and a published TypeScript SDK.
- Publishing adapters for Instagram, LinkedIn, TikTok and YouTube.
- API keys stored as peppered HMAC hashes, social tokens encrypted with AES-256-GCM.
- Subscriptions and credit packs billed with Stripe, through signed, idempotent webhooks.
Stack
- Next.js
- NestJS
- BullMQ
- Redis
- Prisma
- Stripe
- MCP