HandlebarsImage
Review card, 1080×1080
A square card for Instagram and LinkedIn from one customer review: range and lt draw the rating as five stars, truncate keeps a long quote inside the square, and the date of the review is written out as month and year.
Free plan, no card. You get your own copy in the editor, published and ready for the API.
Change a value, watch the document follow
This is Formfeed’s template engine, running in your browser. Nothing you type is sent or saved.
Loading the engine …

The image as the engine writes it. The API takes a picture of it at this size, as PNG, JPEG or WebP. Shown here on one sheet. The PDF breaks it into pages.
You get your own copy in the editor, with the example’s data. What you changed here stays on this page.
Rendered result
What this example shows
settings.imagefixes the square:1080×1080pixels at a device scale factor of1, which Instagram and LinkedIn show without cropping.{{#each (range 0 5)}}draws five stars and(lt this ../review.rating)colours as many as the rating: four amber stars and one grey.{{truncate review.quote 240}}cuts a quote that would not fit after 240 characters and ends it with an ellipsis.- The large quotation mark is CSS,
blockquote::before, so the data carries the plain text of the review.
Helpers used
Template folder
<main class="card">
<header>
<p class="brand">{{brand.name}}</p>
<p class="stars" aria-label="{{review.rating}} out of 5">{{#each (range 0 5)}}<span class="{{#if (lt this ../review.rating)}}on{{/if}}">★</span>{{/each}}</p>
</header>
<blockquote>{{truncate review.quote 240}}</blockquote>
<footer>
<p class="author">{{review.author}}</p>
<p class="muted">{{review.role}}, {{review.company}}</p>
<p class="muted">{{review.source}} · {{date review.date "MMMM yyyy"}}</p>
</footer>
</main>body { margin: 0; }
.card {
box-sizing: border-box;
display: flex;
flex-direction: column;
width: 1080px;
height: 1080px;
padding: 96px;
background: #f5efe6;
font-family: 'Inter', sans-serif;
color: #1c1917;
}
header { display: flex; justify-content: space-between; align-items: center; }
.brand { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #92400e; }
.stars { margin: 0; font-size: 52px; letter-spacing: 6px; color: #d6d3d1; }
.stars .on { color: #d97706; }
blockquote { margin: auto 0; font-family: 'Playfair Display', serif; font-size: 60px; font-weight: 600; line-height: 1.22; }
blockquote::before { content: '“'; display: block; height: 70px; font-size: 150px; line-height: 1; color: #d97706; }
.author { margin: 0; font-size: 36px; font-weight: 600; }
.muted { margin: 8px 0 0; font-size: 28px; color: #78716c; }<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Playfair+Display:wght@600&display=swap">{
"image": {
"width": 1080,
"height": 1080,
"deviceScaleFactor": 1,
"format": "png"
},
"locale": "en-GB"
}{
"brand": {
"name": "Fennlor Studio"
},
"review": {
"quote": "We fitted out two floors of our office with Fennlor desk lamps. Delivery took two days, and the one shade that arrived dented was replaced before we had finished the call.",
"author": "Jane Doe",
"role": "Office manager",
"company": "Olvarest Ltd",
"rating": 4,
"source": "Customer review",
"date": "2026-09-14"
}
}Render it through the API
Save the sample data as data.json and send it with the template’s name. Each language uses its SDK; curl sends the same JSON to the REST API, as any other language can. Renders with a key that starts with ff_test_ are not metered; on the Free plan they carry a small watermark.
jq '{template: "review-card", data: ., output: "png"}' data.json \
| curl https://api-eu.formfeed.dev/v1/renders \
-H "Authorization: Bearer ff_test_..." \
-H "Content-Type: application/json" \
--data-binary @-import { Formfeed } from '@formfeed/sdk';
import data from './data.json' with { type: 'json' };
const formfeed = new Formfeed({ apiKey: process.env.FORMFEED_API_KEY! });
const render = await formfeed.renders.create({
template: 'review-card',
data,
output: 'png',
});
console.log(render.status, render.download_url);import json
import os
from formfeed import Formfeed
formfeed = Formfeed(api_key=os.environ["FORMFEED_API_KEY"])
with open("data.json", encoding="utf-8") as file:
data = json.load(file)
render = formfeed.renders.create(
template="review-card",
data=data,
output="png",
)
print(render.status, render.download_url)<?php
require __DIR__ . '/vendor/autoload.php';
$formfeed = new Formfeed\Client(apiKey: getenv('FORMFEED_API_KEY'));
$render = $formfeed->renders->create([
'template' => 'review-card',
'data' => json_decode(file_get_contents('data.json'), true),
'output' => 'png',
]);
echo $render->status, ' ', $render->downloadUrl, PHP_EOL;package main
import (
"context"
"encoding/json"
"fmt"
"log"
"os"
formfeed "github.com/formfeed-dev/formfeed-go"
)
func main() {
client := formfeed.NewClient(os.Getenv("FORMFEED_API_KEY"))
contents, err := os.ReadFile("data.json")
if err != nil {
log.Fatal(err)
}
var data map[string]any
if err := json.Unmarshal(contents, &data); err != nil {
log.Fatal(err)
}
render, err := client.Renders.Create(context.Background(), formfeed.RenderRequest{
Template: "review-card",
Data: data,
Output: "png",
})
if err != nil {
log.Fatal(err)
}
fmt.Println(render.Status, render.DownloadURL)
}using System.Text.Json;
using Formfeed;
using var formfeed = new FormfeedClient(Environment.GetEnvironmentVariable("FORMFEED_API_KEY"));
var render = await formfeed.Renders.CreateAsync(new RenderRequest
{
Template = "review-card",
Data = JsonSerializer.Deserialize<Dictionary<string, object?>>(File.ReadAllText("data.json")),
Output = "png",
});
Console.WriteLine($"{render.Status} {render.DownloadUrl}");import com.fasterxml.jackson.databind.ObjectMapper;
import dev.formfeed.Formfeed;
import dev.formfeed.RenderRequest;
import java.io.File;
public class Render {
public static void main(String[] args) throws Exception {
var formfeed = Formfeed.builder().apiKey(System.getenv("FORMFEED_API_KEY")).build();
var data = new ObjectMapper().readTree(new File("data.json"));
var request = RenderRequest.template("review-card")
.data(data)
.output("png");
var render = formfeed.renders().create(request);
System.out.println(render.getStatus() + " " + render.getDownloadUrl());
}
}require "json"
require "formfeed"
formfeed = Formfeed::Client.new(api_key: ENV.fetch("FORMFEED_API_KEY"))
render = formfeed.renders.create(
template: "review-card",
data: JSON.parse(File.read("data.json")),
output: "png"
)
puts "#{render.status} #{render.download_url}"Start rendering today
The free plan includes 100 units a month and free test renders. Change plans when you need more.