I post the same founder cases on Instagram (in Portuguese) and on X and LinkedIn (in English) every day, at fixed times. Doing that by hand got old fast, so now most of it runs on its own. This post is a walk through the boring middle of that pipeline: where the carousel images live, how they get scheduled, and the small rules that keep it from falling apart. Everything here is TypeScript on Node.
the shape of it
There are three moving parts:
a bot that writes and renders the carousels (PNG slides, one set in Portuguese, one in English) and drops them in a delivery folder
a second bot that is the only thing allowed to write to my Cloudflare R2 bucket. it archives the files, schedules the posts in Postiz and cleans up
routines, which are just cron schedules in my timezone that wake those bots up in the morning
The "only one writer" rule is deliberate. I took R2 access away from the creative bot. It hands files over, the manager uploads them in the standard layout, and nobody else touches the bucket.…