An honest field guide · 2025–2026

Why builders are ripping frameworks out of their web apps — and what they do instead

Across indie hackers, solo founders, and small engineering teams, a quiet reverse-migration is underway: away from Next.js, React, Node, and Python framework stacks — and toward Rust + Vanilla Web (or pure static HTML/CSS/JS). This guide explains why, with real numbers from a production server, real CVEs, and — just as importantly — where the hype stops and the trade-offs begin.

The short version: modern frameworks solved real problems in 2016. But browsers grew up, and in 2025–2026 the frameworks' costs — megabytes of hydration JavaScript, gigabytes of server RAM, thousand-package dependency trees, quarterly API churn, and a steady drumbeat of critical CVEs — now outweigh the benefits for a huge class of apps: content sites, CRUD tools, dashboards, and SaaS products that are not Figma. Meanwhile, AI coding agents have changed the math on "hand-written" code: an agent paired with the Rust compiler's deterministic diagnostics writes and verifies vanilla code faster than it can navigate forty layers of framework abstraction.

This site itself is the demo: it is a hand-built static page, served by Caddy's file_server, using 0 MB of dedicated server RAM. Click the pill in the header to measure its real footprint in your browser, right now.

1.78 MiB Combined RAM of 3 dynamic Rust apps (crema + pantry + wesplit) running in one binary on the live apps-1 VPS
0 MB Dedicated app RAM for every static site on the server — including this one — served directly by Caddy file_server
8×–12× Higher sustained RPS (and 15×–45× less RAM) for Axum + Vanilla vs Next.js/Node under load — with zero GC tail-latency spikes
Who this is for: technical founders deciding what to build on next, and engineers (like Matt) who keep hearing "just rewrite it in Rust" and want the actual evidence — including the honest cons — before committing.

Chapter 2

The Stack Comparator

Four dimensions, side by side: the framework stack most apps start with versus the bare-metal stack they increasingly end with. Every figure below comes from published benchmarks, real incident reports, or the production server measured in the next chapter.

Next.js / React + Node

  • ~3.4k–15k RPS per instance under sustained load (TechEmpower-style benchmarks, SSR workloads).
  • ~245–315 ms+ p99 latency once V8 garbage collection and SSR serialization kick in under load.
  • ~600 MB – 1.4 GB RAM per container under real traffic; a typical next start idles at 150–300 MB before serving a single request.
  • 150–500 KB+ client JS shipped for hydration — before your own code — even for pages that are 95% static text.
  • GC pauses produce tail-latency spikes exactly when traffic peaks.

Rust (Axum/Askama) + Vanilla Web

  • ~120k–150k+ RPS on a single small VPS for SSR/JSON workloads (Axum consistently tops TechEmpower plaintext/JSON rounds).
  • ~28 ms p99 under the same sustained load — no GC, no pause-the-world events.
  • ~2–45 MB RAM per service; the live apps-1 box runs 3 full apps in 1.78 MiB (see next chapter).
  • <50 KB client JS — route-scoped ES modules loaded with <script type="module">; many pages ship zero JS.
  • HTML arrives fully rendered from compile-time Askama templates — no hydration step exists.

Sustained requests/sec per instance (higher is better)

Axum + Askama
~150k
Next.js / Node SSR
~15k

Idle + load RAM per app (lower is better)

Rust binary (3 apps)
1.78 MiB
Next.js container
600 MB–1.4 GB

Client JS shipped to the browser (lower is better)

Vanilla ES modules
<50 KB
React hydration bundle
150–500 KB+
Takeaway: the performance gap is not 20–30% — it is an order of magnitude in throughput and up to 45× in memory. On a $5–15 VPS, that difference decides how many products you can run at all.

Chapter 3 · Real proof

Live Case Study: the apps-1 VPS

These are not projections. They are observed container memory readings from Jimmy's single Hetzner apps-1 VPS (a 7.57 GiB box) that runs his entire product fleet: five static sites, three dynamic Rust apps, and a handful of not-yet-migrated framework apps kept here for honest comparison.

Static Caddy sites — jimsgarage.dev, chinahols, standash, preppr, and this site0 MB

Served by Caddy file_server straight from disk. No container, no process, no dedicated RAM.

apps-jimsgarage-apps-1 — 3 dynamic apps (crema + pantry + wesplit) in one Rust binary1.78 MiB

0.02% of the box's RAM, 0.00% CPU at idle. Three full products — auth, SQLite, SSR HTML, APIs — in less memory than a single Chrome tab's favicon cache.

apps-predictr-1 (not yet migrated)24.5 MiB
apps-bookadventure-1 + its Postgres48.8 + 28.5 MiB
apps-rocketsfc-153.6 MiB
apps-plannr-1 + its Postgres62.9 + 29.5 MiB
apps-browzr-web-1229.2 MiB
supabase-* stack (5 containers)~631 MiB
apps-browzr-backend-11.03 GiB

