All posts.
Every EasySpawn article, newest first — deploying AI-built apps, Claude Code, databases, security, and the infrastructure underneath.
822 posts · page 11 of 34
Streaming LLM Responses to the Browser: SSE, Fetch Streams, and Gotchas
Streaming makes AI features feel fast: words appear as they're generated instead of after a ten-second wait. How to stream from the Claude API on your server, forward it to the browser, read it in React, and fix the proxies and timeouts that buffer or cut off streams.
SSRF Explained: When Your Server Fetches URLs for Attackers
Server-side request forgery tricks your server into making requests to places it shouldn't — internal services, cloud metadata endpoints, localhost admin panels. Where SSRF hides (URL previews, webhooks, imports, AI agents with fetch tools), why blocklists fail, and the defences that work.
SSR vs CSR vs SSG: How Web Pages Get Rendered, Explained
Server-side rendering, client-side rendering and static site generation are three answers to one question: where and when is the HTML made? How each works, the trade-offs for speed, SEO, cost and freshness, ISR in between, and which to use for which page.
How to SSH Into a Server (Mac, Windows and Linux)
SSH lets you open a terminal on a remote server securely. How to connect from macOS, Windows and Linux, logging in with a password vs an SSH key, the first-connection fingerprint prompt, a config file shortcut, and fixes for the common connection errors.
SSH Hardening: Lock Down SSH on Your Server
A practical SSH hardening checklist: key-only authentication, no root login, AllowUsers, modern key types, sshd_config drop-ins, testing safely without locking yourself out, fail2ban, firewall rules or a private network like Tailscale, 2FA, and auditing who has access.
"error: src refspec main does not match any": How to Fix It
Git can't push a branch called main because it doesn't exist locally — usually because there are no commits yet or the branch is called master. How to check which it is and fix it in one or two commands.
WHERE vs HAVING in SQL: What's the Difference?
WHERE filters individual rows before they're grouped; HAVING filters groups after GROUP BY. Examples of each, why you can't use COUNT() in WHERE, using both in one query, and the performance reason to filter in WHERE whenever you can.
SQL GROUP BY Explained: Counting, Summing and Grouping Rows
GROUP BY collapses rows that share a value into one row per group, so you can count, sum or average each group. How it works with COUNT, SUM and AVG, grouping by several columns and by date, filtering with HAVING, and fixing the 'must appear in the GROUP BY clause' error.
SPA vs MPA: Single-Page vs Multi-Page Applications Explained
A single-page app loads once and swaps content with JavaScript; a multi-page app loads a new HTML page for each link. How each works, what it means for speed, SEO, hosting and complexity, and why modern frameworks like Next.js and Astro blur the line.
Semantic Search vs Keyword Search: What's the Difference?
Keyword search matches the words people type; semantic search matches what they mean, using embeddings and cosine similarity. How each works, where each fails, why hybrid search usually wins, and how to build both in Postgres.
Semantic HTML: What It Is and Why It Matters (With Examples)
Semantic HTML means using tags that describe what content is — header, nav, main, article, button — instead of divs for everything. Why it matters for accessibility, SEO and maintainability, the tags to know, and the div-soup mistakes AI-generated code often makes.
How to Secure a New VPS: The First 30 Minutes
A fresh server is scanned within minutes of going online. The essential hardening steps for a new Ubuntu VPS: updates, a non-root user, SSH keys only, firewall, automatic security patches, fail2ban, safe service binding, backups and monitoring — in order, with commands.
GitHub Secret Scanning and Push Protection: Stop Leaking API Keys
Secret scanning finds API keys, tokens and passwords committed to your repository; push protection blocks them before they're pushed. How both work on GitHub, what to do when one fires, why deleting the commit isn't enough, and local tools like gitleaks and pre-commit hooks.
scp vs rsync: How to Copy Files to and From a Server
scp copies files over SSH simply; rsync copies only what changed, can resume, and can mirror folders. Examples for uploading and downloading files and folders with each, the trailing-slash rule, --delete, excluding files, and when to use sftp or Git instead.
Schema Markup Explained: Structured Data for SEO (With JSON-LD Examples)
Schema markup is code that tells search engines what your page is about — an article, a product, a business, an FAQ — in a format they understand exactly. What it does, JSON-LD examples for common types, adding it in Next.js, testing it, and what it can and can't do for rankings.
runc and OCI Runtimes: What Actually Starts Your Container
Below Docker and containerd sits a small program that creates the namespaces, cgroups and mounts and execs your process: the OCI runtime. The OCI image, runtime and distribution specs, a bundle and config.json, running runc by hand, alternatives (crun, youki, gVisor's runsc, Kata), and runc's notable escapes.
How to Run a Python Script 24/7 (and Keep It Running)
Scrapers, bots, monitors and workers need to keep running after you close your laptop. The options — a server with systemd, tmux for quick jobs, Docker with a restart policy, cron for scheduled scripts — plus logging, restarting on crashes, and not losing data on restart.
How to Run an LLM Locally: A Beginner's Guide
You can run open-weight AI models like Llama, Qwen, Gemma and Mistral on your own computer, for free and offline. What hardware you need, the easiest tools (Ollama, LM Studio), how model size and quantization work, and what local models can and can't do compared with Claude or GPT.
Resend vs SendGrid vs Postmark: Which Email API for Your App?
Three popular ways to send transactional email — sign-up confirmations, password resets, receipts — from your app. How Resend, SendGrid and Postmark compare on developer experience, deliverability, free tiers (SendGrid dropped its free plan), and when Amazon SES makes sense.
requirements.txt Explained: Python Dependencies for Beginners
requirements.txt lists the Python packages a project needs so anyone can install them with one command. How to create and install it, pinning versions, pip freeze vs writing it by hand, dev requirements, and when to use pyproject.toml with uv or Poetry instead.
Render vs Railway vs Fly.io: Which Platform for Your App?
Three popular platforms for deploying full-stack apps with databases. How Render, Railway and Fly.io differ in deployment model, databases, free tiers, pricing style, regions and learning curve — and which kind of app suits each.
"fatal: refusing to merge unrelated histories": How to Fix It
Git refuses to merge two branches that share no common commit — usually because you created a repo locally and another on GitHub with a README. Why it happens, the --allow-unrelated-histories fix, resolving the resulting conflicts, and how to avoid it.
Refresh Tokens Explained: Short-Lived Access, Long-Lived Sessions
Access tokens should expire quickly; refresh tokens let users stay logged in without re-entering passwords. How the pair works, where to store each, refresh token rotation and reuse detection, revocation, handling refresh in the front end, and when plain session cookies are simpler.
React vs Vue vs Svelte: Which Frontend Framework Should You Learn?
Three popular ways to build interactive web interfaces. How they differ in syntax, size, learning curve, ecosystem and jobs — and why, if you build with AI tools, the answer is usually React even when another option is nicer.