omnipost-social-engine
by 1nc0gn30
README.md
# ๐ Omnipost Social Engine
<div align="center">
[](https://github.com/omnipost/omnipost-social-engine/actions)
[](https://pypi.org/project/omnipost-social-engine/)
[](https://modelcontextprotocol.io/)
[](./public/index.html)
[](https://opensource.org/licenses/MIT)
**The unified, type-safe multi-platform social media orchestration framework for Python & AI Agents.**
[Web Studio](./public/index.html) โข [MCP Guide](./docs/MCP_GUIDE.md) โข [Viral Hooks](./docs/VIRAL_HOOK_FORMULAS.md) โข [Platform Limits](./docs/PLATFORM_LIMITS_GUIDE.md) โข [Examples](./examples/README.md)
</div>
---
## ๐ Overview
**Omnipost Social Engine** eliminates the friction of managing cross-platform developer advocacy, launch campaigns, and technical content syndication. Write your post once, simulate how it looks across **Twitter / X**, **LinkedIn**, **BlueSky**, **Threads**, and **Mastodon**, optimize opening hooks with psychological heuristics, and broadcast safely with async leaky-bucket rate limiters.
Equipped with a **Google Material 3 Light Mode Web Studio** (`public/index.html`) and a native **Model Context Protocol (MCP)** server, Omnipost can be operated by human creators or fully autonomous AI coding assistants (Claude Desktop, Cursor, Cline, Zed).
---
## โจ Key Features
* **๐จ Google Material 3 Studio (`public/index.html`)**:
* 0 external font/cookie tracking scripts, fast, private, offline-first.
* Live circular character counter progress ring with platform-aware limits.
* Algorithmic Virality Score meter (0โ100) with diagnostic breakdown.
* **โ๏ธ Multi-Platform Composer & Simulator**:
* Real-time side-by-side mockups of Twitter, LinkedIn (with 210-char `see more` cutoff), BlueSky, and Threads.
* 1-Click Unicode mathematical typography toolbar (Bold, Italic, Monospace, Strikethrough).
* **๐งต Smart Thread Splitter**:
* Auto-split essays, markdown docs, or newsletters into numbered thread cards.
* Look-ahead sentence boundary packing (<280 chars) with draggable reordering.
* **๐ฃ High-Converting Viral Hook Generator**:
* 15+ battle-tested psychological copywriting frameworks (Curiosity Gap, Contrarian Hot Takes, Playbooks, Shocking Metrics).
* **๐ค Native Model Context Protocol (MCP) Server**:
* Seamless integration with Claude Desktop, Cursor, Cline, and Zed.
* Standard JSON-RPC 2.0 tools: `score_virality`, `generate_thread`, `convert_platform`, `optimize_hook`, `schedule_campaign`, `validate_limits`.
* **๐ก๏ธ Deterministic Platform Limits Engine**:
* Precise character counting (Twitter weighted glyphs + 23-char `t.co` URLs, ATProto UTF-8 byte facets).
* Leaky-bucket rate limit queues with exponential backoff.
---
## ๐๏ธ Architecture
```mermaid
flowchart TD
subgraph Input["Input Channels"]
Studio["๐จ Google Material 3 Studio<br/>(public/index.html)"]
CLI["๐ป Omnipost CLI"]
MCP["๐ค AI Agent MCP Clients<br/>(Claude, Cursor, Cline, Zed)"]
PyAPI["๐ Python SDK / API"]
end
subgraph Core["Omnipost Social Engine Core"]
Tokenizer["AST Tokenizer & Thread Splitter"]
UnicodeEngine["Unicode Mathematical Typography"]
ViralityScorer["Algorithmic Virality Diagnostics"]
EnvelopeEngine["Platform Envelope Translators"]
RateLimiter["Leaky Bucket Async Token Bucket"]
end
subgraph Outputs["Target Platforms"]
TW["๐ / Twitter (280 chars)"]
LI["๐ผ LinkedIn (3000 chars)"]
BS["๐ฆ BlueSky ATProto (300 chars)"]
TH["๐งต Threads (500 chars)"]
MA["๐ Mastodon Fediverse (500 chars)"]
end
Studio --> Core
CLI --> Core
MCP --> Core
PyAPI --> Core
Core --> TW
Core --> LI
Core --> BS
Core --> TH
Core --> MA
```
---
## โก Quickstart
### 1. Installation
```bash
# Clone the repository
git clone https://github.com/omnipost/omnipost-social-engine.git
cd omnipost-social-engine
# Install in editable mode
pip install -e .
```
### 2. Launch Google Omnipost Web Studio
Open `public/index.html` directly in your browser (no Node.js build step or local server required):
```bash
# macOS
open public/index.html
# Linux
xdg-open public/index.html
# Windows
start public/index.html
```
---
## ๐ Python API Usage
### Score Virality & Diagnose Draft
```python
from omnipost_social_engine import OmnipostEngine
engine = OmnipostEngine()
draft = """
๐ We just open-sourced Omnipost Social Engine!
One unified Python library to compose, simulate, and broadcast across:
โข Twitter / X
โข LinkedIn
โข BlueSky & Threads
Star the repo on GitHub ๐
#Python #OpenSource
"""
result = engine.score_virality(draft, platform="twitter")
print(f"Virality Score: {result.score}/100 ({result.grade})")
print(f"Hook Strength: {result.factors.hook_power}/30")
```
### Split Long Essay into a Verified Thread
```python
essay = Path("article.md").read_text()
thread = engine.split_thread(
source_text=essay,
max_chars_per_post=280,
numbering_style="fraction", # (1/N)
auto_hook=True,
auto_cta=True
)
for post in thread.posts:
print(f"[{post.order}/{len(thread.posts)}] ({len(post.text)} chars):\n{post.text}\n---")
```
---
## ๐ค Model Context Protocol (MCP) Integration
Omnipost includes ready-to-copy MCP configurations for all major AI coding environments in [`examples/mcp-clients/`](./examples/mcp-clients/):
* **Claude Desktop**: Add to `claude_desktop_config.json`:
```json
{
"mcpServers": {
"omnipost-social-engine": {
"command": "python",
"args": ["-m", "omnipost_social_engine.mcp_server"],
"env": {
"PYTHONPATH": "src"
}
}
}
}
```
* **Cursor IDE**: Add to `.cursor/mcp.json`.
* **Cline**: Add to `cline_mcp_settings.json`.
* **Zed**: Add to `~/.config/zed/settings.json`.
Read the complete [MCP Guide](./docs/MCP_GUIDE.md) for full tool schemas.
---
## ๐ Repository Structure
```
omnipost-social-engine/
โโโ .github/
โ โโโ workflows/
โ โโโ ci.yml # 15-job matrix (Ubuntu, macOS, Win / Python 3.9-3.13)
โ โโโ release.yml # Wheel/sdist packaging, SHA256, PyPI & GitHub Release
โโโ docs/
โ โโโ MCP_GUIDE.md # Model Context Protocol manual & tool schemas
โ โโโ PLATFORM_LIMITS_GUIDE.md# Platform rate limits, character specs & media matrix
โ โโโ VIRAL_HOOK_FORMULAS.md # 15+ psychological copywriting formulas & heuristics
โโโ examples/
โ โโโ README.md # Master examples catalog
โ โโโ developer-thread/ # 10-part technical developer thread example
โ โ โโโ thread.md
โ โ โโโ README.md
โ โโโ launch-campaign/ # Complete omnichannel product launch dataset
โ โ โโโ campaign.json
โ โ โโโ posts.csv
โ โ โโโ README.md
โ โโโ mcp-clients/ # Pre-built configs for Claude, Cursor, Cline, Zed
โ โโโ claude_desktop_config.json
โ โโโ cursor_mcp.json
โ โโโ cline_mcp.json
โ โโโ zed_settings.json
โ โโโ README.md
โโโ public/
โ โโโ index.html # Google Material 3 Studio single-page application
โโโ src/
โ โโโ omnipost_social_engine/ # Core engine Python package
โโโ tests/
โโโ test_examples.py # Validation test suite for UI, examples & docs
```
---
## ๐งช Testing & Verification
Run the comprehensive pytest suite:
```bash
PYTHONPATH=src pytest tests/ -v
```
All 15 matrix environments in GitHub Actions enforce:
* Python 3.9, 3.10, 3.11, 3.12, 3.13
* Linux (Ubuntu), macOS, and Windows runners
* 100% test pass rate
---
## ๐ License
Distributed under the **MIT License**. See `LICENSE` for details.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo issues