Menu

One spec, every size: SpecCard renders social cards from templates kept in code
📰

One spec, every size: SpecCard renders social cards from templates kept in code

DEV Community: fastapi·DSP·5 days ago
#KP8sG2AZ
#devtofastapi#devto#dev#template#spec
Reading 0:00
15s threshold

Every post on a blog needs the same small set of images: the OG card for link previews, a square for social feeds, a story format for the vertical surfaces. The usual ways to make them are a design tool and a folder of exports that drift out of date, or an editor-based service where the template lives in someone else's dashboard and the rendering is metered per image, per format, and per scale.

SpecCard is the API we built for the pipeline-shaped version of that job. The templates are named, versioned code. The request is a JSON spec: template name, text fields, palette or color overrides.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.