Vite + Nitro + Preact

Tiny demo — interactive UI & server API in one place

Test client state

Simple server endpoint returning a greeting

Server endpoint echoing back the sent message

WebSocket Chat

No messages yet. Open multiple tabs to test real-time chat!

Try "ping" for a server response, or open multiple tabs to see messages broadcast to all connected clients

Try these

  • Click the logos to open their docs
  • Increment the counter to exercise client state and HMR
  • Call /api/hello to test a server response
  • Use the WebSocket chat to test real-time bidirectional communication