SSR Framework for Svelte & Bun
"Mochi is a lightweight, server-first framework for Svelte 5 on Bun.
Mochi websites render server-side on every request and ship as plain HTML. Components only ship JavaScript when you explicitly mark them as islands.
Why would I consider Mochi over SvelteKit?
- Faster sites. Mochi ships zero client JavaScript by default. SvelteKit code-splits per route but still hydrates the entire page — even purely static content. Mochi only hydrates the components you explicitly mark as islands, which means less JS on first load, better bfcache behavior, and a natural fit for any site.
- Performant hydration. Avoid hydrating islands until the users scrolls into them with
mochi:hydrate:visible. Or avoid hydrating at all if the user never scrolls down to that component. Your users will thank you for the faster experience.- Uses the platform. Mochi ships with first-class support for View Transitions. No client side router, no state to keep track of between requests.
- No heavy bundler (no Vite). Uses the lighting-fast Bun bundler, which builds sites with hundreds of routes in seconds.
- Real-time built in. WebSockets and Server Sent Events are first-class route types — no extra packages or services required.
Mochi is in early development."
Stanislav Khromov
@khromov
@khromov.se