Skip to content
Kevin Liu's WikiSearch

Modern Web VPS Stack

A route-first modern web stack: TanStack Router/Start + Tailwind CSS + Vite/Rolldown for the app, Hetzner for predictable server ownership, and Cloudflare for edge, DNS, tunnels, security, and selective serverless services.

Use this when the goal is not "pick the default SaaS template" but "own the app/runtime shape while still using current frontend primitives." It is an alternative to the SaaS Stack 2026 Vercel/Next/Supabase default, not a blanket replacement.

Concept Position

The durable idea is separation of concerns:

Layer Default route Why
App contract TanStack Router / Start Router owns typed routes, URL state, loaders, prefetching, pending states, and code splitting; Start adds server functions, server routes, SSR, streaming, middleware, and deployment output. Source: TanStack Start, 2026-07-06
Styling Tailwind CSS v4 Tailwind's Vite plugin keeps styling in the build graph with tailwindcss, @tailwindcss/vite, and @import "tailwindcss";. Source: Tailwind Vite install docs, 2026-07-06
Build toolchain Vite + Rolldown Vite 8 ships with Rolldown as the unified Rust bundler; Vite still keeps native-ESM dev/HMR ergonomics and separates static analysis such as typecheck from transforms. Source: Vite 8 announcement and Vite features docs, 2026-07-06
Runtime compute Hetzner Cloud VPS/server Flat-ish compute, direct Linux ownership, volumes, firewalls, backups, and snapshots. Use hcloud or Terraform and treat server mutation as real infra work. Source: Hetzner docs and local hetzner skill, 2026-07-06
Edge and service layer Cloudflare DNS, CDN, WAF/DDoS, Tunnel/Access, Workers, D1, KV, R2, Queues, Hyperdrive, Durable Objects, Workflows, Vectorize, and Workers AI when those fit. Source: Cloudflare Workers docs, 2026-07-06
Optional control plane Coolify Recommended self-hosted-PaaS route when push-to-deploy, databases, env vars, previews, one-click services, agent-readable inventory, and owned-server portability justify operating a control plane.

Architecture Shapes

Shape Use when Sketch
Hetzner app behind Cloudflare You want a normal Node/server runtime with owned compute and Cloudflare as the public edge. Cloudflare DNS/WAF/CDN/Tunnel -> Hetzner VPS -> TanStack Start Node output -> Postgres/Redis/services
Cloudflare Workers app The app fits the Workers runtime and benefits from global deployment with Cloudflare bindings. Cloudflare Workers -> TanStack Start Workers output -> D1/KV/R2/Queues/Hyperdrive
Hybrid Core app wants VPS semantics, while edge APIs, queues, storage, AI, or auth-adjacent work belongs near users. Hetzner app + Cloudflare Workers sidecars + R2/KV/Queues/Hyperdrive

Cloudflare has first-party docs for TanStack Start on Workers, including wrangler deploy detection of Start output, and the Cloudflare Vite plugin explicitly supports TanStack Start with SSR. Source: Cloudflare TanStack Start and Vite plugin docs, 2026-07-06

Decision Matrix

Choose this stack when:

  • predictable VPS cost and operational control beat zero-ops convenience
  • the app wants a typed route tree, URL-state discipline, loaders, SSR, streaming, and explicit server functions
  • Cloudflare should be the edge/security/network/services layer, but the core app should not be forced into Workers
  • the app should remain portable across Node, Workers, Railway, Netlify, or another host
  • a single server plus Cloudflare services can simplify the first production system

Prefer Workers-only when the app fits the edge runtime and Cloudflare bindings are the natural data/control plane. Prefer Vercel/Next when the project wants the Next ecosystem, Vercel platform defaults, and lower ops burden. Prefer managed Postgres/Supabase/Neon/PlanetScale when database operations are not worth owning.

