{"id":19031115,"url":"https://github.com/alexito4/itemposterpublishplugin","last_synced_at":"2026-04-16T04:02:09.693Z","repository":{"id":147635103,"uuid":"334071916","full_name":"alexito4/ItemPosterPublishPlugin","owner":"alexito4","description":"Publish plugin to generate images from your posts. Ideal for Twitter Cards.","archived":false,"fork":false,"pushed_at":"2022-12-14T12:30:41.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-21T20:23:38.147Z","etag":null,"topics":["macos","opengraph","publish-plugin","swiftui","twitter-cards"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexito4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-29T07:39:53.000Z","updated_at":"2022-12-14T12:26:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"bfab942b-3f32-46ab-94c6-283daadc10a6","html_url":"https://github.com/alexito4/ItemPosterPublishPlugin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/alexito4/ItemPosterPublishPlugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexito4%2FItemPosterPublishPlugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexito4%2FItemPosterPublishPlugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexito4%2FItemPosterPublishPlugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexito4%2FItemPosterPublishPlugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexito4","download_url":"https://codeload.github.com/alexito4/ItemPosterPublishPlugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexito4%2FItemPosterPublishPlugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31870516,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["macos","opengraph","publish-plugin","swiftui","twitter-cards"],"created_at":"2024-11-08T21:21:32.584Z","updated_at":"2026-04-16T04:02:09.671Z","avatar_url":"https://github.com/alexito4.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ItemPosterPublishPlugin\n\n\u003ca href=\"https://github.com/alexito4/ItemPosterPublishPlugin/actions?query=workflow%3ATest+branch%3Amaster\n\"\u003e\n    \u003cimg src=\"https://github.com/alexito4/ReadingTimePublishPlugin/workflows/Test/badge.svg?branch=master\" alt=\"Status\" /\u003e\n\u003c/a\u003e\n![Swift 5.3](https://img.shields.io/badge/Swift-5.3-orange.svg)\n\u003ca href=\"https://swift.org/package-manager\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/SwiftPM-compatible-brightgreen.svg?style=flat\" alt=\"Swift Package Manager\" /\u003e\n\u003c/a\u003e\n![Mac](https://img.shields.io/badge/platforms-mac-brightgreen.svg?style=flat)\n\u003ca href=\"https://github.com/JohnSundell/Publish\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Publish-Plugin-orange.svg?style=flat\" alt=\"Publish Plugin\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://twitter.com/alexito4\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/twitter-@alexito4-blue.svg?style=flat\" alt=\"Twitter: @alexito4\" /\u003e\n\u003c/a\u003e\n\nCreate social images for your posts to have nice Twitter Cards. This is a plugin for [Publish](https://github.com/JohnSundell/Publish).\n\n\u003e ⚠️ Note that the poster generation must run on `MainActor` but `Publish 0.9.0` doesn't support concurrency properly\n\u003e and it cause a deadlock.\n\u003e You will need a workaround (like this [commit](https://github.com/alexito4/Publish/commit/d76f9a0492af0038e06c01b6bf584df9b4514736)) and make your command\n\u003e line tool be async.\n\n## Installation\n\nAdd the package to your SPM dependencies.\n\n```swift\n.package(name: \"ItemPosterPublishPlugin\", url: \"https://github.com/alexito4/ItemPosterPublishPlugin\", from: \"0.0.1\"),\n\n```\n\n## Usage\n\nThe plugin can then be used within any publishing pipeline like this:\n\n```swift\nimport PublishReadingTime\n...\ntry DeliciousRecipes().publish(using: [\n    ...\n    .addMarkdownFiles(),\n    .installPlugin(\n        .itemPosterPublishPlugin(\n            viewForItem: { item in\n                Poster(title: item.title)\n            },\n            size: CGSize(width: 1600, height: 840)\n        )\n    )\n    ...\n])\n```\nNote that it must be installed after the Items are created (in this case by `addMarkdownFiles()` ).\n\n# Author\n\nAlejandro Martinez | http://alejandromp.com | [@alexito4](https://twitter.com/alexito4)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexito4%2Fitemposterpublishplugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexito4%2Fitemposterpublishplugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexito4%2Fitemposterpublishplugin/lists"}