All posts.
Every EasySpawn article, newest first — deploying AI-built apps, Claude Code, databases, security, and the infrastructure underneath.
822 posts · page 10 of 34
How to Update Claude Code (and Choose Between the Latest and Stable Channels)
Native installs of Claude Code update themselves; Homebrew, WinGet, apt and npm installs don't. How to check your version, update with each method, pick the latest or stable release channel, and turn auto-updates off when you need a fixed version.
Unit vs Integration vs End-to-End Tests: What Each One Catches
Three kinds of automated tests that check your app at different sizes. Unit tests check one function, integration tests check pieces working together, end-to-end tests click through the real app. What each catches, what each costs, and which to write first.
How to Uninstall Claude Code (Mac, Windows, Linux, npm, Homebrew)
Removing Claude Code depends on how you installed it: native installer, Homebrew, WinGet, apt/dnf, or npm. The exact commands for each, how to remove settings and history too, and what to do if claude still runs afterwards.
"Unexpected Token < in JSON at Position 0": What It Means and How to Fix It
Your code expected JSON and got HTML — almost always an error page or your app's index.html. Why it happens (wrong URL, 404, server error, SPA fallback, login redirect), how to see what the server actually sent, and how to parse responses safely.
"A Component Is Changing an Uncontrolled Input to Be Controlled": Fix
React warns when an input's value starts as undefined and later becomes a string. What controlled and uncontrolled inputs are, why undefined initial state causes this, and the fixes: initialise with '', use ?? '' for loaded data, and handle checkboxes and selects properly.
UFW Firewall Basics: Lock Down a Linux Server in Five Commands
A firewall decides which network traffic can reach your server. UFW makes Linux's firewall simple: allow SSH, HTTP and HTTPS, deny the rest. The commands, how not to lock yourself out, why your database port should never be open, and the Docker gotcha that bypasses UFW.
TypeScript Generics Explained (Without the Headache)
Generics let a function, type or component work with many types while keeping type safety — like 'a list of T'. How <T> works, inference, constraints with extends, keyof, default type parameters, generic React components and hooks, utility types like Partial and Pick, and when generics are overkill.
type vs interface in TypeScript: Which Should You Use?
type aliases and interfaces both describe object shapes, and mostly behave the same. The real differences — unions and other non-object types, declaration merging, extends vs intersections, error messages — and a simple, consistent rule for choosing in your codebase.
TypeScript "Type X Is Not Assignable to Type Y": How to Read and Fix It
TypeScript's most common error means a value doesn't match the type expected where you put it. How to read the message (including long nested ones), the common cases — string vs number, null and undefined, string literals, missing object properties, array types — and fixes that don't just hide the bug.
tRPC vs REST: End-to-End Type Safety or a Standard API?
tRPC lets a TypeScript front end call back-end functions with full type safety and no API schema to maintain; REST is the universal, language-agnostic standard. How they differ, a tRPC example, when tRPC shines (TypeScript monorepos), when REST wins (public APIs, mobile, other languages), and where Server Actions fit.
The TLS 1.3 Handshake Explained: What Happens Before the First Byte
What actually happens when a browser connects over HTTPS: ClientHello, key shares, the server's certificate and signature, Finished messages, one round trip instead of two, 0-RTT resumption and its replay risk, SNI and ECH, certificate chain validation, and how to inspect it all with openssl.
Postgres timestamp vs timestamptz: Which Should You Use?
timestamptz stores an absolute moment in time; timestamp stores a wall-clock reading with no zone. Why timestamptz is almost always right, what Postgres actually stores, how the session TimeZone changes what you see, AT TIME ZONE, date_trunc by local day, ORMs and drivers, and migrating.
"This Site Can't Be Reached": What the Error Code Tells You
Chrome's 'This site can't be reached' covers several different problems, and the small error code underneath tells you which: NXDOMAIN, CONNECTION_REFUSED, TIMED_OUT, CONNECTION_RESET and more. What each means and how to fix it, as a visitor and as a site owner.
How to Test Webhooks Locally: Stripe CLI, Tunnels, and Replays
Webhook providers can't reach localhost, so local testing needs a forwarder or a tunnel. How to use provider CLIs like stripe listen, general tunnels like ngrok and Cloudflare Tunnel, request-capture tools, and fixture replays in automated tests — plus the signature-verification gotchas.
Does Your App Need Terms of Service? What to Include
Terms of service aren't usually required by law, but they're how you limit liability, set rules, handle payments and refunds, and shut down abusive accounts. When you need them, what sections matter, how to get users to agree properly, and the mistakes to avoid.
Do You Still Need a Technical Co-Founder in the Age of AI?
AI tools let non-technical founders build working products alone. What AI genuinely replaces, what a technical co-founder still brings (architecture, security, operations, judgement), the alternatives — fractional CTOs, freelancers, agencies — and how to find and split equity with a co-founder.
Test-Driven Development With Claude Code
Tests first is the single best way to make an AI coding agent reliable: it gives Claude a pass/fail signal to iterate against. A red-green-refactor workflow for Claude Code, prompts that stop it cheating the tests, enforcing it with hooks and /goal, and where TDD with agents falls short.
Tauri vs Electron: Building Desktop Apps With Web Technology
Electron and Tauri both turn a web app into a desktop app for Windows, macOS and Linux. Electron bundles Chromium and Node.js; Tauri uses the system's web view and a Rust back end. How they compare on app size, memory, consistency, security, mobile support and learning curve.
TanStack Query vs useEffect for Data Fetching in React
Fetching in useEffect looks simple until you need loading states, errors, caching, race conditions, refetching and mutations. What TanStack Query handles for you, side-by-side code, mutations with invalidation, and when server components or plain useEffect are still the right choice.
Tailwind vs Bootstrap: Which CSS Framework Should You Use?
Bootstrap gives you ready-made components with a recognisable look; Tailwind gives you small utility classes to build any design. How they differ in approach, file size, customisation, learning curve and AI-tool support, with the same button in both, and how to choose.
Writing a systemd Service File for Your App (With Hardening)
A production-ready systemd unit for a Node.js or Python app, explained: Type, User, WorkingDirectory, EnvironmentFile, Restart and backoff, graceful stop, resource limits, logging, and the sandboxing options (ProtectSystem, NoNewPrivileges, PrivateTmp) that limit damage if the app is compromised.
The Supabase MCP Server: Let AI Work With Your Database (Safely)
Supabase's MCP server lets Claude Code, Cursor and other AI tools inspect your tables, run SQL, apply migrations and read logs. How to connect it, why you should scope it to one project in read-only mode, and the risks of giving an AI database access.
Stripe Subscriptions Explained: Products, Prices, Webhooks and Access
How Stripe Billing models subscriptions — customers, products, prices, subscriptions and invoices — which webhooks to handle, what each subscription status means for access, trials, upgrades and proration, failed payments and dunning, and the Customer Portal.
Stripe Payment Links vs Checkout vs Elements: Which Do You Need?
Stripe offers three ways to take payments, from zero code to fully custom. Payment Links need no code, Checkout is a hosted page you create from your server, and Elements embeds payment fields in your own UI. What each can do, and how to pick.