Skip to content
Amine Benlaroui
All projects

Private platform, architecture

HQ

The platform where I run my apps: their numbers, their posts and the work of an AI agent, which I approve before it gets built.

Period
Since October 2026
Context
Personal tool for running my apps as businesses
Stack
Next.js, Neon, Drizzle, Vercel
Sources
Supabase, Neon, App Store Connect, Search Console
Rendering
Chromium, ffmpeg
The diagram
  1. Sources

    • QiyamSupabase, read-only role
    • IronmileNeon, column grants
    • App Store ConnectSales, analytics, reviews
    • Search ConsoleThe sites' search data
  2. HQ

    • CopiesEvery hour, and in full every night
    • One Neon databaseDefinitions written and tested
    • App factsWhat each app says about itself
  3. Outputs

    • DashboardsFunnel, retention, money, per app
    • StudioChromium and ffmpeg, to Instagram and TikTok
    • BlogsApproved articles, committed to each site

The approval loop

  1. 1The agent reads numbers, reviews and code, through a narrow API
  2. 2It files memos, proposals and requests
  3. 3I approve or reject, from my phone
  4. 4A Claude Code session builds and verifies
  5. 5The request is marked done

Then the next week

Why

Qiyam and Ironmile each have their numbers, their posts and their improvement ideas. I brought them together at one address, in one database and one repository, so an agent sees the numbers, the posts and the code together. The site is private: only its architecture is shown here, without any data.

The data

  • Every hour, HQ copies each app's account, money and funnel data, through read-only roles whose column grants leave out plans, notes and health data.
  • Every day, it imports App Store Connect's sales and analytics reports, reviews without their authors' names, and Search Console.
  • Every definition (active, retention, Premium) is written at the top of its file and tested.

The content studio

  • Claude routines write each app's carousels and two blog articles every week. Nothing goes out without my approval, from my phone.
  • Slides are rendered by a real Chromium; videos frame by frame, then put together with ffmpeg, before being scheduled on Instagram and TikTok.
  • Each app publishes what is true about itself. Posts cite those facts; when one changes, whatever cites it goes back to review.

The agent and the approval loop

A “growth lead”, a weekly Claude routine, reads the numbers, what users say and the apps' code. It writes a memo per app, marketing proposals, and requests for features or fixes.

It acts only through a narrow API: read-only SQL, append-only memory. I approve or reject; an approved request waits for the next Claude Code session on the right repository, which builds it, verifies it and marks it done.