Server-driven UI with axum and htmx.
A typed Rust view layer with built-in frontend asset bundling.
Define an action with #[action], call it from your markup, and return updated HTML fragments with partial!. ilek connects these pieces into a typed backbone for your UI.
Try it out#
Loading WASM…
WASM runs this demo’s router in your browser. ilek itself doesn’t need client-side WASM.
The approach#
Simple stays simple.#
Render a #[fragment] in your page, then return it through partial! to replace that same element. The fragment carries its own target and swap behavior. Use explicit targets and swap modes when the defaults don't fit.
With partial!, a save action can update a row, close its editor, and show a confirmation in one response.
Components that speak htmx.#
The optional Basecoat integration provides dialogs, drawers, toast notifications, and searchable selects through Rust APIs. ilek connects their client-side behavior to your server-driven updates.
See it in the shop example.
Still axum. Still htmx.#
Your handlers are still axum handlers, and htmx attributes are still available in your markup. ilek adds typed connections without replacing the tools underneath.
Client-side code belongs here, too.#
A page's TypeScript and CSS live beside its Rust code. A chart or editor can use an npm library while the rest of the page stays server-driven.
ilek bundles each page's assets with Bun during the Rust build and embeds them in the application binary. Add them to your markup with assets!. Bun is needed to build the app, not to run it.
Next steps#
Build your first app with Getting started, or explore backlog, a one-page issue tracker with inline editing and a sortable table.