Field notes · 25 published · written for the buyer and the engineer in the same room
Insights
Decision-stage notes on migrations, costs, stack choices and what we actually ship in production. Real numbers, real trade-offs — no vendor pitch.
All 25Postgres Patterns 2AI Automation 8Payload Engineering 3Production Hardening 2AI Engineering 3Integration Patterns 2Medusa Engineering 1Vendor Choice 2AI Rollout 1Replatform 1
24 notes · by Kresimir Galic
02The Payload Moderation Layer: Wiring Claude Between Draft and Publish for UGC-Heavy PlatformsCommunity platforms drown editors in queues or ship unmoderated garbage. Here is the three-lane Payload moderation pattern we ship — auto-approve, auto-reject, human-review — with Claude as the triage layer between draft and publish.AI Automation
16 Jul 2026 · 7 min03Claude API Cost on Payload CMS: The Four Levers We Pull Before the Bill Hits €500/MonthMost AI features on Payload do not fail on quality — they fail on a bill that quietly triples in month three. Here is the token budget we set before writing a single hook, and the four levers we pull to hold it.AI Automation
13 Jul 2026 · 8 min04Payload's Generated Types Are the Contract: The Zod + Server Action Pattern We Ship Instead of DTOsPayload generates the types. Zod derives from them. Server Actions accept the same shape the Local API returns. Here is the pattern, the four failure modes it removes, and the one place we still validate by hand.Payload Engineering
04 Jul 2026 · 8 min05AI Feature Observability on Payload and Medusa: The Four Signals We Wire on Day OneEvery Claude feature we ship on Payload or Medusa gets four signals wired before it sees production traffic. Skip any of them and the regression will be silent — and expensive.Production Hardening
01 Jul 2026 · 9 min06Alt Text on Autopilot: The Payload + Claude Vision Pipeline We Ship for 10,000-Image ArchivesAlt text is the AI workflow with the highest ROI and the lowest glamour. Here is the exact Payload upload-hook, queue, and Claude Vision pipeline we ship — including the locales we still refuse to automate.AI Automation
28 Jun 2026 · 8 min07Claude vs Gemini vs GPT-4o-mini for Catalog and Editorial AI: The €/1k-SKU Cost Framework We UseOperators keep asking which model to wire into their Payload or Medusa pipeline. The honest answer: the model name moves the bill less than batching, caching, and structured outputs do. Here is the framework we use on real client work, with line-item numbers.AI Automation
22 Jun 2026 · 9 min08Streaming Claude from Server Actions into Payload: The Resume-on-Refresh Pattern We ShipStreaming Claude from a Next.js Server Action looks fine on localhost and falls apart the first week in production. Here is the shape we ship instead: kick off the job, stream into Postgres via Payload, let the client subscribe to the row.AI Engineering
19 Jun 2026 · 8 min09RAG Support Copilots on Medusa: The Retrieval Shape We Ship Before Claude Sees an OrderSupport copilots do not hallucinate refunds because the model is weak. They hallucinate because retrieval is shaped wrong. Here is the three-call retrieval pattern we wire on Medusa + Payload before Claude generates a token.AI Engineering
13 Jun 2026 · 9 min10Prompt Injection on Commerce Copilots: Five Guardrails We Wire Before Claude Touches a Medusa OrderCustomer-facing copilots on Medusa and Payload fail in five predictable ways once a stranger can type into them. Here are the guardrails we ship before any tool call mutates an order or publishes a draft.AI Engineering
10 Jun 2026 · 8 min11AI Translation in Payload: The Publish-Hook Pattern We Ship (and the Locale We Refuse to Automate)Most Payload teams wire Claude into localized fields, ship a flood of machine-translated content, then quietly roll it back. Here is the narrower hook shape we ship instead — locked drafts, editor sign-off, token math, and the one locale we never let a model touch.AI Automation
07 Jun 2026 · 9 min12Internal Linking on Autopilot: The Payload + Claude Pipeline We Wire for Archives Past 400 ArticlesMost editorial teams stop linking internally after article 50. Here is the Payload afterChange hook, pgvector retrieval, and Claude scorer we wire so suggestions land in the editor — never auto-published — with one-click insert into Lexical.AI Automation
01 Jun 2026 · 9 min13Catalog Enrichment on Medusa with Claude: The Import-Time Pipeline We Ship for 2,000+ SKU BrandsBolting AI onto live product pages burns trust by week three. Here is the import-time enrichment pipeline we wire into Medusa with Claude, structured outputs, and a Payload approval queue — including token cost per 1,000 SKUs and the regressions it prevents.AI Automation
30 May 2026 · 8 min14Four AI Workflows We Wire Into Payload for Editorial Teams (and the One We Refuse to Ship)Content teams keep asking us to 'add AI to the CMS.' That framing buys nothing. Here are the four Payload automations that actually move editorial velocity — and the one we refuse to ship, with the wiring shape and token math for a team publishing 40 articles a month.AI Automation
26 May 2026 · 7 min15GDPR + Payload: The Field-Level Pattern That Passes a Data Protection AuditThe field-level encryption, automated deletion hooks, and audit trail patterns that make Payload CMS applications survive a data protection officer's review — with the specific schema choices that turn right-to-be-forgotten requests into one-line operations.Production Hardening
22 May 2026 · 5 min16Stripe Webhook → Postgres Ledger: The 50-Line Pattern That Survives an AuditEvery Series B audit asks the same question about your payment data: can you prove this transaction happened, when it happened, and that you recorded it exactly once? Here's the webhook-to-ledger pattern that passes.Integration Patterns
19 May 2026 · 6 min17Custom Shipping Rules in Medusa: The Multi-Carrier Pattern That Scales Past Flat-RateWhen D2C brands outgrow flat-rate shipping, they need inventory-aware location routing, weight-based carrier selection, and real-time rate shopping. Here's the Medusa shipping service pattern that handles complex fulfillment rules without losing sales to API timeouts.Medusa Engineering
16 May 2026 · 5 min18Payload Hooks That Prevent Production Fires: The 8 We Ship on Every ProjectThe specific Payload hook patterns we implement on every project to prevent stale draft caches, orphaned relationships, and broken webhook deliveries before they reach production.Payload Engineering
14 May 2026 · 5 min19Postgres Connection Pooling on Serverless: The PgBouncer vs Supabase vs Neon Reality CheckWhy 100 concurrent Vercel functions kill your database, and the production patterns that scale to 10K connections without breaking your budget.Postgres Patterns
12 May 2026 · 7 min20Next.js Server Actions + Payload Local API: The 200-Line Pattern That Replaces tRPCHow to wire Next.js Server Actions directly to Payload's Local API for type-safe mutations, eliminating the need for tRPC or external API routes in content-heavy applications.Integration Patterns
12 May 2026 · 8 min21Payload Blocks vs Collections: The Content Architecture Decision That Breaks at 1,000 ArticlesWhen to model content as reusable blocks vs separate collections in Payload CMS — with real schema examples and performance implications for content teams publishing at scale.Payload Engineering
12 May 2026 · 6 min22Stripe vs Adyen vs Mollie for EU D2C: The €500k Revenue Breakpoint (and Hidden Costs)Payment processor economics shift dramatically at €500k annual volume in Europe. Stripe's simplicity costs 0.3-0.8% more than Adyen, but Adyen's complexity tax hits smaller teams hard. Real-world fees, integration weeks, and revenue thresholds where switching pays back.Vendor Choice
12 May 2026 · 4 min23AI Search on Medusa: When It Beats Algolia (and the $4k/Month Reality Check)Our token economics breakdown for AI-powered search on Medusa JS: when semantic search justifies $4k/month in OpenAI costs vs $400/month Algolia, and the hybrid approach that cuts spend 60% while improving long-tail conversion 23%.AI Rollout
12 May 2026 · 3 min24Payload vs Sanity for Content Teams: Why We Switched (and the 3-Month Cost Breakdown)Content teams publishing 20+ articles monthly hit workflow friction with Sanity Studio that Payload's admin eliminates. Here's what the switch costs and when it pays back.Vendor Choice
12 May 2026 · 5 min25Shopify Plus to Medusa: What a 6-Week Migration Actually Costs (and When It Pays Back)Break down the real financial math behind migrating a high-SKU D2C brand from Shopify Plus to Medusa — migration costs, ongoing savings, revenue impact, and the 18-month payback timeline most CFOs need to see.Replatform
12 May 2026 · 6 min
16 Jul 2026 · 7 min03Claude API Cost on Payload CMS: The Four Levers We Pull Before the Bill Hits €500/MonthMost AI features on Payload do not fail on quality — they fail on a bill that quietly triples in month three. Here is the token budget we set before writing a single hook, and the four levers we pull to hold it.AI Automation
13 Jul 2026 · 8 min04Payload's Generated Types Are the Contract: The Zod + Server Action Pattern We Ship Instead of DTOsPayload generates the types. Zod derives from them. Server Actions accept the same shape the Local API returns. Here is the pattern, the four failure modes it removes, and the one place we still validate by hand.Payload Engineering
04 Jul 2026 · 8 min05AI Feature Observability on Payload and Medusa: The Four Signals We Wire on Day OneEvery Claude feature we ship on Payload or Medusa gets four signals wired before it sees production traffic. Skip any of them and the regression will be silent — and expensive.Production Hardening
01 Jul 2026 · 9 min06Alt Text on Autopilot: The Payload + Claude Vision Pipeline We Ship for 10,000-Image ArchivesAlt text is the AI workflow with the highest ROI and the lowest glamour. Here is the exact Payload upload-hook, queue, and Claude Vision pipeline we ship — including the locales we still refuse to automate.AI Automation
28 Jun 2026 · 8 min07Claude vs Gemini vs GPT-4o-mini for Catalog and Editorial AI: The €/1k-SKU Cost Framework We UseOperators keep asking which model to wire into their Payload or Medusa pipeline. The honest answer: the model name moves the bill less than batching, caching, and structured outputs do. Here is the framework we use on real client work, with line-item numbers.AI Automation
22 Jun 2026 · 9 min08Streaming Claude from Server Actions into Payload: The Resume-on-Refresh Pattern We ShipStreaming Claude from a Next.js Server Action looks fine on localhost and falls apart the first week in production. Here is the shape we ship instead: kick off the job, stream into Postgres via Payload, let the client subscribe to the row.AI Engineering
19 Jun 2026 · 8 min09RAG Support Copilots on Medusa: The Retrieval Shape We Ship Before Claude Sees an OrderSupport copilots do not hallucinate refunds because the model is weak. They hallucinate because retrieval is shaped wrong. Here is the three-call retrieval pattern we wire on Medusa + Payload before Claude generates a token.AI Engineering
13 Jun 2026 · 9 min10Prompt Injection on Commerce Copilots: Five Guardrails We Wire Before Claude Touches a Medusa OrderCustomer-facing copilots on Medusa and Payload fail in five predictable ways once a stranger can type into them. Here are the guardrails we ship before any tool call mutates an order or publishes a draft.AI Engineering
10 Jun 2026 · 8 min11AI Translation in Payload: The Publish-Hook Pattern We Ship (and the Locale We Refuse to Automate)Most Payload teams wire Claude into localized fields, ship a flood of machine-translated content, then quietly roll it back. Here is the narrower hook shape we ship instead — locked drafts, editor sign-off, token math, and the one locale we never let a model touch.AI Automation
07 Jun 2026 · 9 min12Internal Linking on Autopilot: The Payload + Claude Pipeline We Wire for Archives Past 400 ArticlesMost editorial teams stop linking internally after article 50. Here is the Payload afterChange hook, pgvector retrieval, and Claude scorer we wire so suggestions land in the editor — never auto-published — with one-click insert into Lexical.AI Automation
01 Jun 2026 · 9 min13Catalog Enrichment on Medusa with Claude: The Import-Time Pipeline We Ship for 2,000+ SKU BrandsBolting AI onto live product pages burns trust by week three. Here is the import-time enrichment pipeline we wire into Medusa with Claude, structured outputs, and a Payload approval queue — including token cost per 1,000 SKUs and the regressions it prevents.AI Automation
30 May 2026 · 8 min14Four AI Workflows We Wire Into Payload for Editorial Teams (and the One We Refuse to Ship)Content teams keep asking us to 'add AI to the CMS.' That framing buys nothing. Here are the four Payload automations that actually move editorial velocity — and the one we refuse to ship, with the wiring shape and token math for a team publishing 40 articles a month.AI Automation
26 May 2026 · 7 min15GDPR + Payload: The Field-Level Pattern That Passes a Data Protection AuditThe field-level encryption, automated deletion hooks, and audit trail patterns that make Payload CMS applications survive a data protection officer's review — with the specific schema choices that turn right-to-be-forgotten requests into one-line operations.Production Hardening
22 May 2026 · 5 min16Stripe Webhook → Postgres Ledger: The 50-Line Pattern That Survives an AuditEvery Series B audit asks the same question about your payment data: can you prove this transaction happened, when it happened, and that you recorded it exactly once? Here's the webhook-to-ledger pattern that passes.Integration Patterns
19 May 2026 · 6 min17Custom Shipping Rules in Medusa: The Multi-Carrier Pattern That Scales Past Flat-RateWhen D2C brands outgrow flat-rate shipping, they need inventory-aware location routing, weight-based carrier selection, and real-time rate shopping. Here's the Medusa shipping service pattern that handles complex fulfillment rules without losing sales to API timeouts.Medusa Engineering
16 May 2026 · 5 min18Payload Hooks That Prevent Production Fires: The 8 We Ship on Every ProjectThe specific Payload hook patterns we implement on every project to prevent stale draft caches, orphaned relationships, and broken webhook deliveries before they reach production.Payload Engineering
14 May 2026 · 5 min19Postgres Connection Pooling on Serverless: The PgBouncer vs Supabase vs Neon Reality CheckWhy 100 concurrent Vercel functions kill your database, and the production patterns that scale to 10K connections without breaking your budget.Postgres Patterns
12 May 2026 · 7 min20Next.js Server Actions + Payload Local API: The 200-Line Pattern That Replaces tRPCHow to wire Next.js Server Actions directly to Payload's Local API for type-safe mutations, eliminating the need for tRPC or external API routes in content-heavy applications.Integration Patterns
12 May 2026 · 8 min21Payload Blocks vs Collections: The Content Architecture Decision That Breaks at 1,000 ArticlesWhen to model content as reusable blocks vs separate collections in Payload CMS — with real schema examples and performance implications for content teams publishing at scale.Payload Engineering
12 May 2026 · 6 min22Stripe vs Adyen vs Mollie for EU D2C: The €500k Revenue Breakpoint (and Hidden Costs)Payment processor economics shift dramatically at €500k annual volume in Europe. Stripe's simplicity costs 0.3-0.8% more than Adyen, but Adyen's complexity tax hits smaller teams hard. Real-world fees, integration weeks, and revenue thresholds where switching pays back.Vendor Choice
12 May 2026 · 4 min23AI Search on Medusa: When It Beats Algolia (and the $4k/Month Reality Check)Our token economics breakdown for AI-powered search on Medusa JS: when semantic search justifies $4k/month in OpenAI costs vs $400/month Algolia, and the hybrid approach that cuts spend 60% while improving long-tail conversion 23%.AI Rollout
12 May 2026 · 3 min24Payload vs Sanity for Content Teams: Why We Switched (and the 3-Month Cost Breakdown)Content teams publishing 20+ articles monthly hit workflow friction with Sanity Studio that Payload's admin eliminates. Here's what the switch costs and when it pays back.Vendor Choice
12 May 2026 · 5 min25Shopify Plus to Medusa: What a 6-Week Migration Actually Costs (and When It Pays Back)Break down the real financial math behind migrating a high-SKU D2C brand from Shopify Plus to Medusa — migration costs, ongoing savings, revenue impact, and the 18-month payback timeline most CFOs need to see.Replatform
12 May 2026 · 6 min
One field note a week. Buyer-readable.
Migrations, costs and trade-offs from real client work. Unsubscribe in one click.
Work email
SubscribeStart here
Tell us what's broken.
© 2026 Front TribeSmall enough for craft · Serious enough for production