Untitled card

Design your social cards once, then render any of them from a URL.

1200 × 630

Cardboard is a blank board for Open Graph and Twitter images. Design a card once, then let every blog post, docs page and launch render its own from a URL.

Try it, no account needed

Change the fields. The preview redraws as you type, and the API renders the same card from its URL.

Demo card1200 × 630
Canvas preview, as you type
The same card rendered by the Cardboard API
Rendered by the API

GET /api/card/cardboard-demo?author=Cardboard&date=Render%20any%20of%20them%20from%20a%20URL&title=Design%20your%20social%20cards%20once&s=gWM1Fs…

Design once.
Render forever.

A card is a template with a few fields. Each page fills them in through its URL, and the image is ready before anyone shares the link.

  1. 01

    Design it once

    Lay out text, shapes, gradients and images on a canvas, or start from a template.

  2. 02

    Mark what changes

    Turn on “Changes per card” for the title, author or image that differs from page to page.

  3. 03

    Render from a URL

    Every page gets its own signed link. Social sites fetch the PNG straight from it.

One renderer, in the browser and on the server.

Editor

Design on a real canvas. Move, resize and snap layers, type straight onto the card, undo anything. What you see is the exact pixels the API returns.

Signed URLs

Nobody else writes on your card. Every link carries an HMAC signature made with your own key. Change one character and it stops working.

Cache

Milliseconds, not seconds. Each image is drawn once, then served from memory or object storage. Saving a template refreshes every link.

cardboard-url
og-image.ts
import { buildCardUrl } from 'cardboard-url';

const image = buildCardUrl({
  baseUrl: process.env.CARDBOARD_API_URL,
  templateId: 'blog-post',
  secret: process.env.CARDBOARD_SIGNING_KEY,
  fields: { title: post.title },
});

You shouldn't need a design tool for every blog post.

Opening a file, duplicating last week's card, retyping the title, exporting a PNG and uploading it: every single time you publish.

Social images are part of the page. They should be generated like the rest of it.

So design the card once. Mark the parts that change. Let each page fill them in from its own URL, and let the server draw the exact card you designed.

That's Cardboard.

Read it. Run it. Render with it.

The editor, the render API and the URL package are all in one repository, with a learning log for every milestone.