AI coding guides & resources
Engineering decisions, tutorials, and video guides from the OTF team.

Add consented voice cloning to a TypeScript app with Sarvam AI
Add consented Sarvam voice cloning to TypeScript: create a saved voice and choose one-shot or streaming audio.
8 min read
Deploy a Hono backend on AWS Lambda without an adapter layer
AWS Lambda Web Functions can run Hono without an adapter. Check startup, concurrency, endpoint auth, regions, and total cost before moving a SaaS API.
8 min read
Cloudflare web search and bounded fetch for SaaS agent research workflows
Add web research to a SaaS agent with selected sources, bounded fetches, clear provenance, and safe request limits.
8 min read
GitHub push protection for Anthropic keys: check repo coverage
Check whether GitHub blocks Anthropic API keys in the repositories your AI coding agents can push to, and close private-repo coverage gaps.
6 min read
Supabase pg-delta migration guide: adopt declarative schemas safely
Move an existing Supabase project to pg-delta with a baseline, reviewed SQL, strict coverage checks, and a staged rollout.
6 min read
Customer support automation: task-specific routing for human review
Route support messages to the right person with task-specific labels, probability scores, and a human-review fallback.
8 min read
Cloudflare browser rendering for SaaS without a browser fleet
Add screenshots and PDFs with Cloudflare Browser Run, while keeping browser costs, customer data, and application controls in your SaaS.
7 min read
How to resume a signed-in browser task safely across agent turns
Design resumable browser tasks with Cloudflare Agents SDK, persist progress in your app, and recover safely when Browser Run restarts.
7 min read
Clerk M2M Tokens Are GA: How to Budget and Scope Service Credentials
A practical migration plan for Clerk M2M GA: separate machine identities, set token lifetimes, and estimate usage before billing starts.
7 min read
How to add script-directed dialogue with a multi-speaker text-to-speech API
Test whether one script can produce distinct, directed voices before adding multi-speaker text-to-speech to your app. Drama 3 is in preview.
8 min read
Should Gemini 4 Argon stay in your SaaS after November 30, 2026?
Compare one real Gemini 4 Argon task at its introductory token rates and the standard rates after November 30.
8 min read
How to choose a Cloudflare Queues jurisdiction before production
Set a Cloudflare Queues jurisdiction at creation, understand its scope, and plan a safe migration.
6 min read
Add an image generation API without using your final model for every draft
Use Flash for prompt iterations and Image 2.6 for reviewed finals. Measure the full workflow before choosing a default.
8 min read
Prisma 8 Postgres connection pools: replace connection_limit with pg.Pool
Prisma ORM 8 changes how PostgreSQL connections are capped. Learn when poolOptions is enough, when to supply pg.Pool, and how to budget replicas.
7 min read
Route Cloudflare Worker issue alerts to an agent without polling
Cloudflare can send Workers Issues as signed MCP Events. Route those alerts to a webhook, then fetch only the bounded evidence your agent needs.
7 min read
Let SaaS users hide table columns and keep their preferred layout
Give users control over dense tables with TanStack Table column visibility, then persist a safe, versioned preference per user.
6 min read
How to recover Cloudflare Worker streams and WebSockets after runtime updates
Use durable session events, acknowledged cursors, and safe retries to resume agent streams when a Cloudflare Workers runtime update interrupts a connection.
6 min read
Name Cloudflare Cron Triggers in Sentry
Give Cloudflare Cron Triggers clear Sentry monitor names. Map each schedule to its job, keep dispatch aligned, and scope billed checks.
7 min read
Test malformed AI tool calls before they break a production agent
Use controlled model faults to test invalid tool arguments, safe execution, bounded retries, and recoverable agent history.
7 min read
Add bulk actions to a SaaS dashboard table without acting on the wrong rows
Use stable database IDs for table selection across pages, then validate every requested record on the server before a bulk action runs.
6 min read
Run Google ADK in your TypeScript SaaS app without a Python service
Run a typed Google ADK agent behind your existing TypeScript API route, with Zod tool inputs and tenant-scoped access.
6 min read
Add a Muse Wonder screenshot and PDF assistant to a SaaS app
Add a screenshot and PDF assistant through Vercel AI Gateway with Muse Wonder, while keeping the gateway key on your server.
6 min read
How to run OpenCode 2.0 on Cloudflare and recover after Durable Object eviction
Use Cloudflare’s experimental OpenCodeHarness to persist agent sessions in SQLite and resume interrupted work after Durable Object eviction.
7 min readHow to keep profile avatars useful when user photos fail to load
Keep profile rows useful when photos fail. Use shadcn AvatarImage and an explicit AvatarFallback, with steady sizing and accessible identity cues.
6 min read