Static-first Web Application Framework
"I built PrevelteKit for the architecture trade-offs in modern web apps. SPAs have clean frontend/backend separation but show white loading screens/spinner. SvelteKit solves loading but couples frontend to server infrastructure. Services like Vercel hide this operational complexity, but you're still adding another moving part to your system.
I wanted clean separation like SPAs, but with content already loaded for users. PrevelteKit pre-renders and hydrates Svelte components at build time using jsdom. Frontend infrastructure only serves static files (HTML/CSS/JS). Users immediately see static content, while dynamic content loads separately.
Key features:
- Static-first - No JavaScript runtime needed in production frontend
- Minimalistic - <500 lines of code, just glue for existing tools
- Fast builds - Uses Rsbuild for rapid bundling (hundreds of milliseconds)
- Deploy anywhere - Pure static files, works on GitHub Pages, S3, any web server
I'm looking for feedback on the approach and whether others find this useful!"