Hello World
The simplest possible Mochi page — a Svelte component rendered on the server with no client-side JavaScript.
Hello, world!
<script>
import { files } from './files.ts';
const sources = await loadSources(files);
</script>
<p>Hello, world!</p>
More demos
Error Boundaries Contain island failures with <svelte:boundary> so one broken component does not crash the page. Image: Named sizes Declare resize / rotate / flip / modulate / format transforms once as named sizes; getImageUrl mints a deferred URL and getImage runs one inline for bytes + metadata. Hydration Modes The same component rendered five ways — eager, lazy, visible, rootMargin-tuned, and deferred server island.