Show HN: PrevelteKit – Static-first Svelte/Rsbuild/jsdom framework

2 hours ago 2

This content was pre-rendered at build time and will hydrate on load

  • Static-first architecture - Deploy frontend anywhere as pure HTML/CSS/JS
  • Lightning fast builds - Hundreds of milliseconds with Rsbuild
  • No JavaScript runtime in production for frontend - Just static files on a server

(These buttons here are client-side routing • No page reloads)

Lightning Fast Builds

Rsbuild bundles in hundreds of milliseconds

🎯

Minimalistic

Less than 500 lines of code - just glue for Svelte, Rsbuild, and jsdom

🔄

HTML for Initial Page

Single Page App with Built-time Pre-Rendering - best of both worlds

🚀

Deploy Anywhere

GitHub Pages, S3, any web server - just static files

🛡️

Clear Separation

Frontend as static assets, backend as dedicated APIs

📦

Zero Config

Works out of the box with sensible defaults

Quick Start

mkdir -p preveltekit/src && cd preveltekit echo '{"dependencies": {"preveltekit":"^1.0.15"}, "scripts": {"dev": "preveltekit dev"}}' > package.json npm install echo '<script>let count = $state(0);</script><h1>Count: {count}</h1><button onclick={() => count++}>Click me</button>' > src/Index.svelte npm run dev # And open a browser with localhost:3000
Read Entire Article