Choose SvelteKit (with TypeScript + Tailwind + shadcn-svelte) for dashboards, admin consoles, and studios paired with a dedicated Rust or Go backend. It compiles away framework overhead, exports cleanly to static assets served directly from your backend on the same origin, and keeps state management simple without React Server Component / hydration ceremony. Choose Next.js when your team is already deeply invested in React, needs a React-only UI library, or wants Next.js itself to act as the full-stack Node.js backend.
Every web dashboard in this workspace—Colophon Studio, Service Monitor’s dashboard, Durable Runner’s Inspector, and AI Operations Layer’s console—uses SvelteKit + strict TypeScript + Tailwind CSS v4 + shadcn-svelte. Here is why that pairing works so well beside a Rust server.
SvelteKit vs Next.js for dashboards at a glance
| Dimension | SvelteKit | Next.js (App Router) |
|---|---|---|
| Runtime model | Compiles components to minimal DOM updates | Virtual DOM + React Server/Client Component split |
| Pairing with Rust/Go API | Builds cleanly into static files embedded/served by the Rust server (one origin, zero Node runtime in prod) | Optimized for a Node.js/Vercel runtime; static export disables several App Router features |
| State & reactivity | Built-in runes ($state, $derived)—no useEffect dependency bugs | Hooks + React Compiler / external stores (zustand, TanStack Query) |
| Bundle size & interactivity | Smaller JS payload; snappy tables, logs, and filters on low-end devices | Larger base runtime; great once cached |
| Ecosystem & hiring | Growing rapidly (shadcn-svelte, Bits UI, Tailwind v4) | Largest frontend ecosystem in the world (virtually every SDK ships React first) |
| Hosting lock-in | Adapter-based (static, Node, Cloudflare, etc.) | Best experience on Vercel; self-hosting SSR takes extra care |
Why same-origin static builds beat a second Node.js server
When your API is already a fast Rust (or Go) binary, adding a Next.js Node.js server in front of it doubles your operational surface:
- Two processes to deploy, monitor, and patch on your VPS.
- Extra latency hops and CORS / cookie-forwarding rules between the Node frontend and the Rust API.
- Two places where auth sessions can drift out of sync.
With SvelteKit’s static adapter (@sveltejs/adapter-static), CI builds the dashboard into plain HTML/JS/CSS, and our Rust server serves it directly at /studio or /inspector on the exact same origin as /api/*. Same origin means zero CORS configuration, simple HttpOnly/SameSite=Lax session cookies, and one binary to deploy (see our self-hosting VPS layout).
When Next.js is still the right call
- Your product is a TypeScript full-stack app with no separate Rust/Go backend—Next.js Server Actions and route handlers let one team ship everything in one repo.
- You depend on a complex React-specific library (e.g., a specialized data grid, rich-text editor, or design system) that has no Svelte equivalent.
- You are hiring quickly and want the widest pool of engineers who already know the framework on day one.