Read the chart honestly: the unmigrated apps are not reckless — 24–63 MiB services are fine. But notice the pattern. One browzr-backend container uses ~600× the RAM of all three Rust apps combined. The Supabase sidecar stack alone uses ~350×. On a 7.57 GiB box shared with an OS, a proxy, and Postgres instances, a few framework stacks decide whether you need a bigger, more expensive VPS — or a second one.

What consolidation buys: the three Rust apps that replaced framework stacks freed multiple gigabytes on this one cheap VPS. That headroom is the difference between "my side projects fit on a €5 box" and "I'm paying for a fleet." Every framework stack you retire hands the RAM back to the products that actually need it.

Chapter 4 · No sugarcoating

The Unvarnished Pros & Cons

De-frameworking is a genuinely good trade for many apps — and a genuinely bad one for others. Here is the full ledger, including the cons most "rewrite it in Rust" posts quietly skip.

Pro

Tiny RAM, tiny VPS bills

Three production apps in 1.78 MiB. Static sites at 0 MB. Whole product fleets fit on one small VPS instead of a fleet of containers — the apps-1 chart above is the receipt.

Pro

8–12× throughput, zero GC tail spikes

Axum serves ~120k–150k+ RPS with ~28 ms p99 where Node SSR degrades into GC-driven tail-latency spikes. Under load, the Rust p99 is the p50, plus a rounding error.

Pro

Zero hydration / bundle tax

HTML arrives finished. No 150–500 KB hydration bundle, no hydration-mismatch bug class, no 'use client' boundaries. Many pages ship literally zero JavaScript.

Pro

Massive attack-surface reduction

~70% of the historical memory-corruption CVE class engineered away at compile time, a ~15 MB static binary instead of a Node runtime, and a dependency tree an order of magnitude smaller than npm's.

Pro

AI agents + compiler = deterministic guardrail

rustc hands agents exact, machine-readable diagnostics they can converge on autonomously — and stable HTML/CSS/ES6+ means no stale-training-data hallucinations of last quarter's framework API.

Pro

Long-term stability

HTML, CSS, and conservative Rust crates don't churn quarterly. Code written today still builds cleanly years from now — no forced migration every time a framework maintainer rebrands a router.

Con

Rust compile times slow tight loops

Full builds take real seconds-to-minutes. You must adopt cargo check for iteration, lld/mold linkers, sccache, and disciplined crate boundaries — or the feedback loop will grind you down.

Con

No drop-in mega UI ecosystems

No shadcn/ui, no Radix, no mature data grids, no Figma-tier collaborative canvas widgets. Complex interactive UI in Vanilla JS means real manual DOM and accessibility work — AI shrinks the boilerplate cost, but it doesn't make the work disappear.

Con

Steeper learning curve, smaller hiring pool

You cannot hire five React devs tomorrow. Async lifetimes and ownership are genuinely hard — and if your AI agent gets stuck fighting the borrow checker on a gnarly async graph, a human who understands it has to step in.

Con

You own the "batteries"

Frameworks quietly bundled image resizing, CSRF protection, session cookies, focus traps, and ARIA keyboard navigation. Bare metal means you build and verify each of those deliberately — skip one and it's your outage.

Con

AI can over-engineer Rust

Unguided agents spam .clone(), wrap everything in Arc<Mutex<…>>, and invent baroque generic abstractions. Without tight contracts (see the Agent Kit), you'll review more generated complexity than you saved.

Con

Memory safety ≠ web security

Rust stops buffer overflows, not SQL injection, XSS, CSRF, SSRF, or broken RBAC. You still need sqlx bind parameters, Askama escaping, strict CSP, rate limits, and cargo audit — every single time.

Myth busted

"Vanilla JS means jQuery spaghetti"

Modern ES Modules, <dialog>, CSS Grid, native fetch, and optional 14 KB htmx produce code cleaner than most component-framework codebases. The spaghetti era ended with IE11.

Myth busted

"Migration means risky big-bang downtime"

The staging-first protocol below — isolated staging subdomain, 100% Playwright parity gate, and a <5s rollback path — makes cutover a non-event. Big-bang risk is a process failure, not a stack property.

Myth busted

"Tailwind requires Node at runtime"

The standalone @tailwindcss/cli compiles your stylesheet at build time. Ship the resulting static CSS with zero Node anywhere — the compiler is a build tool, not a runtime dependency.

Chapter 5 · Interactive

Should You De-Framework?

Five honest questions. Answer them and get a verdict that argues with you when the answer is "don't do it" — because sometimes it is.

1 How are you building?
2 What's the UI complexity?
3 How much pain is your current stack causing?
4 What's the app's expected lifespan?
5 Do you have existing mobile / extension / third-party clients?

Chapter 6

How the Migration Actually Works

