All Articles
Claude API stop_sequences Not Working — 5 Things to Check Before You Give Up
Diagnose why your Claude API stop_sequences parameter isn't halting generation as expected. Practical breakdown of token boundaries, whitespace mismatches, Tool Use interactions, and streaming pitfalls — with copy-paste code examples.
Claude API on Bun in Production: Migration Decisions and Implementation Patterns That Actually Survive Real Traffic
A practical guide to running Claude API services on Bun in production. Covers migration triggers from Node.js, built-in SQLite/WebSocket usage, streaming optimization, and the pitfalls that only surface after deployment — with working code and measured numbers.
Implementing Usage-Based Billing with Claude API + Stripe: A Minimal Setup for Indie Developers
Learn how to measure Claude API token consumption and implement usage-based billing with Stripe Meter Events. A minimal Node.js setup that indie developers can ship in a weekend, with real gotchas from production.
7 Common Errors When Getting Started with Claude API in Python (With Fixes)
A practical troubleshooting guide covering the 7 most common errors Python developers hit when starting with the Claude API SDK — from AuthenticationError and RateLimitError to response parsing mistakes and streaming pitfalls.
Auto-Classify and Draft Gmail Replies with Claude API and Google Apps Script
A hands-on guide to building a Gmail automation system using Claude API and Google Apps Script. Automatically classify incoming emails and generate reply drafts — with copy-paste code.
Building Stateful AI Agents with Cloudflare Durable Objects and Claude API — Session Management, Context Persistence, and Scale-Out Design
A complete production guide for building stateful AI agents using Cloudflare Durable Objects and Claude API. Covers session management, context persistence, compaction strategies, and scale-out design with fully working code examples.
Building a Production-Grade Contract Review System with the Claude API — Risk Detection, Version Diffing, and Remediation Suggestions
A complete production guide for automating contract review with the Claude API: PDF parsing, risk clause detection, structured JSON output, version diffing, and remediation suggestions.
Building an Offline-Capable AI Notes App with Claude API and Local-First Sync — A Production Design with Replicache and IndexedDB
A production design guide for combining Claude API with a local-first sync engine. Walks through Replicache, IndexedDB, mutation queues, and idempotency keys with full TypeScript code.
Building a Subscription SaaS with Claude API and Stripe — A Complete 2026 Implementation Guide
An end-to-end implementation guide for shipping a subscription SaaS built on Claude API, Stripe, and Cloudflare Workers — covering checkout, webhooks, KV-backed access control, usage limits, and the production edge cases that always bite.
Claude API temperature and top_p Explained — Optimal Settings by Task with Real-World Testing
A practical guide to Claude API's temperature and top_p parameters: how they work, why temperature=0 isn't fully deterministic, and optimal settings for code generation, creative writing, RAG, and more.
Building a Cost-Optimized Multi-Provider AI Gateway with Claude API and LiteLLM — Fallback Design, A/B Testing, and Provider Migration Strategy
Learn how to build a production-grade multi-provider AI gateway centered on Claude API using LiteLLM. Covers fallback chain design, A/B testing, cost-based routing, and provider migration strategy with complete code examples.
Designing a Claude API Monthly Budget That Doesn't Blow Up — Cost Management for Solo Developers
When you embed Claude API into a side-project app, the first thing you hit is the end-of-month invoice. Here are the budgeting frameworks, monitoring patterns, and implementation tricks I use to keep costs predictable — drawn from running my own apps.