Would you mind explaining what is going on in the backend? You seem to be using both Rust and Bun/Typescript?
Typescript is used for the Svelte UI. Svelte talks to the Rust backend through Tauri (by default). Both support a headless/web mode where the Svelte frontend connects to the backend over HTTP.