De-frameworking is not a weekend rewrite — it's a five-stage protocol designed so production is never at risk until the new stack has proven itself. This is the same protocol packaged in the downloadable Agent Skill below.

  1. Stage 0

    Read-Only Audit

    What you actually do: nothing to production — that's the point. The agent inventories every route, redirect, SEO tag, API (METHOD, PATH), DB table and raw SQL query, auth/session format, CSS/font/icon asset, and sibling client, citing exact file paths, into MIGRATION_AUDIT.md. You cannot preserve parity with what you haven't catalogued.

  2. Stage 1

    Locked Blueprint

    What you actually do: turn the audit into a single source of truth — MIGRATION_BLUEPRINT.md — covering the Day-1 CSS parity pipeline, the Vanilla ES Modules DOM contract, security/CSRF/CSP design, staging isolation, and the ordered vertical build plan. Then a hard gate: the owner signs off before a single line of Rust is written.

  3. Stage 2

    Isolated Staging Subdomain

    What you actually do: build the new app on staging.<domain> under strict STAGING_SAFE_MODE — a cloned database with zero production credentials, Mailpit trapping all outbound email, sandboxed webhooks/billing/crons, and robots.txt: Disallow: /. This is what prevents live disasters: even a catastrophic staging bug cannot email a customer, charge a card, or corrupt prod data. Vertical slices are then built to 100% completion, one at a time.

  4. Stage 3

    100% Playwright Parity Gate

    What you actually do: prove — not eyeball — that staging matches production 1:1. Playwright compares every route at desktop (1440×900) and mobile (390×844): zero console/page errors, zero broken assets, zero horizontal overflow, computed-style diffs on key landmarks, side-by-side screenshots, full E2E journeys, and negative security tests. Computed-style comparison is what kills CSS regressions: "looks fine to me" is replaced by getComputedStyle equality on fonts, colors, padding, and layout boxes. A second hard gate: the owner reviews PARITY_REPORT.md before any cutover.

  5. Stage 4

    <5s-Rollback Cutover & Owner-Gated Decommission

    What you actually do: in a quiet window, quiesce writers, take a final atomic DB sync, verify row counts and foreign keys (abort on any mismatch), flip the reverse proxy, and smoke-test live. The legacy stack stays stopped but intact on disk through the soak period, so rollback is a proxy flip taking under 5 seconds. Only after a clean soak — and explicit owner approval — are legacy containers, volumes, DNS records, and framework directories decommissioned.

Model Routing: which AI model for which stage

Match model tier to stage risk — don't burn top-tier quota on mechanical scans, and don't trust mechanical-tier models with the production cutover.

Stage / TaskClaudeGoogle GeminiWhy
Stage 0 — Audit & InventoryOpus (fallback Sonnet)Pro (High)Catches hidden middleware, auth quirks, raw SQL, and redirects across large repos.
Stage 1 — Blueprint & Security DesignOpusPro (High)Highest-leverage decisions: auth compatibility, CSRF/CSP, DB schema, staging isolation. Errors here compound.
Stage 2 — Vertical Slices (Rust, templates, Vanilla JS, CSS)SonnetPro (Standard)Fast, accurate execution against a locked blueprint; escalate to Opus/Pro-High only for gnarly concurrency or crypto.
Stage 3 — Playwright Parity & Visual DiffingSonnet (Opus for tricky layout root causes)Pro + VisionVision models excel at spotting subtle spacing/font/color regressions in side-by-side screenshots.
Stage 4 — Cutover, DB Integrity & Final AuditOpusPro (High)Zero-margin production switch: row counts, FK checks, rollback safety.
Mechanical scans (file lists, grep, log summaries)HaikuFlashCheap and fast; keeps the main context window clean.

Chapter 7 · Take it with you

Grab the Agent Skill, Connect via MCP & Set Your Default Rules

Everything on this page is packaged as an installable Agent Skill — rust-deframework-migration — that drives Claude Code, Gemini CLI, or Antigravity through the full Stage 0–4 protocol. Download it, fetch it over MCP, or copy the rules below.

The complete skill, one zip

Contains SKILL.md (the full protocol) plus three reference files: the prompt pack, the CSS/Playwright parity pipeline, and the cutover/decommission runbooks.

Download rust-deframework-migration.zip

Install the skill where your agent looks for it. Pick your platform:

Claude Code — global (all projects)
mkdir -p ~/.claude/skills/rust-deframework-migration/references
cd ~/.claude/skills/rust-deframework-migration
curl -fsSL https://baremetal.jimsgarage.dev/downloads/rust-deframework-migration.zip -o skill.zip
unzip -o skill.zip && rm skill.zip
Claude Code — this project only
mkdir -p .claude/skills/rust-deframework-migration/references
cd .claude/skills/rust-deframework-migration
curl -fsSL https://baremetal.jimsgarage.dev/downloads/rust-deframework-migration.zip -o skill.zip
unzip -o skill.zip && rm skill.zip
Gemini CLI / Antigravity — global
mkdir -p ~/.gemini/config/skills/rust-deframework-migration/references
cd ~/.gemini/config/skills/rust-deframework-migration
curl -fsSL https://baremetal.jimsgarage.dev/downloads/rust-deframework-migration.zip -o skill.zip
unzip -o skill.zip && rm skill.zip
Antigravity / generic agents — this project only
mkdir -p .agents/skills/rust-deframework-migration/references
cd .agents/skills/rust-deframework-migration
curl -fsSL https://baremetal.jimsgarage.dev/downloads/rust-deframework-migration.zip -o skill.zip
unzip -o skill.zip && rm skill.zip