---
title: "Designing with AI: Generating unique artwork for every user"
description: "Supabase's Launch Week 7 tickets combine Midjourney-generated artwork with a per-user Open Graph image pipeline built on the Supabase stack."
url: "https://swe.quest/articles/designing-with-ai-generating-unique-artwork-for-every-user-1fecb862c87a12d2"
canonical: "https://supabase.com/blog/designing-with-ai-midjourney"
source: "Supabase"
published: "2023-04-07"
difficulty: "medium"
kind: "Case study"
reading_minutes: 8
tags: ["postgres","serverless","realtime","caching"]
---

# Designing with AI: Generating unique artwork for every user

A post on [Supabase](https://swe.quest/sources/supabase.md), published 2023-04-07, 8 min read, Case study. Original: [https://supabase.com/blog/designing-with-ai-midjourney](https://supabase.com/blog/designing-with-ai-midjourney)

## Summary

Supabase's Launch Week 7 tickets combine Midjourney-generated artwork with a per-user Open Graph image pipeline built on the Supabase stack. The art direction moved from busy prompts to minimal purple swirls. Gold variants came from blending a gold gradient overlay with \`/blend\` after prompts like "make it gold" failed. A Supabase Edge Function renders each ticket with Satori and caches the PNG in Supabase Storage behind a CDN, generating it only once. The same function detects Twitter and LinkedIn crawler user agents to record shares. A Postgres view behind RLS exposes public ticket fields, referral counts and a computed \`golden\` flag, and Supabase Realtime pushes the gold status to the client as users share.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)
- [Real-time systems](https://swe.quest/tags/realtime.md) (Backend & APIs)
- [Caching](https://swe.quest/tags/caching.md) (Backend & APIs)

## Prerequisites

- SQL views ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- Postgres row-level security ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- JavaScript async code ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))

## Keywords

Supabase, Midjourney, Satori, Supabase Edge Functions, Supabase Realtime, Open Graph, Supabase Storage

## Related posts

- [AI Inference now available in Supabase Edge Functions](https://swe.quest/articles/ai-inference-now-available-in-supabase-edge-functions-9d09d3bcda534938.md): Supabase · 2024-04-16 · Medium · 5 min read · Serverless, Inference & serving, Vector search, LLMs
  Supabase Edge Functions gain a built-in Supabase.ai.Session API for running AI inference in a few lines of code, starting with gte-small embeddings for storage in pgvector and experimental, invite-only Llama and Mistral LLMs with streaming responses.
- [Edge Functions are now available in Supabase](https://swe.quest/articles/edge-functions-are-now-available-in-supabase-3c06235615e01037.md): Supabase · 2022-03-31 · Easy · 7 min read · Serverless, CDN & edge, TypeScript, System design
  Supabase Edge Functions run TypeScript globally on the Deno runtime via Deno Deploy across 30+ data centers.
- [Making a Real-Time Chat App with Supabase on Replit](https://swe.quest/articles/making-a-real-time-chat-app-with-supabase-on-replit-0a77c4de25e9cc9d.md): Replit · 2022-03-23 · Medium · 8 min read · Real-time systems, Frontend, JavaScript, PostgreSQL
  A real-time public chat app can be built with a Vue 3 and Tailwind CSS frontend on Replit backed by Supabase's hosted Postgres.
- [Building ChatGPT Apps with Supabase Edge Functions and mcp-use](https://swe.quest/articles/building-chatgpt-apps-with-supabase-edge-functions-and-mcp-use-0df00526c3d8cd4e.md): Supabase · 2025-12-17 · Medium · 9 min read · AI agents, Serverless, TypeScript, React
  ChatGPT apps built on OpenAI's Apps SDK consist of an MCP server backend and an iframe-rendered web component, and mcp-use lets that MCP server run on Supabase Edge Functions by using Hono instead of the Express-based official SDK.
- [Supabase Middleware: composable, reusable middleware for Web Fetch handlers](https://swe.quest/articles/supabase-middleware-composable-reusable-middleware-for-web-fetch-handlers-136b7931628c402b.md): Supabase · 2026-10-15 · Medium · 8 min read · TypeScript, Serverless, Identity & auth, API design, AI agents
  \`@supabase/middleware\` is an MIT-licensed, type-safe middleware engine for Web Fetch handlers.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
