I hate manual social posting. Every video I make gets a campaign: a teaser, a launch post, a few reels, a blog summary, a Friday nudge. Multiply that by LinkedIn, Instagram, Threads, Bluesky, Mastodon, TikTok, Pinterest and Discord, and the copy-and-paste takes longer than writing the posts.
Social media tools like Pallyy are great, but they’re built for marketing teams. My case is different: one maker, a knowledge base of markdown files, a Kanban board, and an AI assistant (Claude) that writes the first drafts. I wanted publishing to work like the rest of my workflow: files in folders, scripts that run themselves, and a log when something breaks.
There’s a second reason. I make my videos a month or more ahead of release. The best time to write a campaign is while I’m working on the video, when the details are fresh. I want to write it then, hand the whole thing over, and get on with the next video. A month later, when the video goes out, the posts follow it on their own, with no copy-and-paste and nothing to remember.
So I built Herald. It runs in Docker on my NAS, a Synology DS1522+, posts everything that’s ready every hour, and tells me what still needs a human. Since it moved onto the NAS on 10 November it has posted 69 times without a single failure. The week before, on my Mac, it failed 19 times. This post is how it works and what those 19 failures taught me.
The idea: one file per post
Everything starts in the knowledge base, a folder of markdown files on the NAS (a five-bay Synology DS1522+ that already holds my video projects). Each video or blog gets a campaign folder, and each social post is its own small file in a social/ folder inside it. A post looks something like this:
---platform: blueskytitle: Mbed TLS blog launchpublish_at: 2026-11-05T07:00:00+00:00status: readymedia: images/herald-featured-1200x630.jpgalt_text: A Pico 2 W on the bench with a TLS diagramfirst_comment: Migration guide: {{guide}}Mbed TLS is losing its TLS maintainers in April 2027...
The front matter carries everything a publisher needs: platform, time, status, media, alt text, a first comment. The body is the post. Links live in one links.json per campaign and fill the {{placeholders}}, so a blog URL only has to be set once.
Two rules make it safe:
- Only
status: readyposts go out. Drafts never post. I approve each post on the dashboard, which flips its status. - No placeholder, no post. If a
{{link}}has no value, or the text still says TODO, the publisher refuses and logs why.

Because posts are just files, they’re easy to search, back up, version and generate. Claude writes the campaign as a set of files; I read, tweak and approve.
The publishers
There’s one Python script per platform, plus one script that runs them all:
publish_social.pywalks the campaign folders, finds posts that arereadyand due, and hands each to its platform’s publisher.- A platform is switched on only when it has both a
post_<platform>.pyscript and a config file with its keys. Anything else (YouTube community posts, Facebook groups) appears as a manual reminder instead. - Every real attempt is written to a log: time, result (POSTED, FAILED, MANUAL), platform, file, and the platform’s full error text.
There are no platform SDKs. Every publisher talks to its platform’s web API directly with Requests, which keeps the code small and makes every error message readable. The platforms are a mix of official APIs and a paid service:
| Platform | Route |
|---|---|
| LinkedIn (profile and company page) | LinkedIn API |
| Instagram (reels, images, carousels, stories) | Instagram Graph API |
| Threads | Threads API |
| Bluesky | AT Protocol, app password |
| Mastodon | Mastodon API, access token |
| Discord | Channel webhook |
| TikTok and Pinterest | PostPeer, pay as you go |
TikTok deserves its own mention. TikTok’s Content Posting API needs an app audit before it will post publicly; until then an app can only post to private accounts or drop drafts into your inbox for you to finish in the app. I didn’t want to go through a full app approval process just to post to my own page. Looking around, I found PostPeer, a pay-as-you-go gateway that does the TikTok side for me. Herald sends it the video or photos and the caption, and PostPeer posts them to my TikTok. It also covers Pinterest from the same account. Yes, it costs me, but only pennies a post, which is a lot cheaper than my time.
X isn’t on the list. The publisher is written, but it’s switched off: X’s API costs money, and I haven’t been sure it’s worth paying for. Which raises a bigger question I’d like to ask you: where do you follow makers and embedded projects? YouTube, Instagram, TikTok, LinkedIn, Bluesky, Mastodon, Threads, X, somewhere else? Tell me in the comments. Your answers decide where I spend my writing time, and whether X gets switched on.
Hosting the media
Images are easy: most platforms take an upload, and Instagram and Threads fetch them from a public URL, so they go via my WordPress site.
Video is harder. Instagram and Threads won’t take a video upload directly; they want a URL they can fetch, and my WordPress plan refuses video files. The answer is one private Amazon S3 bucket shared by every publisher, driven from Python with boto3. A video goes up under tmp/, the platform gets a signed link that expires in an hour or two, and the copy is deleted after posting. A bucket rule cleans out anything left in tmp/ after a day, so a crash never leaves files lying around.
Moving it onto the NAS
For the first week I ran publish_social.py by hand on my Mac every morning. That worked, but it meant the Mac had to be on, and I had to remember.
The move to Docker took three steps:
- Paths from environment variables. The knowledge base, the video folders and the config files each come from a variable (
DRJONEA_KB,DRJONEA_VIDEOBLOGS,DRJONEA_CONFIG). On the Mac they point at the mounted shares; in the container they point at/data. The post files keep their Mac paths and the scripts map them, so nothing in the content had to change. - A Dockerfile and docker-compose.yml. The container mounts the knowledge base, the video folders (read-only) and the config share, runs the dashboard on a fixed port, and runs the publish cycle at a minute past every hour.
- Sign-ins stay on the Mac. Anything that needs a browser for OAuth is done on the Mac, and the token file lands in the config share, which both machines use.
One tip from experience: the image needs FFmpeg for video work, and when the build cache is lost that apt step alone can take five to eight minutes on a NAS. It looks stuck. It isn’t.
The first unattended run was 07:02 on 11 November: an Instagram carousel, a LinkedIn post and a Mastodon post, all while I was still making coffee.
The dashboard
Herald is also the dashboard: a bellboy delivering messages, in burgundy and brass. It greets me each morning with what’s due and what went out overnight:

