Productivity: AI social media
PostMelon
AI social studio
Next milestone: Owner phone test, then App Store and Google Play submission
Tech stack & architecture
Built with
| Layer | Technology |
|---|---|
| Phone app (iPhone and Android) | Expo SDK 58 with React Native 0.88 and React 19, written in TypeScript |
| Web app | The same code, exported as a web app with React Native Web |
| Screens and navigation | Expo Router; the app's own design system and two themes; Reanimated for motion |
| Backend | Firebase Cloud Functions (second generation, Node.js 22, TypeScript): 35 functions |
| Database | Cloud Firestore, protected by security rules |
| Files | Cloud Storage, with automatic clean-up of temporary copies |
| Sign-in | Firebase Authentication: email and password; Sign in with Apple |
| AI writing | Anthropic Claude (a larger model for writing, a smaller one for scoring and hashtags) |
| AI images and video | Google Gemini for images (Vertex AI as the backup), Google Veo for short video clips |
| Payments | RevenueCat over App Store and Google Play subscriptions |
| Hosting | Firebase Hosting for the web app, the REST API and the MCP server |
| Builds | EAS Build (Expo's cloud build service) for Android and iPhone |
How it fits together
flowchart LR U[Person on iPhone, Android or web] --> A[PostMelon app] T[Automation tools and AI assistants] --> API[REST API and MCP server] A --> AUTH[Firebase sign-in] A --> F[Cloud Functions] API --> F A --> DB[(Firestore database)] F --> DB F --> ST[(Cloud Storage)] F --> AI1[Claude: writing] F --> AI2[Gemini and Veo: images and video] S[Scheduler, every minute] --> F F --> N1[X and Bluesky: direct posting] A -. share sheet .-> N2[Other networks' apps] RC[RevenueCat] --> F A --> RC
The app is one codebase that runs on iPhone, Android and the web. It stores drafts and scheduled posts in the database, and asks the cloud functions to do anything that needs a secret key or a server: AI writing, images and video, fetching a link to remix, connecting a social account and publishing. Every minute a scheduler looks for posts that are due and publishes them directly to the accounts a person has connected (X and Bluesky today). For networks that are not connected, the phone gets a reminder and hands the post to that network's app through the share sheet. RevenueCat tells the server which plan each person is on, so the limits apply everywhere, including the API. The REST API and the MCP server go through the same functions, so tools and AI assistants get the same rules as the app.
Services it uses
- Google Firebase: sign-in, the database, file storage, the cloud functions and web hosting.
- Anthropic (Claude): writes posts, hooks, threads, carousels, scripts and rewrites, and scores drafts.
- Google Gemini and Vertex AI: AI images. Google Veo: short AI video clips.
- RevenueCat: subscriptions through the App Store and Google Play.
- Social networks' own developer platforms: X and Bluesky are connected today; LinkedIn, Facebook, Instagram, Threads, TikTok, YouTube and Pinterest are coded and wait for their developer apps.
- Expo (EAS): cloud builds of the phone apps.
- No advertising, analytics or crash-reporting services are built in.
Quality
- Automated tests: 239 backend tests (publishing, scheduling, security of fetched links, payments, account deletion and more) and 70 app tests for the posting rules. All pass.
- Checks on every change: type checking, linting, Expo's health check (20 of 20) and a content check.
- Live tests: scripts that test the deployed backend (sign-in, database rules, the scheduler, reporting, the API and account deletion) and drive the live web app in a browser at phone size.
- Device tests: the whole app walked on two iPhone simulators, plus a native iPhone build; several Android test builds made in the cloud.
- Reviews: independent reviewers read the backend, the database rules and the app fixes before they shipped; the findings were fixed and re-checked.
- Releases: phone builds are made in Expo's cloud build service with development, preview and production settings; the backend and web app are deployed with Firebase's tools.
Updated 2026-11-23