Skip to main content

File-based social media publisher. Write markdown, post to LinkedIn, Bluesky, and Mastodon.

Project description

mdsend — File-based social media publisher

mdsend

Write markdown posts, run mdsend, and it cross-posts to your social media platforms.

The main purpose is simple: set up a git repo with a simple directory structure and publish from it to various destinations. Your posts are in a single unified format that works across different social media platforms. You get a version-controlled archive that can be queried and managed by AI should the need arise.

Want to know what you've been focusing on, what your next posts should be, how to improve your writing, or which tags to use? Just ask your AI tool — it can read the repo and answer and provide you with a perspective.

This approach keeps you disconnected from the destination network so you don't get pulled into everyone else's feeds.

Supported platforms

Platform Max chars Max media API auth
LinkedIn 3,000 1 image OAuth 2.0 (Bearer)
Bluesky 300 4 images AT Protocol (App Password)
Mastodon 500 4 images OAuth (Access Token)

How it works

Each post is a directory named YYYY-MM-DD_HH-MM_slug/ containing:

  • post.md — the post text (markdown or plain text)
  • Optional media files (jpg, png, gif, mp4, mov)
posts/
├── 2026-05-03_15-30_my-thoughts/
│   ├── post.md
│   └── image.jpg
└── 2026-05-04_18-00_hello-world/
    └── post.md

Per-post platform targeting

By default every post goes to all platforms. To control this per post, add an optional front matter block at the top of post.md:

---
platforms: [bluesky]
---

This post will only appear on Bluesky.
---
platforms: []
---

This post is a draft — it will never be published.

Installation

pip install mdsend

Or from source:

git clone https://github.com/algodesigner/mdsend
cd mdsend
pip install -e .

Setup

Create a .env file with your API credentials:

cp .env.example .env

Fill in the credentials for the platforms you want to use. See .env.example for the full list of required fields.

Usage

# Preview what would be posted (default — no API calls made)
cd /path/to/your/posts
mdsend

# Actually post live
mdsend --publish

# Post to specific platforms
mdsend --platforms bluesky
mdsend --platforms bluesky --publish

Creating a new post

# Create a post directory and open the editor
mdsend --new "my-post-slug"

This creates a directory like 2026-05-04_21-30_my-post-slug/ with a post.md file containing a front matter template, then opens it in your $EDITOR (or vi by default).

Dry run

mdsend runs in dry-run mode by default — it prints what would be posted without calling any API. Use --publish to post live.

Multi-post threading (Bluesky)

Posts longer than 300 characters are automatically split into a threaded thread on Bluesky. Each chunk is prefixed with 🧵 (n/N) so readers know it's part of a multi-part post.

Idempotent publishing

Each platform gets its own sentinel file under posts/.published/. Re-running is safe — already-published platforms are skipped.

License

BSD 3-Clause. See LICENSE.

Happy microblogging! ☕

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mdsend-0.3.0.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mdsend-0.3.0-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file mdsend-0.3.0.tar.gz.

File metadata

  • Download URL: mdsend-0.3.0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for mdsend-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c48fee7abad30fe52255b42ead83f4215d733772d8d9bad215f533de95e0f8bf
MD5 5afc4490683bc787838d43430addd7e9
BLAKE2b-256 c2baa8f9d00399638b23f828ea23bb00bbc7017acec78ad64ce54bb4b76cee30

See more details on using hashes here.

File details

Details for the file mdsend-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: mdsend-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for mdsend-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d331a112ecf5ddf06681cc20a041555a7d5d55ae7e4ac140f184743186f6d845
MD5 77edd8e457b31026d2550ebcb64bd270
BLAKE2b-256 a36213da9b35874edb0906b2e1789aa304f4b6ad049347696ccdc8e511cf375e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page