Scheduled jobs with cron
A Mochi.cron() job appends one entry to an in-memory log every minute. The browser subscribes over a WebSocket and shows each new row the moment it lands.
<script>
import CronLog from './CronLog.svelte';
</script>
<CronLog mochi:hydrate />
More demos
Nested Island Max Depth How deeply nested server islands work — a four-level mochi:defer chain where each level fetches the next on demand and the prebuild precompiles the whole chain. Captcha How the captcha works — slide-to-verify backed by a hash chain and proof-of-work, with no third party and no tracking. Tables with TanStack Table How a headless table library works in Mochi — TanStack Table server-rendered to a read-only table with zero JavaScript, then a mochi:hydrate island for interactive sorting.