Field notes
Decision-stage notes for operators and senior engineers — migration timelines, stack comparisons, integration patterns, and what we ship in production.
Medusa · Payload · Next.js · Postgres · Stripe · Claude — written for the buyer and the engineer in the same room.
Archive
18Streaming 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.
19 Jun 2026 · AI Engineering
Support 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.
13 Jun 2026 · AI Engineering
Customer-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.
10 Jun 2026 · AI Engineering
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.
07 Jun 2026 · AI Automation
Most 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.
01 Jun 2026 · AI Automation
Bolting 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.
30 May 2026 · AI Automation
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.
26 May 2026 · AI Automation
The 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.
22 May 2026 · Production Hardening
Every 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.
19 May 2026 · Integration Patterns
When 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.
16 May 2026 · Medusa Engineering
The specific Payload hook patterns we implement on every project to prevent stale draft caches, orphaned relationships, and broken webhook deliveries before they reach production.
14 May 2026 · Payload Engineering
Why 100 concurrent Vercel functions kill your database, and the production patterns that scale to 10K connections without breaking your budget.
12 May 2026 · Postgres Patterns
How 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.
12 May 2026 · Integration Patterns
When 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.
12 May 2026 · Payload Engineering
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.
12 May 2026 · Vendor Choice
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%.
12 May 2026 · AI Rollout
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.
12 May 2026 · Vendor Choice
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.
12 May 2026 · Replatform