{"slug": "too-lazy-to-post-too-obsessed-with-building-so-built-slothgram-one-dev-one-psot", "title": "too lazy to post too obsessed with building so built slothgram, one Dev one Psot🦥", "summary": "A developer built Slothgram, an open-source tool that takes a single update and generates editable, per-destination versions for X, LinkedIn, DEV.to and GitHub, then publishes each as an independent job. The backend runs an open-weight model locally via an Ollama-compatible server (default qwen2.5:7b-instruct) with JSON-schema-constrained output, while deterministic code validates results and the AI module holds no publishing credentials. Publishing is orchestrated on Temporal, giving each destination its own durable, retryable workflow with an approval signal, scheduled timers, backoff retries and idempotency keys; the project ships with 24 passing tests.", "body_md": "*This is a submission for the [Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady](https://dev.to/challenges/hacktoberfest-week3-2026-10-19)*\n\n**Slothgram: ONE DEV ONE POST.**\n\nYou ship something, then open four tabs, rewrite the same update four times, pick hashtags, and publish one platform at a time. Slothgram turns that into one step: write the update once, get a separate version for each destination (X, LinkedIn, DEV.to, GitHub), edit each version, and publish them as independent jobs.\n\nIt's for developers, students and open-source contributors who would rather build than post. The \"lazy\" part is deliberate. You get less repetitive writing, but you still approve every post before it goes anywhere.\n\nThe demo runs in your browser in a clearly labeled **demo mode**. You can write a post, choose destinations, get an editable version per destination with character-limit checks, confirm, and watch simulated publishing, including a failed destination you can retry without touching the ones that succeeded. Nothing is really published, and the page never claims otherwise. The connection indicators are all red because no real platform is connected.\n\nThe browser demo adapts text with simple rules. The open-weight model step lives in the backend (see below).\n\nWrite once, adapt, and publish to developer communities. Publishing runs on **Temporal**, so every\ndestination is a durable, retryable, independent job.\n\n```\nslothgram/\n  frontend/index.html       landing page + browser demo (open it in a browser, no build step)\n  backend/slothgram/        ai.py, workflows.py, activities.py, adapters.py, client.py, worker.py, cli.py\n  backend/tests/            24 tests\n  docker-compose.yml        local Temporal server\n  .env.example, LICENSE (MIT)\n```\n\n| Requirement | How it is done | \n|---|---|\n| One job per destination | One `PublishDestinationWorkflow` per destination. One failure never touches another. | \n| User must approve first | Workflow waits for the `approve` signal (7 day timeout, then canceled). | \n| Schedule after confirmation | After approval, a durable timer waits until `scheduled_at` .`cancel` interrupts it. | \n| Retries with backoff | Activity `RetryPolicy` : 2s start, x2, max 2 min, 5 attempts. Rate limits use`next_retry_delay` . | \n| No duplicate posts | Idempotency key = hash(user, post, destination, content). Workflow ID is derived from it with `REJECT_DUPLICATE` . | \n\n**Open-weight AI (local inference).** The backend sends the post to a model running on your own machine through an Ollama-compatible server. The default is `qwen2.5:7b-instruct`, and you can switch to another instruct model such as `gemma3:4b` by changing one setting. The model returns JSON-schema-constrained output: a variant per destination with title, text, hashtags, link handling, an explanation and warnings.\n\nThe model only proposes text. Deterministic code checks everything it returns:\n\nThe post is sent as delimited untrusted data, so instructions hidden inside it are not followed. The AI module has no publishing credentials and no way to publish. If the server is down or the model isn't installed, you get the exact fix (for example `ollama pull qwen2.5:7b-instruct`). Malformed output is retried once, then fails with a clear message.\n\n**Reliable publishing with Temporal.** Each destination is its own durable workflow:\n\n`needs_review` instead of being retried automatically.\nThere's also a DEV.to adapter that creates **drafts** through the official API.\n\n**Stack:** Python, Temporal, httpx, Pydantic. 24 tests pass, with the workflow tests running against a local Temporal dev server.\n\n**Honest status**\n\nA tool that reads your unpublished work and writes in your voice shouldn't have to send that text to someone else's server. With an open-weight model on local inference, your drafts stay on your machine, you can swap models without rewriting the app, and there's no account or per-token bill. A closed API would have made the privacy story a promise instead of a design. Temporal being open source also means the publishing engine can be self-hosted and inspected, which matters for software that holds API keys and posts on your behalf.", "url": "https://wpnews.pro/news/too-lazy-to-post-too-obsessed-with-building-so-built-slothgram-one-dev-one-psot", "canonical_source": "https://dev.to/itsadityasingh/too-lazy-to-post-too-obsessed-with-building-so-built-slothgram-one-dev-one-psot-492a", "published_at": "2026-10-25 06:29:10+00:00", "updated_at": "2026-10-25 06:42:30.647503+00:00", "lang": "en", "topics": ["ai-tools", "large-language-models", "ai-agents", "developer-tools", "ai-infrastructure"], "entities": ["Slothgram", "Temporal", "Ollama", "qwen2.5:7b-instruct", "gemma3:4b", "DEV.to", "GitHub", "Hacktoberfest"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/too-lazy-to-post-too-obsessed-with-building-so-built-slothgram-one-dev-one-psot", "markdown": "https://wpnews.pro/news/too-lazy-to-post-too-obsessed-with-building-so-built-slothgram-one-dev-one-psot.md", "text": "https://wpnews.pro/news/too-lazy-to-post-too-obsessed-with-building-so-built-slothgram-one-dev-one-psot.txt", "jsonld": "https://wpnews.pro/news/too-lazy-to-post-too-obsessed-with-building-so-built-slothgram-one-dev-one-psot.jsonld"}}