made with Svelte

Mochi

SSR Framework for Svelte & Bun

Visit Site

Description

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."


Creator

Stanislav Khromov
@khromov
@khromov.se


Social Media Links

KitQL Set of Libraries to Speedrun WebApp Development
icon-eye-dark Created with Sketch. 2.319
Appwrite for Svelte Appwrite SDK for Svelte
icon-eye-dark Created with Sketch. 3.583
Sentry for Svelte Svelte Error & Performance Monitoring
🧑 Sponsored by Friends
We’re hosting on Digital Ocean! πŸ’™ Try it today and get a free $100 credit.
Motion GPU for Svelte WebGPU Framework
icon-eye-dark Created with Sketch. 145
Frizzante Web Server Framework
icon-eye-dark Created with Sketch. 479