mochi

SSR framework for Svelte 5 + Bun with islands-based selective hydration

SERVER | DEV

Data Loading

SSR

Server-side data fetching with the PokéAPI. This content is rendered at request time — no client JS needed.

pikachu
#025 pikachu
electric

Real-time Chat

WebSocket

Live chat over WebSocket with server-side message history. Dual clock sync via WS and SSE.

Chat
WS: SSE:
Send a message to get started

API Endpoints

Interactive

First-class JSON API routes. Test them live — responses rendered from the server.

+
Click an endpoint to test it

Real-time Streams

Lazy Hydrate

WebSocket and Server-Sent Events side by side. This section hydrates when scrolled into view.

WebSocket connecting
--:--:-- /ws/time
SSE connecting
--:--:-- /sse/time
🍡 mochi Stats ↗