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.

Maintainers

Package info

github.com/Pushword/repurpose

Homepage

Type:symfony-bundle

pkg:composer/pushword/repurpose

Transparency log

Statistics

Installs: 22

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0-rc756 2026-07-21 12:37 UTC

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:sync as 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.