API Endpoints
You can build JSON routes with Mochi.api().
+
Click an endpoint to test it
<script>
import ApiTester from './ApiTester.svelte';
import { files } from './files.ts';
const sources = await loadSources(files);
</script>
<ApiTester mochi:hydrate />
More demos
Background jobs with queues Offload work to a Mochi.queue() with an embedded worker — no Redis. Send Email Send a pre-written email through Mochi.email() and read it back in the /_mochi/email dev outbox. Lazy Server Islands Server islands marked mochi:defer:visible only fetch when the wrapper scrolls into view.