Manifest-driven routes
Your routes are a data structure, not a directory tree.
hono-preact v0.5.1
Hono on the edge, Preact in the browser, manifest driven routes, typed RPC, streaming everywhere.
import { defineApp } from 'hono-preact/vite';
export default defineApp();import { defineRoutes } from 'hono-preact';
export default defineRoutes([
{ path: '/', view: () => import('./views/home') },
]);export default function Home() {
return <h1>Hello</h1>;
}import { ClientScript, Head } from 'hono-preact';
export default function Layout({ children }) {
return (
<html>
<Head defaultTitle="hono-preact" />
<body>
<main id="app">{children}</main>
<ClientScript />
</body>
</html>
);
}Your routes are a data structure, not a directory tree.
Loaders and actions are typed functions; the client gets a typed stub.
Loaders, forms, SSE. Built on ReadableStream.
hono-preact, hono-preact/server, hono-preact/vite. Nothing else to install.