Skip to main content


Create a text/html response with JSX, powered by Preact and UnoCSS.


To use Htm, create a server.tsx file like this:

/** @jsx h  */
import { serve } from "";
import { h, html } from "";

serve((res) =>
    title: "Hello World!",
    meta: {
      description: "This is a description.",
    body: (
      <div class="flex items-center justify-center w-screen h-screen">
        <p class="text-5xl font-bold text-green-600">Hello World!</p>

Run the server

deno run --allow-net server.tsx

Try it online