Skip to content

A teeny attempt at using htmx as a front end for tauri

Notifications You must be signed in to change notification settings

matteron/tauri-htmx-test

Repository files navigation

Tauri + htmx Test

Very basic attempt at intercepting htmx network requests and instead invoking tauri commands.

Saw people suggesting spinning up a whole http server on the rust side to offer an endpoint for htmx to interact with, but that seemed like a cludgy solution.

See the src/main.ts file for the whopping 25 lines needed to get this to work (4 of them for a useless type definition).

Using the @mswjs/interceptors library and entirely relying on javascript's single threaded operation.

About

A teeny attempt at using htmx as a front end for tauri

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published