Operational Guardrails

  • Pin moving packages, especially TanStack Start while it is RC and any fast-moving toolchain packages. TanStack's production checklist explicitly says to lock Start/Router packages and track release notes. Source: TanStack Start, 2026-07-06
  • Treat Hetzner as production infrastructure: confirm account, project, region, server name, and production status before any mutation; inspect servers, firewalls, networks, SSH keys, volumes, snapshots, and floating IPs before changes.
  • Keep ingress closed by default. Hetzner firewalls restrict traffic, and Cloudflare Tunnel's outbound-only model can let the origin block inbound traffic except the intended path. Source: Cloudflare Tunnel docs, 2026-07-06
  • Use SSH keys, not password login. Make backups and restore tests explicit. Hetzner backups are automatic disk copies; snapshots are manually initiated disk copies. Source: Hetzner backup/snapshot docs, 2026-07-06
  • Keep Cloudflare Quick Tunnels for development only. Production should use named/remotely managed tunnels or normal DNS/origin routing.
  • Keep the Coolify management plane independent from saturated application resources when reliability matters. Default agent access is team-scoped MCP with an expiring read token; approved lifecycle work gets a separate short-lived deploy token; configuration changes use the official CLI/API and explicit write authority. Do not give routine agents read:sensitive or root.
  • Treat control-plane state, application data, and deploy configuration as separate recovery jobs. Prove off-host backups and restore, then canary, health/logs, DNS/TLS, cancel/rollback, monitoring, and Docker-level escape before calling the route production-ready.
  • Run app verification at the route level: typecheck route contracts, smoke loaders/server functions, test SSR/streaming behavior, and browser-check the critical paths.

Version Snapshot

Checked 2026-07-06 against the npm registry:

Package Latest Published
@tanstack/react-router 1.170.17 2026-07-01
@tanstack/react-start 1.168.27 2026-07-01
@tanstack/router-plugin 1.168.19 2026-07-01
vite 8.1.3 2026-07-02
rolldown 1.1.4 2026-07-01
tailwindcss 4.3.2 2026-06-29
@tailwindcss/vite 4.3.2 2026-06-29
wrangler 4.107.0 2026-07-02
@cloudflare/workers-types 5.20260706.1 2026-07-06

Do not float production dependencies on broad ranges just because the stack is fashionable. This page is an architecture route, not a permission slip to ship unpinned RC infrastructure.

Nearby Pages

  • SaaS Stack 2026 is the managed-community default: React/Next/Tailwind/shadcn, Node, Clerk/NextAuth, Supabase/PlanetScale/Neon/Turso, Stripe, Vercel/Railway/Render.
  • Frontier Stack 2026 is the design/frontend craft stack: Tailwind tokens, Motion, GSAP, R3F/OGL, json-render, Plate, component sources, and interaction decisions.
  • Cloudflare Ecosystem owns Cloudflare as an ecosystem route, including Workers, D1, KV, R2, Queues, Hyperdrive, tunnels, and startup credits.
  • Coolify owns the self-hosted PaaS path when the VPS should have a productized control plane.
  • hetzner is the executable Hetzner operation skill. Load it before touching real Hetzner infrastructure.

An agent deploys to a bare box

@karpathy

Andrej Karpathy built HackerTube in about two hours with Opus 5.5 on medium effort: Claude filtered 43M Hacker News comments down to 6,454 videos people keep recommending. The only manual steps were in a browser: creating a Google Cloud API key, booting a VPS and buying the domain. Then Claude got the server's IP and one instruction to update, secure, harden, deploy and optimize, and did all of it. State lives in the browser, so there are no logins, and the comment analysis ships as one zip for others to remix. Source: hackertube.org

For this stack: account creation, keys and purchases stay with the human; everything from a fresh box onward can be the agent's job.

@openshipio

OpenShip is an open-source platform for deploying and running apps on infrastructure you own: Git deploys with rollbacks and per-branch environments, one-click services (Postgres, Redis, MinIO, Qdrant, Kafka and more), a built-in mail server, logs, backups, secrets, RBAC, and an MCP server for agents. Source: X/@EngMoElgaraihy, 2026-07-18


Timeline

  • 2026-08-11 | Tightened the Coolify layer into an explicit self-hosted-PaaS admission path with separate observation and mutation tokens, control/resource-plane reliability, backup/restore, canary, health, rollback, and Docker-escape proof. Source: Coolify; replay manifest
  • 2026-07-06 | Created the Modern Web VPS Stack route for TanStack Router/Start, Tailwind, Vite/Rolldown, Hetzner, and Cloudflare after Kevin asked to capture the current "modern web practices" stack and self-host/VPS deployment shape. Source: User request, official docs, npm registry, 2026-07-06