Postee.ai – AI-Powered Social Media Scheduler
Role: Full Stack Developer
Tech Stack: Laravel 11, Vue 3, Inertia.js (v2), Tailwind CSS v4, Filament Admin, Prism (Gemini AI), Laravel Cashier (Stripe), Pest
Overview
Postee.ai is a SaaS platform designed to streamline social media management. It allows users to connect multiple social accounts, leverage built-in AI tools to generate or refine content (captions, hashtags, images), and publish or schedule posts across various platforms simultaneously.
The Goal
To build a highly responsive, single-page-application (SPA) experience without the overhead of maintaining a separate backend API and frontend project, while robustly handling slow third-party API integrations and expensive AI compute costs.
Key Technical Decisions & Solutions
The "Modern Monolith" Approach (Inertia.js)
Instead of building a decoupled REST API and a separate Vue application, I opted for Laravel paired with Vue 3 via Inertia.js. It provided the snappy, reload-free UX of an SPA while allowing me to use Laravel's native routing, controllers, and session-based authentication. This massively accelerated feature delivery by eliminating API boilerplate.
Asynchronous Social Publishing via Queues
Social APIs (Facebook Graph API, YouTube, etc.) are notoriously slow, heavily rate-limited, and prone to timeouts. Hitting "Publish" on a video post synchronously would freeze the user's browser. To solve this, I decoupled the UI from the publisher. When a user creates a post, it's saved locally and a PostPublishJob is dispatched to Laravel's queue. The heavy lifting — uploading media, API syncing — happens in the background. The database is updated upon completion via a meta_data JSON mapping, and the frontend reflects the status automatically.
Credit-Based Billing System
Standard flat-rate subscriptions are risky when integrating generative AI, as API costs fluctuate based on usage. I built a custom metered billing engine on top of Laravel Cashier for Stripe, with a database schema connecting subscriptions to specific features (e.g., Image Generation, Title Generation). As users utilize AI tools, credits are decremented. Gates and middleware enforce restrictions when credits run out, ensuring the business model scales sustainably.
Multi-Tenant "Brand" Architecture
Agencies need to manage different clients without accidental cross-posting. I implemented a logical multi-tenancy system using a Brand workspace model. Social accounts, posts, and media are scoped exclusively to the currently active Brand, safely isolating client data.
Summary
Building Postee.ai required balancing a premium frontend experience with a heavy, asynchronous backend. By leaning into Laravel's core features — Queues, Cashier, Gates — and bridging it with a reactive Vue frontend, I built a scalable, maintainable SaaS equipped to handle high-frequency AI generation and third-party API integrations.