pushword / repurpose
Repurpose a Pushword page into ready-to-post social carousels: an agent-authored JSON spec rendered to self-contained SVG slides, with server-side text layout, focal-point cropping and PNG/PDF export.
Package info
Type:symfony-bundle
pkg:composer/pushword/repurpose
1.0.0-rc756
2026-07-21 12:37 UTC
Requires
- php: >=8.4
- ext-gd: *
- ext-zip: *
- pushword/core: *
Suggests
- pushword/api: Expose the carousel spec over the token-authenticated REST API for AI agents.
- pushword/flat: Round-trip carousels as flat JSON files through pw:flat:sync.
This package is auto-updated.
Last update: 2026-07-21 14:00:58 UTC
README
Turn a Pushword page into ready-to-post social carousels (LinkedIn, Instagram, Facebook, Pinterest, …).
- Agent-authored JSON spec — a carousel is a small JSON document (slides, text, focal-point crop, palette, font pairing, background effect, status). An AI agent writes it against a published JSON Schema; a human nudges it in the admin.
- Self-contained SVG slides — each slide renders server-side to one portable
SVG with its font and image embedded as
data:URIs. Text is laid out in PHP, so overflow and bad crops become validation errors before anything is rendered. - Pixel-exact export — the browser rasterises the SVG to PNG; PHP assembles a
.zip(PNGs + caption) and, for LinkedIn, a multipage PDF. No headless browser, no npm dependency. - Flat or DB — carousels round-trip through
pw:flat:syncas JSON files, so they live in git on a flat-file site and in the database on a dynamic one.
Installation
composer require pushword/repurpose
Status
Work in progress. See the plan.