<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/i-was-tired-of-building-474-separate-pages-for-open-graph-images-zachleat-com-ak89ywlg1" -->

---
title: I was tired of building 474 separate pages for Open...
description: Zach Leatherman describes switching from generating 474 separate static Open Graph image pages (one per blog post) to a single client-rendered /opengraph/ page...
canonical: https://daily.dev/posts/i-was-tired-of-building-474-separate-pages-for-open-graph-images-zachleat-com-ak89ywlg1
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: I was tired of building 474 separate pages for Open Graph Images—zachleat.com | daily.dev
og:description: Zach Leatherman describes switching from generating 474 separate static Open Graph image pages (one per blog post) to a single client-rendered /opengraph/ page...
og:url: https://daily.dev/posts/i-was-tired-of-building-474-separate-pages-for-open-graph-images-zachleat-com-ak89ywlg1
og:image: https://api.daily.dev/og/posts/ak89YWLG1.png
og:image:alt: I was tired of building 474 separate pages for Open Graph Images—zachleat.com
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# I was tired of building 474 separate pages for Open Graph Images—zachleat.com

**[Zach Leatherman](https://daily.dev/sources/zachleat)** · 2 min read · 0 upvotes · 0 comments

## Summary

Zach Leatherman describes switching from generating 474 separate static Open Graph image pages (one per blog post) to a single client-rendered /opengraph/ page that reads metadata from the local page URL. The page is screenshotted by a Chromium-based service to produce the final static image, trading server-side purity for simpler build times. He's rolled this pattern out on zachleat.com, build.awesome.me, and speedlify.dev, and deliberately avoids exposing URL parameters that would let visitors control the image text.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.zachleat.com/web/open-graph-easy-build>

## Questions this post answers

### How can I generate Open Graph images without building a separate static page for every blog post?

Use a single page that client-renders the appropriate metadata based on the current URL, then capture it with a Chromium-based screenshot service to produce a static image. This avoids server-rendering hundreds of individual pages, since the client-rendered page is only consumed by the screenshot tool rather than by human visitors, trading build purity for simpler build times.

_Developers refining their own Open Graph pipeline can find similar build-simplification approaches on daily.dev._

## Similar posts on daily.dev

- [How I made this Astro site build faster and cut its deploy size](https://daily.dev/posts/how-i-made-this-astro-site-build-faster-and-cut-its-deploy-size-x7vte3lsv) · Flavio Copes · 1 upvotes · 1 comments
- [“AI, make the website good”—zachleat.com](https://daily.dev/posts/ai-make-the-website-good-zachleat-com-dgi98x6ha) · Zach Leatherman · 0 upvotes · 0 comments
- [Pardon my dust 2 – redesigning christianheilmann.com](https://daily.dev/posts/pardon-my-dust-2-redesigning-christianheilmann-com-zfit0rhwh) · Christian Heilmann · 1 upvotes · 1 comments
- [Four things that made my Eleventy website faster without removing the fun](https://daily.dev/posts/four-things-that-made-my-eleventy-website-faster-without-removing-the-fun-5pnqlr22o) · Blogging and all that Malarkey · 2 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#performance](https://daily.dev/tags/performance)

[View this post on daily.dev](https://daily.dev/posts/i-was-tired-of-building-474-separate-pages-for-open-graph-images-zachleat-com-ak89ywlg1)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"I was tired of building 474 separate pages for Open Graph Images—zachleat.com","url":"https://daily.dev/posts/i-was-tired-of-building-474-separate-pages-for-open-graph-images-zachleat-com-ak89ywlg1","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/i-was-tired-of-building-474-separate-pages-for-open-graph-images-zachleat-com-ak89ywlg1"},"datePublished":"2026-09-09T14:57:15.927Z","dateModified":"2026-09-14T08:40:25.111Z","description":"Zach Leatherman describes switching from generating 474 separate static Open Graph image pages (one per blog post) to a single client-rendered /opengraph/ page...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/562d5b416a88fd1f70e3db46c1ffae6f?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/562d5b416a88fd1f70e3db46c1ffae6f?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Zach Leatherman","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Zach Leatherman","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/7ce10e5a06b74735aa2b19fa200414bf","url":"https://daily.dev/sources/zachleat"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/i-was-tired-of-building-474-separate-pages-for-open-graph-images-zachleat-com-ak89ywlg1","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"webdev,performance","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Zach Leatherman","item":"https://daily.dev/sources/zachleat"},{"@type":"ListItem","position":3,"name":"I was tired of building 474 separate pages for Open Graph Images—zachleat.com"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/i-was-tired-of-building-474-separate-pages-for-open-graph-images-zachleat-com-ak89ywlg1#faq","mainEntity":[{"@type":"Question","name":"How can I generate Open Graph images without building a separate static page for every blog post?","acceptedAnswer":{"@type":"Answer","text":"Use a single page that client-renders the appropriate metadata based on the current URL, then capture it with a Chromium-based screenshot service to produce a static image. This avoids server-rendering hundreds of individual pages, since the client-rendered page is only consumed by the screenshot tool rather than by human visitors, trading build purity for simpler build times. Developers refining their own Open Graph pipeline can find similar build-simplification approaches on daily.dev."}}]}
```

