Menu

How I archive and schedule my daily carousels with R2 and Postiz (TypeScript)
📰

How I archive and schedule my daily carousels with R2 and Postiz (TypeScript)

DEV Community: typescript·Felipe Rohde·6 days ago
#EaLvRflk
#devtotypescript#devto#dev#string#const
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.