Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 543 Bytes

README.md

File metadata and controls

9 lines (5 loc) · 543 Bytes

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.