The tabs show:
- Today: what’s due, what needs approving, what I have to do by hand.
- Social schedule: six weeks ahead, a column per day and a row per platform, with a thumbnail of each post.
- Performance: follower counts, how each post did, and each new video’s first 28 days against my good, average and weak videos.
- Cadence: posts per channel per week, with red cells when I’ve crowded a day.



Any button that changes a file backs it up first. The Toolbox has the jobs I sometimes want to run by hand: the morning cycle, publish now, refresh the board or analytics, and rebuild the link-in-bio page.

What broke, and what it taught me
The log is the most useful thing I built. Here are the failures that shaped Herald.
Instagram video. Meta’s own upload failed with a transcoding error, then “Request processing failed” three times in one morning. Moving video to the S3 signed-link route, with Meta’s resumable upload as the fallback, fixed it. Videos over 180 MB are re-encoded to fit.
Bluesky’s 300 characters. One post was 358 characters and failed seven times over three days, because I kept retrying instead of reading the log. Bluesky’s app shows long links shortened, and only the short text counts. The publisher now does the same, and a long post can be split into a thread (1/, 2/ …).
LinkedIn first comments. I put links in the first comment, not the post. LinkedIn’s API refuses to let a personal profile comment unless you’re a partner, so every morning brought a 403. The fix was to post the comment as my company page, and the versioned endpoint turned out to be partner-only too, so it falls back to the older one. If a comment still fails, the post is marked needs_comment and the dashboard gives me a Copy comment button.
The small ones. A missing blog link (now caught before posting), a Threads “invalid link attachment”, and TikTok refusing a photo post, which went away when TikTok moved to PostPeer.
All 19 failures were in the first week. Each one became a rule in the publisher. Since the move, the only hiccups have been two LinkedIn comments I added by hand.
What stays manual
Some things can’t be automated, and Herald just reminds me:
- YouTube community posts have no API. Herald puts the text on the clipboard and opens the image; I schedule the post in YouTube.
- Facebook groups aren’t mine. Those posts are written as a member sharing a project and pasted by hand.
- YouTube uploads I still do myself.
Building it with Claude
Herald wasn’t written in one go. I didn’t hand Claude a spec and wait for a finished product. We worked like an architect and a developer.
- I’m the architect. I decide what Herald should do next, how it fits together, and what “done” looks like. I set the rules (drafts never post, every failure is logged, nothing is deleted) and I test the result against real posts.
- Claude is the developer. Claude writes the code, tests it, fixes what breaks and records each decision in a working agreement: a rules file in the knowledge base that both of us read at the start of every session. The work items live on my Azure Boards backlog, the same as any other project.
Herald grew one step at a time, and each step had to work before the next one started:
- One post, one platform. A script that took a single markdown file and posted it to Instagram. Nothing else.
- More platforms, same file. LinkedIn came next: Instagram and LinkedIn have always been the two I favour. Then a publisher for each of the others, all reading the same post format: Threads, Bluesky, Mastodon, Discord, then TikTok and Pinterest.
- A scheduler. One script that walks every campaign, finds the posts that are ready and due, hands each to its publisher, and logs the result.
- Housekeeping. A morning brief, and archiving: finished campaign folders move out of the way, and every file is backed up before anything changes it.
- A dashboard. A view of what has happened and what is waiting for me, with buttons to approve, skip or reschedule.
- Moving out. From my Mac to Docker on the NAS, so it runs every hour without me.
- Measuring. Performance numbers, then the Cadence view to stop me crowding a channel.
There was lots and lots of testing along the way. Every publisher has a --dry-run that shows exactly what it would send, and a --check that tests the sign-in without posting. Even so, real platforms find things that tests don’t: the 19 failures above, and plenty more during testing before that. Each failure went back to Claude with the full error text, came back as a fix, and became a rule in the working agreement so it couldn’t come back.
That’s the bit I like. It’s an engineering journey, not a magic trick: I decide, Claude builds, we test, and Herald does the posting.
What I used
- Hardware: a Synology DS1522+ NAS running Docker in Synology’s Container Manager
- AI: Claude by Anthropic, as the developer
- Language: Python 3.12, in the slim official Docker image
- Python libraries:
- Requests for every platform API
- boto3 for the S3 media host
- Pillow for Instagram story caption bars and photo posts
- Markdown to turn blog posts into HTML for WordPress
- Google API Client and google-auth-oauthlib for YouTube numbers
- The dashboard itself is Python’s built-in http.server: no web framework
- Media: FFmpeg for video re-wraps, stories and thumbnails, Amazon S3 for temporary video hosting, the WordPress REST API for images and blog posts
- Gateway: PostPeer for TikTok and Pinterest
- Planning: Azure Boards
You’ll find me, and Herald’s posts, on YouTube, Instagram, TikTok, LinkedIn, Bluesky, Mastodon, Threads and Pinterest.
What would you like to know more about?
Herald is still growing, and this post only scratches the surface. What would you like me to go deeper on: the publishers, the Docker setup on the NAS, the dashboard, or how Claude and I work together? Tell me in the comments, or email jon@drjonea.co.uk.
