How murihat/automated-posting works
This is a FastAPI service for validating a short promotional message and broadcasting it concurrently to five publishing platforms. The request enters through the posting endpoint, is validated as a message with one public CTA URL, and is passed to an orchestrator that isolates per-platform failures and returns structured results. Platform adapters own their respective external API calls and use a shared result-building contract. The README documents all five integrations; the sampled adapter excerpts support their request and response behavior. Connections below are limited to relationships shown in source or documented in the README.
Main entry points: posting_service.py Posting service · base.py Platform contract · main.py Posting endpoint · github_gist.py GitHub Gist adapter
Components 16
API and validation
- Posting endpoint
app/main.py - Request and response models
app/schemas.py
Posting orchestration
- Posting service
app/services/posting_service.py
Platform adapters
- GitHub Gist adapter
app/platforms/github_gist.py - Dev.to adapter
app/platforms/devto.py - Telegram adapter
app/platforms/telegram.py - Discord adapter
app/platforms/discord.py - Mastodon adapter
app/platforms/mastodon.py
Configuration and contracts
- Environment settings
app/config.py - Platform contract
app/platforms/base.py
Other components
- API caller
- GitHub API
- Dev.to API
- Telegram Bot API
- Discord webhook
- Mastodon API
Connections 20
- API caller → Posting endpoint: submits post
README.md - Posting endpoint → Request and response models: validates and models
app/main.py - Posting endpoint → Environment settings: loads settings
app/main.py - Posting endpoint → Posting service: invokes publishing
app/main.py - Posting service → Request and response models: extracts CTA URL
app/services/posting_service.py - Posting service → GitHub Gist adapter: dispatches publish
app/services/posting_service.py - Posting service → Dev.to adapter: dispatches publish
app/services/posting_service.py - Posting service → Telegram adapter: dispatches publish
app/services/posting_service.py - Posting service → Discord adapter: dispatches publish
app/services/posting_service.py - Posting service → Mastodon adapter: dispatches publish
app/services/posting_service.py - GitHub Gist adapter → GitHub API: creates gist
app/platforms/github_gist.py - Dev.to adapter → Dev.to API: publishes article
app/platforms/devto.py - Telegram adapter → Telegram Bot API: sends message
app/platforms/telegram.py - Discord adapter → Discord webhook: posts webhook
app/platforms/discord.py - Mastodon adapter → Mastodon API: publishes status
app/platforms/mastodon.py - GitHub Gist adapter → Platform contract: builds results
app/platforms/github_gist.py - Dev.to adapter → Platform contract: builds results
app/platforms/devto.py - Telegram adapter → Platform contract: builds results
app/platforms/telegram.py - Discord adapter → Platform contract: builds results
app/platforms/discord.py - Mastodon adapter → Platform contract: builds results
app/platforms/mastodon.py